Page 1 of 1
Obtain history of custom sensor
Posted: Monday 31 December 2018 8:28
by mackowiakp
I did not find json query in Wiki about how to obtain history (both in graph and number form) of custom sensor. I collect from this sensor infos from distant dust sensor (PPM of dust in air) and nodeMCU (based on EasyESP) rapports every 5 min results of measurements.
It is possible to obtain such rapport from WEB GUI of Domoticz but is it possible from command line/script or so on?
Re: Obtain history of custom sensor
Posted: Monday 31 December 2018 10:45
by waaren
mackowiakp wrote: Monday 31 December 2018 8:28
I did not find json query in Wiki about how to obtain history (both in graph and number form) of custom sensor. I collect from this sensor infos from distant dust sensor (PPM of dust in air) and nodeMCU (based on EasyESP) rapports every 5 min results of measurements.
It is possible to obtain such rapport from WEB GUI of Domoticz but is it possible from command line/script or so on?
From a script or command line:
Code: Select all
http://domoticIP:domoticzPort/json.htm?range=year&sensor=Percentage&type=graph&idx=Your device ID
http://domoticIP:domoticzPort/json.htm?range=month&sensor=Percentage&type=graph&idx=Your device ID
http://domoticIP:domoticzPort/json.htm?range=day&sensor=Percentage&type=graph&idx=Your device ID
From the web GUI. Goto the tab with the custom sensor. click the log symbol, on the log page click the 'chart context menu icon'
cannot attach a screenshot because or error: "Sorry, the board attachment quota has been reached."
Until fixed please use
this external link to view the screenshot
Re: Obtain history of custom sensor
Posted: Monday 31 December 2018 13:23
by mackowiakp
OK. THX for answer and PM. it works. But be so king to tell me is any way to specify the range of time the rapport should be generated?