Page 1 of 1

read device history with dzVents?

Posted: Wednesday 15 August 2018 23:06
by renerene
What was the temperature, 24 hours ago?
How long was the switch off, before it was put on?
What was the average power consumption this week?
Which day of last week had the highest temperature?


--> is it possible to read the devices database history with lua or dzVents?

Re: read device history with dzVents?  [Solved]

Posted: Thursday 16 August 2018 12:14
by waaren
Not directly but possible to access domoticz API with dzVents or lua to get the raw data.
eg.

Code: Select all

http://domoticz_ip:domoticz_port/json.htm?idx=device_idx&type=lightlog

http://domoticz_ip:domoticz_port/json.htm?type=graph&sensor=temp&idx=device_idx&range=month

Re: read device history with dzVents?

Posted: Monday 25 November 2019 9:14
by Fabruccio
Hi. From a rain device:

Code: Select all

http://DA.IP.OF.PI:PORT/json.htm?type=graph&sensor=rain&idx=IDX&range=week