Skip to content

esp8266 greenhouse controller with server side logic

License

Notifications You must be signed in to change notification settings

Frovu/tomato-heart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tomato-heart

IOT (esp8266, lua) system with server side logic

API

heart (esp8266)

GET /heart

params: ?s=\<settings hash sum\>
response:

  • 200 - all up to date (empty body)
  • 400 - no sum provided
  • 205 - settings update, body: {new: <settings>, sum: <hashsum>}

POST /heart/data

body: {key: "", msg: "", val: ""}
response:

  • 200 - data saved
  • 400 - bad data
  • 401 - bad authority information

POST /heart/event

body: {key: "", ...}
see const FIELDS in heart/modules/database for keys dictionary (all are float) response:

  • 200 - data saved
  • 400 - bad data
  • 401 - bad authority information

user (front end)

GET /user

get current settings

GET /user/default

get default settings

GET /user/status

get last devices event and data

POST /user

update settings body: {settings: {new settings}, secert: "secret"}
response:

  • 200 - settings saved
  • 400 - bad settings
  • 401 - invalid secret

About

esp8266 greenhouse controller with server side logic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published