This program runs on docker through balenaOS and checks the UCLA Registrar for updates in user-specified classes.
(Skip if you already have balenaOS working)
- If you haven't got a balena account, visit dashboard.balena-cloud.com and sign up.
- Start a new applicaton on balena download the .zip file, format the SD card in FAT32 and extract it to your SD card.
- Insert the SD card into the device, power it up using the micro-usb cable and connect to the Internet.
- After about 10 minutes your new device should show up on your application dashboard.
Clone this repo to your local disk
$ git clone https://github.com/ViciousCupcake/balena-ucla-class-status-checker.git
Install the balena CLI
Next, download the Push Me App, create a API key, and insert it into line 15, surrounded by double-quotes.
e.g. If my key was 123abc456def
, line 15 would read
private static final String PUSH_NOTIFICATION_IDENTIFIER = "123abc456def";
Next, specify the interval of how often the application should check for new updates on line 16. Do this by editing the UPDATE_INTERVAL_MS
field. Note that this number is measured in milliseconds, so 15 minutes would be 15 * 60 * 1000
.
I recommend keeping it at 15 minutes, since too often means excessive data usage which may anger your internet provider.
If you keep it at 15 min, line 16 should read
public static final long UPDATE_INTERVAL_MS = 15 * 60 * 1000;
Finally, add the URLs of the classes you want to check. To find these URLs, go here, search for your class, click the drop down on the left to expose discussions, and click the specific discussion that you want the program to check. A new window should open. Copy paste the url (example), and paste it onto line 17, surrounded by double quotes. For each additional entry, do the same thing, but divide entries with a comma. Don't forget double-quotes!
You're almost done!
Next, login into the balena CLI
$ balena login
Then push this cloned repo onto your balena application:
$ balena push [APPLICATIONNAME]
And enjoy!