Skip to content

Northern Ireland Railways departure board recreated in Python for a Raspberry Pi LCD Screen

Notifications You must be signed in to change notification settings

lunaboppin/departure-board

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Northern Ireland Railways departure board recreated in Python for a Raspberry Pi LCD Screen

Uses the Worldline Tiger API to fetch the data. Uses a NodeJS API running pupeteer to fetch the credentials and return back to the python script which calls the Tiger API.

Features

  • Randomly rotate between every station every 15 minutes
  • Support for a button to swap to another station chosen at random
  • Displays a message if there are no future trains at current station
  • Platform data updates every minute
  • Swaps displayed platform every minute

Deployment

To deploy this project run

  cd api
  docker build -t browserpuppeteer-app
  docker run -d -p 3042:3042 browserpuppeteer-app
  cd ..
  python3 -m venv myenv
  source myenv/bin/activate
  pip install -r requirements.txt
  python __main__.py

  # OR RUN startup.sh to start the python script

Rename .env.example to .env and insert URL to API. For example, http://127.0.0.1:3042/api/location

Screenshots

Fetching

Platform 2 at Lanyon Place

No Trains

Coleraine

About

Northern Ireland Railways departure board recreated in Python for a Raspberry Pi LCD Screen

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published