Meteo station is my small after-hours project that contains of three repositories:
- Meteo station code (this repo)
- Meteo station PCB based on ESP32
- Meteo station 3D prints
As the name suggest, is a DIY self-sufficient weather measuring device. I decided to design it as a PCB board with goldpins to stick-in or stick-out individual components and sensors (ESP32, BME280 etc.) to make it more reusable. It could have - of course - been integrated on board, but it would be more expensive and time-consuming to create.
The code was written using Arduino IDE. It was meant to be quick and clear, not the best.
Warning
This is a hobbyist project, so I take no responsibility for any possible issues you may encounter :)
I was inspired by solution created by this guy on Instructables. He did a good job, so I strongly recommand exploring his meteo projects!
- Install Arduino IDE.
- Add ESP32 board to Arduino IDE as it is described e.g. here.
- Install needed libraries -
OneWire
,BH1750
,Adafruit_BME280
,DallasTemperature
etc. - Copy
data-example.h
and rename it todata.h
. Uncomment all lines and fill it with your values:- SSID - your WiFi name,
- Password = your WiFi password,
- Influx = fill
[IP_ADDRESS]
and[DB-NAME]
fields with your Influx instance data (see next paragraph "Server setup").
- Check if your ESP32 connects to WiFi and sends data to Influx properly. If you set
IsDebug
toTrue
you will see additional debugging logs via UART.
- Install Influx on the Raspberry Pi or other computer that you use as a local server. This code works with Influx v. 1.8.
- Set up Influx to be always running on port 8086 (or change the port in the
data.h
'). - Create a database for the data.
- That's all 😊 The ESP32 should connect to it (after filling up
data.h
) and send all the information to the created database. I recommend Grafana to preview all charts real-time.
This is an absolutely hobbyst project :) You can use it as a reference to create something a lot better.
Meteo Station project is available on Creative Commons Attribution Share Alike 4.0 International license (more in license file). You are free to use it, modify it and produce as many of your own boards as you need.
Cable tie and tape for the win ;)