My own Olten departure table in Elm
Build it:
elm make src/Main.elm --output=main.js
Deploy it:
scp index.html styles.css main.js pi@<my Raspberry Pi's IP>:
Developed with elm 0.19.1.
The API used is: https://timetable.search.ch/api/help#stationboard
Instructions to enable the kiosk mode on a Raspberry Pi using chromium.
- Install requirements:
sudo apt-get install xdotool unclutter sed chromium-browser
. - Copy kiosk.sh to
/home/pi/kiosk.sh
. - Copy kiosk.service to
/lib/systemd/system/kiosk.service
. - Start kiosk service:
sudo systemctl start kiosk.service
. - Enable kiosk service:
sudo systemctl enable kiosk.service
.