Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.

Latest commit

 

History

History
39 lines (29 loc) · 901 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 901 Bytes

Raspberry Pi Stationboard

Shows next departures for multiple stations of Zurich Public Transport (VBZ), in real time. Needs a ScrollPhat HD. Uses the Search.ch public transport API.

Tested on a Raspberry Pi Zero W.

Setup

# on raspi
sudo hostnamectl set-hostname stationboard-pi
curl https://get.pimoroni.com/scrollphathd | bash

# deploy
scp raspi_stationboard.py [email protected]:stationboard

crontab -e
# @reboot /home/pi/stationboard/raspi_stationboard.py

Avahi

/etc/avahi/services/ssh.service:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
<service-group>
  <name replace-wildcards="yes">SSH on %h</name>
  <service protocol="any">
    <type>_ssh._tcp</type>
    <port>22</port>
  </service>
</service-group>