Skip to content

A Class Status Checker with push notification functionality running in a docker container, for use on balenaOS.

Notifications You must be signed in to change notification settings

ViciousCupcake/balena-UCLA-Class-Status-Checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UCLA Class Status Checker in Docker/balena

Introduction

This program runs on docker through balenaOS and checks the UCLA Registrar for updates in user-specified classes.

Installation & Usage Guide

balena Setup

(Skip if you already have balenaOS working)

  1. If you haven't got a balena account, visit dashboard.balena-cloud.com and sign up.
  2. Start a new applicaton on balena download the .zip file, format the SD card in FAT32 and extract it to your SD card.
  3. Insert the SD card into the device, power it up using the micro-usb cable and connect to the Internet.
  4. After about 10 minutes your new device should show up on your application dashboard.

Deployment

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!

About

A Class Status Checker with push notification functionality running in a docker container, for use on balenaOS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages