07/16/2018 at 01:32 •
I've added a transistor to control the power of the lcd's backlight. This allows the ESP to turn the backlight off after a certain amount of time. To turn it back on, I also added a push button.
The two buttons are intended to be used to cycle trough additional information screens and maybe for some configs.
04/09/2018 at 02:07 •
The code is available: https://github.com/chris03/esp-bus-schedule-display
Suggestions are welcome.
Still on the todo list
- OTA: expose file upload form and/or implement auto update
- Configurable text color
- Show the predictions on the web page
Bonus features I'm thinking about
- Stream debug log on web page
- Configure the number of bus predictions and the text size...
04/04/2018 at 03:20 •
The new interface has the following new features:
- When powered-on the IP address is briefly shown so that the user knows where to access the configuration web page.
- The bus schedule has a larger font and shows the bus route title. Only 3 buses are shown but it's mostly sufficient.
- Current time at the bottom. It's updated/synced over the network.
04/04/2018 at 02:55 •
What's inside the box
Nothing fancy here. Just a Wemos D1 mini and an SPI display. Got both from my Chinese friends on Ebay.
Note that I combined some cables because the display needs two 3.3V connections (Backlight and circuit). I also combined the ground but you could use only one ground wire.
On the bottom of the plastic box I drilled holes and cut a square for the display to show.
A little trick to get the correct measurements: use the plastic screen protector. Just remove it from the screen and stick it on the plastic box. Then align, mark, drill and cut.
Assembled components with initial software
Most of the settings are still hard-coded but the bus predictions are working.
Every 30 seconds the ESP contacts the NextBus API and parses the result. Then all bus lines are put together, sorted by time and displayed.
On the todo list:
- Better Ui
- Web page to configure:
- bus agency
- bus stop id
- time interval (do not show buses more that X minutes away)
- bus lines to hide
- color depending the time remaining
- Auto wifi configuration (go into hotspot mode when no wifi config)
- OTA updates