a CLI for USU's internal AggieTime
Go to file
2023-02-28 10:20:19 -07:00
src Exponential retry login 2023-02-17 14:14:59 -07:00
.env.example Add flag to connect over socket and retrieve action response, simple systemd service, and more actions 2023-02-16 13:55:40 -07:00
.gitignore it's a commit, innit\? 2023-02-14 17:37:40 -07:00
aggietimed.service Remove targets in systemd service 2023-02-28 10:20:19 -07:00
cli.js Add flag to connect over socket and retrieve action response, simple systemd service, and more actions 2023-02-16 13:55:40 -07:00
package-lock.json We do a little logging, but cringe OpenAPI errors be making me want to shoot myself. We have some shit working though. 2023-02-15 18:05:55 -07:00
package.json Add flag to connect over socket and retrieve action response, simple systemd service, and more actions 2023-02-16 13:55:40 -07:00
README.md Update README.md 2023-02-17 14:32:58 -07:00

AggietimeD

AggietimeD is a simple daemon service to do some hacked CAS authentication, then sit in the background listening to requests over a unix socket - making it "easy" to write scripts to get Aggie Time data, wherever you need it!

https://user-images.githubusercontent.com/25559600/219797856-76c82934-ceb2-4562-90bc-fff2250562a1.mp4

Installation

Something among the lines of:

git clone https://github.com/Simponic/aggietime-cli
cd aggietime-cli
npm i

sudo npm install -g .
cp .env.example .env
chmod 0700 .env

Then, set your A-Number and password in .env.

Finally (optional), change the values in aggietimed.service and install it in ~/.config/systemd/user, and enable it with systemctl --user daemon-reload && systemctl enable --now --user aggietimed.

Usage

Look at aggietimed -h.