record:{
"Mode": "record",
"Token": "[user token]",
"data":
{
"SoilHumitity":"56.6",
"AirHumidity":"76.9",
"Wind":"34.7",
"Sun":"6564",
"Temperaure":"23.6",
"CO":"0.004",
"O2":"12.3",
"PH":"4.6"
}
}
SoilHumidity:
0-100 %
AirHumidity:
0-100 %
Wind:
0-999 km/h
Sun:
0-999.999 lx
Temperature:
-99-99 °C
CO:
0-100 %
O²:
0-100%
PH:
0-14
registercontroller:{
"username":"johndoe",
"password":"202cb962ac59075964b07152d234b",
"mac":"xx‑xx‑xx‑xx‑xx‑xx",
"nickname":"Controller1",
"capabilities":
{
"SoilHumitity":"1",
"AirHumidity":"0",
"Wind":"0",
"Sun":"0",
"Temperaure":"0",
"CO":"0",
"O2":"0",
"PH":"0"
}
}
password:(md5 hash)
nickname:(5-30)
The string that is displayed in the dashboard
mac:(20)
The string which identifies the controller before a ControllerID is generated
capabilities:
Describes all sensor data types the controller can produce as JSON object
unregistercontroller:{
"Mode": "unregistercontroller",
"username":"johndoe",
"password":"202cb962ac59075964b07152d234b",
"deviceToken":"A298F51D-FA0F-4070-B187 D1A07A370F15"
}
password:(md5 hash)deviceToken:
The unique identifier of the controller
renamecontroller:{
"Mode": "renamecontroller",
"username":"johndoe",
"password":"202cb962ac59075964b07152d234b",
"deviceToken":"A298F51D-FA0F-4070-B187 D1A07A370F15",
"nickname":"SoilHumidityController1"
}
nickname:
The new nickname of the controller
setcontrollercapabilities:{
"Mode": "setcontrollercapabilities",
"username":"johndoe",
"password":"202cb962ac59075964b07152d234b",
"deviceToken":"A298F51D-FA0F-4070-B187 D1A07A370F15",
"capabilities":{
"SoilHumitity":"1",
"AirHumidity":"0",
"Wind":"0",
"Sun":"0",
"Temperaure":"0",
"CO":"0",
"O2":"0",
"PH":"0"
}
}
Sets the possible data types for the given controller.
Only these are logged to the database and displayed in the dashboard even if more data is trans
setselectedcontrollercapabilities:{
"Mode": "setcontrollercapabilities",
"username":"johndoe",
"password":"202cb962ac59075964b07152d234b",
"deviceToken":"A298F51D-FA0F-4070-B187 D1A07A370F15",
"capabilities":{
"SoilHumitity":"1",
"AirHumidity":"0",
"Wind":"0",
"Sun":"0",
"Temperaure":"0",
"CO":"0",
"O2":"0",
"PH":"0"
}
}
Sets the active capabilities of the given controller, Only these are logged to the database and displayed in the dashboard even if more data is transmitted.
getcontrollercapabilities:{
"Mode": "getcontrollercapabilities",
"username":"johndoe",
"password":"202cb962ac59075964b07152d234b",
"deviceToken":"A298F51D-FA0F-4070-B187 D1A07A370F15",
}
Returns the capabilities of the given controller like:{
"SoilHumitity":"1",
"AirHumidity":"0",
"Wind":"0",
"Sun":"0",
"Temperaure":"0",
"CO":"0",
"O2":"0",
"PH":"0"
}
getselectedcontrollercapabilities:{
"Mode": "getcontrollercapabilities","username":"johndoe",
"password":"202cb962ac59075964b07152d234b"
"deviceToken":"A298F51D-FA0F-4070-B187 D1A07A370F15",
}
Returns the active capabilities of the given controller like:{
"SoilHumitity":"1",
"AirHumidity":"0",
"Wind":"0",
"Sun":"0",
"Temperaure":"0",
"CO":"0",
"O2":"0",
"PH":"0"
}