Raspberry Pi train departures board for LED matrix display. Displays the next 4 departures, along with their status.
Only dependency is hzeller/rpi-rgb-led-matrix which is used to control the LED display.
- Node 24 is installed via nvm (
nvmis assumed in thepi_start.shscript) config.jsonfile exists in the root with the following schema
npm run build
sudo $(which node) ./dist/index.js# Important to use the sudo crontab. Using the non-sudo crontab and pointing it to a script
# that launches the program using sudo results in 2 instances being launched ¯\_(ツ)_/¯
sudo crontab -e
# Add this line to the crontab
@reboot /path/to/repo/pi_start.shTo check and kill processes started by the cron
# See running processes
ps aux | grep node
# Kill it
sudo pkill -f "/path/to/repo/dist/index.js"
{ "tflApiKey": "string", "lineId": "string", "stopPointId": "string", // Optional values below "dataFetchIntervalSeconds": "number", // default 15 "activeHoursFrom": "number", // default 1 "activeHoursTo": "number", // default 8 }