Skip to content

rosmo/m5paper-ovstops

Repository files navigation

Openbaar vervoer "stop display" for M5Paper

M5Paper

Displays a constantly updating real-time information from ovapi.nl for your desired tram/bus lines using a M5Paper device. Uses a Cloudflare Worker to pre-process the information.

Built with ESP-IDF 5 (❤️), lvgl, LovyanGFX.

Requires

  • M5Paper
  • ESP-IDF 5.0

Build

You'll need to deploy the Cloudflare worker in rosmo/ovapi-cfworker with your lines (eg. GVB_LineNumber_Direction and stop number (TimingPointCode)). Then run the configuration and set your Cloudflare worker URL and WiFi details. To find your stop numbers, open the line URL with your browser for the line, eg: https://v0.ovapi.nl/line/GVB_5_2, search for your stop name and note down the TimingPointCode.

idf.py menuconfig
idf.py build
idf.py -p com3 flash

Custom fonts

For discerning folks, you'll want to have your own font. It's an ePaper device after all. See the Makefile for automated font conversion and download fonts from fonts.google.com or your favorite TTF source. You'll need lv_font_conv from: https://github.com/lvgl/lv_font_conv.

Notes

There is probably a small memory leak still somewhere, so the device will reboot by itself every now and then.

About

M5Paper OV next journeys app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published