Skip to content
Grabs Purdue Citybus times for stops local to me and sends a notification when the bus is close.
Python HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
.gitignore
Dockerfile
LICENSE.md
README.md
busser.py
notify.py
notify_thread.py
requirements.txt

README.md

Busser Notification App

Grabs Purdue Citybus times for stops local to me. Adds a notification bell, which when clicked will send notifications when the bus is close. Notifications are sent via PushBullet and require an API key.

Environmental variables must be set for the PushBullet API and the host it's running on.

  • BUSSER_URL_HOST is the url host in this form protocal://domain.com:port. Notice no trailing /
  • BUSSER_API_KEY is the PushBullet API key from your account.

To run:

export BUSSER_URL_HOST=http://domain.name:4000
export BUSSER_API_KEY=3839292.not.a.real.key.383838
export FLASK_APP=busser.py
python busser.py

To run with docker:

docker build -t busser:latest .
docker run -d -e "BUSSER_URL_HOST=http://domain.name:4000" -e "BUSSER_API_KEY=3839292.not.a.real.key.383838" -p 4000:4000 busser

TODO:

  • Make this better async with twisted
  • Kill all threads when it dies (Solved with being in a docker.. but not a great solution)
  • Support multiple users/possible auth (Only using this for 2 more months.. so eh)
You can’t perform that action at this time.