- Download and install Visual Studio Code.
- Install the PlatformIO extension for Visual Studio Code.
- Open this project. You can build and upload to you ESP32 accordingly.
- To upload to the ESP32, when
connecting...is output from the upload process, you may need to press and hold (for approx. 2 seconds) the upload button (may be indicated asBOOT).
- You must create a file called
settings.hin/include. - You must create the following definitions, filling in your details:
#define SSID "ssid"#define PASSWORD "password"#define PORT 80
- You can find the IP address your ESP32 was assigned by opening the Serial
Monitor and reseting your ESP32 (may be the
ENbutton). - To ensure your weather station starts on the same local IP address each time, you can add a rule to the DHCP server of your router for the particular MAC address and desired IP address.
- There are numerous configuration options in
main.cpp, including reading offsets and pin numbers. The values there are the values that worked best for me.
Note: the BME680 sensor must be read every 3 seconds +/- 50%. Therefore the polling frequency should probably remain quite low.
Circuit diagram will be added here when project is further developed.
The following sensors are currently used:
BME680: Intended for indoor temperature, humidity, pressure, and iaq.DS18B20: Waterproof probe version intended for outdoor temperature.
More will be added as project matures.
The following endpoints are currently available:
/all- all sensor data that is available./simple- the most useful sensor data that is available.