Skip to content

blakesmittty/Grader-Butler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Grader-Butler

Convenience tool for downloading student lab submissions and getting them on COELinux unzipped and named. The release is compiled for COELinux and intended to be used there.

Installation (On COELinux)

ssh into COELinux

Download the latest release directly:

$  wget https://github.com/blakesmittty/Grader-Butler/releases/download/v0.5.1-beta/butler

House the program in a local bin directory:

$  mkdir -p ~/.local/bin

Ensure butler is in your working directory and:

$  cp butler ~/.local/bin/

Change permissions:

$  chmod +x ~/.local/bin/butler

The program is now executable from any directory.

Execute the program and generate a template config.json:

$  butler

Setup

This program requires a config file to run. All values are strings except the array of strings for students.

{
    "auth_token": "...",
    "course_id": "...",
    "assignment_id": "...",
    "lab_title": "...",
    "students": [
        "John Doe",
        "Jane Doe"
    ]
}

Here are the MANDATORY steps to fill out the config

  1. Generate an authentication token. To do this, go to Account -> Settings on Carmen. In the "Approved Integrations" section, click "+ New Access Token". Configure desired settings and paste it in the "auth_token" field (inside the "")
"auth_token": "<your-generated-token>"
  1. Obtain the ID of the course (Systems 1). To do this, navigate to Courses -> (desired section of Systems 1), and obtain the ID at the end of the URL. For example, if the URL is "https://osu.instructure.com/courses/123456", you want
"course_id": "123456"
  1. Obtain the ID of the assignment. To do this, navigate to Courses -> (desired section of Systems 1) -> Assignments -> (desired lab to grade), and obtain the ID at the end of the URL. For example, if the URL is "https://osu.instructure.com/courses/123456/assignments/7654321", you want
"assignment_id": "7654321" 
  1. The lab title field is optional and used for compiling which isn't fully implemented yet. Leave this as "" for now.
  2. Build out the array of student names as they appear in the gradebook or Grader Distribution Sheet (Kirby's course). For example, if I wanted to grade John Foo, John Bar, and John Baz, I'd have
"students": [
    "John Foo",
    "John Bar",
    "John Baz"
]

That's it! you should be ready to download student submissions now by simply invoking

$  butler

If you wish to build from source, Ensure you have Go installed on your local machine and run:

$  env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/butler

About

Convenience tool for downloading student lab submissions and getting them on COELinux unzipped and named.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages