Remote control an irrigation water pump through javascript Webpage or GET requests. Get temperature / humidity from DHT22 sensor, and level of the water tank from ultrasonic sensor.
Framework used: Arduino
IDE used: PlateformIO
Upgrade OTA is available on this code
Build and upgrade command:
platformio run --target upload [ optional --upload-port IP_ESP]
http://IP/gpio=0
-> set GPIO to OFF
http://IP/gpio=1
--> set GPIO to ON
http://IP/getJSON
--> Request JSON :
{
"Level": [
-38
],
"temperature": [
"20"
],
"humidity": [
"70"
],
"WaterPump": [
0
],
"Systemv": [
"ESP8266-12E"
]
http://IP/reset
--> Reset ESP
http://IP/
--> Display the WebPage !