Get P1 meter usage of last hour
Posted: Monday 31 October 2022 11:12
Hi!
Is it possible using the device API in dzVents to retrieve the P1 usage (power and gas) for the last hour?
Only thing I could think of so far is having a script that runs hourly and uses the data storage to store the last known counter.
But this doesn't guarentee that the current counter - data counter = usage of the last hour (what if the script didn't run for some reason).
So is it possible to retrieve the usage of the last hour?
Is it possible using the device API in dzVents to retrieve the P1 usage (power and gas) for the last hour?
Only thing I could think of so far is having a script that runs hourly and uses the data storage to store the last known counter.
But this doesn't guarentee that the current counter - data counter = usage of the last hour (what if the script didn't run for some reason).
So is it possible to retrieve the usage of the last hour?