This project contains the code of the connected weather station. This weather station will record various weather data and send them every 5 minutes to a database by wifi.
You'll need a working web server to host the php file (in the API folder), an SQL server to store data, and all the hardware with sensors etc.
You'll have to change (in the arduino folder):
- SSID, PASSWORD, server and uri in the wifi.cpp file
- the key in the sensors.cpp file (have to match the key in the API/esp.php file)
You can use the sql file in the API folder to create the database with the good fields, including the automatic date.
Make sure the hardware and the software parts are working properly.
If the variable 'v' (for verbose) is set to true in the arduino, you'll have all the data printed through serial. ('vw' in the wifi file and 'vs' in the sensor file).
You can use the test.html file to simulate the post method made by the arduino. Make sure to write the direct ip of the web server, and the path to the php file before testing.
- Neil Segard - NeilSCGH
With the help of:
- Nicolas Chollet - NicolasChollet51
- ECEBORG - ECEBORG
Voila voila enjoy :)