a CLI for USU's internal AggieTime
Go to file
2023-02-28 12:49:06 -07:00
src Use SAML, move to shell script, update readme 2023-02-28 12:49:06 -07:00
.gitignore it's a commit, innit\? 2023-02-14 17:37:40 -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 Use SAML, move to shell script, update readme 2023-02-28 12:49:06 -07:00
package.json Use SAML, move to shell script, update readme 2023-02-28 12:49:06 -07:00
README.md Use SAML, move to shell script, update readme 2023-02-28 12:49:06 -07:00
watch_aggietimed.sh Use SAML, move to shell script, update readme 2023-02-28 12:49:06 -07:00

AggietimeD

AggietimeD is a simple daemon service to open a SAML with selenium, steal a cookie, 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:

sudo pacman -S chromium

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.

SystemD Service

UPDATE: (no) Thanks to the SAML update to AggieTime, we require selenium for auth. The SystemD service will not work. Instead, I suggest starting a script to watch aggietimed and restart if it fails, as in watch_aggietimed.sh with your window manager / desktop environment.

If at some point CAS does come back, checkout the cas-auth branch.

Usage

Look at aggietimed -h.