Skip to content

ESP-8266-based weather station with OLED display with MQTT publishing

License

Notifications You must be signed in to change notification settings

mmichon/lil-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

YAWEWSPTM

Yet Another Web-Enabled Weather Sensor Publishing To MQTT

This is ESP-8266 code that reads temp and humidity readings every minute from a DHT11, updates a small SSD-1306-based display, and publishes readings to MQTT topics.

Video

Demo Video

Hardware

  • ESP8266 microcontroller, like a Wemos D1 Mini
  • DHT11 temp/humidity sensor
  • SSD1036 OLED display, like a Wemos OLED Shield
  • Wifi connection

Software Dependencies

  • platformio
  • The following libs:
pio lib install 135
pio lib install 188
pio lib install 18
pio lib install 89

Provisioning an MQTT topic and connecting to Wifi

  1. Create an account on devicehub.net
  2. Create a project, device, and 2 analog 'sensors' (temp and humidity)
  3. Jot down your API key, project ID, device UUID, and sensor names
  4. Change config.h to match your Wifi and MQTT settings

Releases

No releases published

Packages

No packages published