Fix bug and bad log + add new HTTP API for charts/datalogger points retrieval.
This api act as a proxy for influxdb database. If datalooger is disable, this api return "success" : "false" otherwise, the content of the q key of the json request is send to influxdb.
Influxdb output is then returned as json payload.
Example of json payload (get 1hour of points for Calaos IO named "Outside Temperature")
{ "cn_user": "USERNAME", "cn_pass": "PASSWORD", "action": "datalogger", "q": "SELECT \"value\" from \"Outside Temperature\" WHERE time >= now() - 1h" }
Fix bug and bad log + add new HTTP API for charts/datalogger points retrieval.
This api act as a proxy for influxdb database. If datalooger is disable, this api return "success" : "false" otherwise, the content of the
q
key of the json request is send to influxdb. Influxdb output is then returned as json payload.Example of json payload (get 1hour of points for Calaos IO named "Outside Temperature")
Example of json returned :