Train scheduler board that displays Subway/Metro/Trains/Bus, next arrival schedules on real time based. -Enrique Gamboa @egamboafuentes .
I was compelled to start using my MatrixPortal again. I previously used it as a countdown to holidays throughout the year in my classroom, however now as an at home caretaker for my kiddo I wanted to have it as something useful for my partner who takes the MBTA daily. I found Enrique's work, but it wasn't working correctly with my setup. So I updated everything and tinkered until I got something working again that matched my MBTA stops webpage. See below for more working notes in WIP Status. For a better writeup on how to successfully tune this to your MBTA line, stop, and travel direction check out Enrique's Medium post. I may come back in the future to add that content here, but for now I'm just looking to get things working! 😎
Important
You will want to create a settings.toml file to go along with the code.py. TL;DR: settings.toml is the better version of secrets.py.
It will need to contain the following:
CIRCUITPY_WIFI_SSID = "YOUR SSID HERE"
CIRCUITPY_WIFI_PASSWORD = "YOUR WIFI PASSWORD HERE"
ADAFRUIT_AIO_USERNAME = "YOUR USERNAME"
ADAFRUIT_AIO_KEY = "YOUR PASS"
TIMEZONE = "America/New_York", # http://worldtimeapi.org/timezones
- Current project connected to public MBTA API V3 (Boston).
- Update MatrixPortal M4 to current stable CircuitPython releases
- Update Libraries in /lib directory.
- Get code.py on updated board.
- Debug.
- Fixed json memory allocation overload on second update.
- Possible memory allocation issue over time(hrs) or json access overload.
- Include reboot after x hours if this is a trend.
- Root issue of "double boarding" may be no data from api, need to debug
- Noticed that in the station sometimes there is no next arriving data and a time is in place, didn't have ability to check api as well.
- Instructions on how to setup