Obtain history of custom sensor

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
mackowiakp
Posts: 18
Joined: Friday 21 July 2017 19:26
Target OS: Linux
Domoticz version:
Contact:

Obtain history of custom sensor

Post 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?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Obtain history of custom sensor

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
mackowiakp
Posts: 18
Joined: Friday 21 July 2017 19:26
Target OS: Linux
Domoticz version:
Contact:

Re: Obtain history of custom sensor

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest