Small project to visualize when buses and s-bahn arrive in Berlin on Raspberry Pi.
-
Install Kivy, look at https://kivy.org/docs/installation/installation.html If you use raspberry pi, I recommend to use KivyPie.
-
Install bvg-grabber
sudo pip3 install bvg-grabber
- Install Executor, that the screen can be turned off in the night.
sudo pip3 install executor
- Remove error in bvg-grabber Search for "actualdeparture.py" and "scheduleddeparture.py"
sudo find / -name "scheduleddeparture.py"
sudo find / -name "actualdeparture.py"
Change the lines of both files:
soup = BeautifulSoup(response.text)
to
soup = BeautifulSoup(response.text, "lxml")