Skip to content

ESP8266 project to show upcoming buses at a given stop in realtime using the NextBus API

Notifications You must be signed in to change notification settings

chris03/esp-bus-schedule-display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bus Schedule Display

Build Status

Purpose

Show in realtime the minutes remaining of the upcoming buses at a given stop using the NextBus API.
Project page: https://hackaday.io/project/116394-bus-schedule-display

Hardware

ESP8266
ST7735S 1.8 Inch SPI TFT Display Push button (Optional) Transistor (Optional)

Features

  • Call NextBus API, parse and display the predicted arrival times
  • Web page to configure:
    • Bus agency and stop id
    • Shown time interval (hide buses more that X minutes away)
    • Ignored bus lines (Do not show their schedule)
    • Text color depending on the time remaining (Like green when smaller than 10min.)
  • Auto wifi config (go into hotspot mode when no wifi config)
  • Web and OTA updates enabled

Wiring

    Display                ESP
-----------------------------------------
CS   (SD card) <=>
MOSI (SD card) <=> 
MISO (SD card) <=>
SCK  (SD card) <=>
CS             <=> CS   GPIO15 (configurable)
SCL            <=> CLK  GPIO14
SDA            <=> MOSI GPIO13
A0             <=> DC   GPIO4  (configurable)
RESET          <=>      GPIO5  (configurable)

See build_flags in platformio.ini for configurable pins.

Optional to turn the lcd backlight on/off    
-----------------------------------------
Push button    <=>      GPIO2
Transistor     <=>      GPIO16

Installation

Use https://platformio.org/ to build and depoy the code.

External libraries

https://github.com/tzapu/WiFiManager
https://github.com/Bodmer/TFT_eSPI
https://github.com/arduino-libraries/NTPClient.git
https://github.com/bblanchon/ArduinoJson.git
https://github.com/Links2004/arduinoWebSockets.git

External API

https://www.nextbus.com/xmlFeedDocs/NextBusXMLFeed.pdf