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?
Obtain history of custom sensor
Moderators: leecollings, remb0
-
- Posts: 18
- Joined: Friday 21 July 2017 19:26
- Target OS: Linux
- Domoticz version:
- Contact:
- 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
From a script or command line: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?
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
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
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 18
- Joined: Friday 21 July 2017 19:26
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Obtain history of custom sensor
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?
Who is online
Users browsing this forum: No registered users and 1 guest