RoyTrenneman / ESP8266-HTML-JSON-Web-Server

Remote control an irrigation water pump through javascript Webpage or GET requests. Get temperature / humidity, and level of the water tank.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESP8266-Server-HTML-JSON

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.

ESP8266-12E

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]

Example :

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 !

About

Remote control an irrigation water pump through javascript Webpage or GET requests. Get temperature / humidity, and level of the water tank.


Languages

Language:Arduino 100.0%