Here is a tutorial on how to call RESTful API on ESP8266 and process the data using ArduinoJSON. This data is visually represented in a NeoPixel ring for easy tracking of 3 buses approaching a certain stop. This code also sends MQTT messages with the received data.


Using ESP8266 to call RESTful API from to get real-time BUS data


  • Easy to read interface
  • Fast and Responsive
  • Portable, i.e. small
  • Wireless
  • MQTT
  • $$$ Cheap $$$


  • NodeMCU (ESP8266)
  • NeoPixel Ring (16 LEDs)


  • Developer API key from
  • PlatformIO
  • MQTT Server
  • Home Assistant



  1. VCC of NeoPixel to 5V/Vin of NodeMCU
  2. GND of NeoPIxel to GND of NodeMCU
  3. Data in of NeoPIxel to RX pin of NodeMCU via 100-500Ohm resistor