Skip to content

ErikUustalu/ESPTemp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESPTemp - Custom MQTT Weather Station

Turning my unused CanSat NeXT kit into a battery powered MQTT weather station.

Features

  • Temperature and air pressure sensing Uses the Cansat NeXT's LPS35HW barometer and temperature sensor
  • Battery monitoring Monitors battery voltage to prevent unexpected dying
  • MQTT protocol Uses MQTT for data transmission which makes it easy to connect to home assistant
  • Optimized for battery life Uses deep sleep to run at an interval to maximize the battery life

Hardware

  • Cansat NeXT kit
  • Should work with any LPS35HW sensor

Setup

  1. Clone this repository: git clone https://github.com/ErikUustalu/ESPTemp.git

  2. Copy src/secrets_example.h to src/secrets.h

  3. Update secrets.h with your network and mqtt credentials

    #define WIFI_SSID "your-wifi-ssid"
    #define WIFI_PASSWORD "your-wifi-password"
    
    #define MQTT_BROKER_ADDRESS "your-mqtt-broker-address"
    #define MQTT_BROKER_PORT 1883
    #define MQTT_USERNAME ""
    #define MQTT_PASSWORD ""
    #define MQTT_CLIENT_ID "esp32"
    
  4. Compile and flash the code with PlatformIO

About

Custom MQTT air pressure and temperature sensor

Resources

License

Stars

Watchers

Forks

Contributors