/fhws-grades-push

Small script to get notified when there're new grades available on the "FHWS Studenten Portal"

Primary LanguageJavaScriptMIT LicenseMIT

FHWS Grades Push

License Status

Small script to get notified when there're new grades available on the "FHWS Studenten Portal". Uses ugly HTML scraping and there's almost no error handling, deal with it. Very untested. Such wow.

Installation

Directly

You'll need node.js to run this.

git clone https://github.com/sebbo2002/fhws-grades-push.git
cd ./fhws-grades-push
npm install

I use crontab to run this script regularly.

Docker

You can also use the docker container to run this script:

docker build -t fhws-grades-push .
docker run -t -e FHWS_USERNAME=k***** -e FHWS_PASSWORD=***** -e PUSHBULLET_ACCESS_TOKEN=***** -v /opt/fhws-grades-push/result.json:/app/result.json fhws-grades-push

Configuration

Use environment variables to set login credentials and pushover tokens:

FHWS_USERNAME Your username for the "FHWS Studenten Portal"
FHWS_PASSWORD Your password for the "FHWS Studenten Portal"
PUSHBULLET_ACCESS_TOKEN Your pushbullet access token. You can get yours here.

Example

FHWS_USERNAME="k*****" \
FHWS_PASSWORD="*********" \
PUSHBULLET_ACCESS_TOKEN="*********" node app

Such wow, much awesome