0df1f47461a67858373bee03dfdb3e2babfcb079
+ fetch data immediately after connecting + empty display and a shorter retry interval for failed requests ~ poll normally every 10 seconds and use the configured local endpoint ~ keep previous readings visible and mark them as outdated on failure ~ set the font before drawing status text and tidy serial messages - generic failure screen and placeholder network settings
Awair Data Grabber
Disclaimer
This project retrieves sensor data from an Awair Element through its enabled Local API and displays it on an 128x64 OLED. The IdeaSpark ESP8266 board uses different OLED pins than a standard NodeMCU ESP8266.
Requirements
- ESP8266 Arduino core
- ArduinoJson
- U8g2
Usage
- enable the Local API for your Awair Element in the Awair Home app
- set
OLED_SCLandOLED_SDAaccording to your board specification, the current defaults are GPIO 14 and GPIO 12 - set
SSIDandPASSWDfor a network that can reach the Awair Element - set the full
SERVER_URL, for examplehttp://awair-elem-123456.local/air-data/latest - flash the firmware, the sensor data will be displayed after a successful request
Description
Languages
C++
100%