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.
ssh into COELinux
Download the latest release directly:
$ wget https://github.com/blakesmittty/Grader-Butler/releases/download/v0.5.1-beta/butlerHouse the program in a local bin directory:
$ mkdir -p ~/.local/binEnsure butler is in your working directory and:
$ cp butler ~/.local/bin/Change permissions:
$ chmod +x ~/.local/bin/butlerThe program is now executable from any directory.
Execute the program and generate a template config.json:
$ butlerThis 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"
]
}- 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>"- 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"- 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" - The lab title field is optional and used for compiling which isn't fully implemented yet. Leave this as "" for now.
- 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
$ butlerIf 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