Page 1 of 1

Does V_RAIN work as V_KWH?

Posted: Thursday 05 November 2015 22:33
by sundberg84
Hi!
Im working on a sleeping tip bucket/rain.

When i look at the EnergyMeter/Watermeter it keeps adding V_KWH and never reset this at midnight. It seems like Domoticz keeps track of this but is it the same with V_RAIN?

If i send 1mm the first day it will add this to domoticz. But it seems like i have to reset this at midnight or it will sum up the rain over all time?

IS this correct or i made some misstake in my sketch?

Thanks.

Re: Does V_RAIN work as V_KWH?

Posted: Friday 06 November 2015 7:47
by gizmocuz
Correct, it is the same as the Enery/Water meter.
The Rain sensor expects a counter that increases only
Domoticz will show the amount of rain based on the last counter value minus the first counter value of the day

Re: Does V_RAIN work as V_KWH?

Posted: Friday 06 November 2015 21:02
by sundberg84
Still, I dont think this is correct or works correct in domoticz (latest beta).
My energymeter works great but not my Raingauge:

Start:
read: 0-0-7 s=1,c=2,t=24,pt=0,l=2,sg=0:52
Received last pulse count from gw: 52
After 10 bucket tips (0.5mm) within the same hour (I send V_RAIN every 0.5 and counter every 1.0)
The bucket has tipped over...
send: 7-7-0-0 s=1,c=1,t=6,pt=7,l=5,sg=0,st=ok:4.5 (V_RAIN)
he bucket has tipped over...
send: 7-7-0-0 s=1,c=1,t=6,pt=7,l=5,sg=0,st=ok:5.0 (V_RAIN)
send: 7-7-0-0 s=1,c=1,t=24,pt=2,l=2,sg=0,st=ok:57 (V_VAR1)
Result next hour
whatswrong.JPG
whatswrong.JPG (43.11 KiB) Viewed 873 times

Re: Does V_RAIN work as V_KWH?

Posted: Saturday 07 November 2015 7:55
by gizmocuz
best to export your database, and open this in for example 'SQLite Expert Personal'
watch the first counter of the day and the last counter, difference is amount of rain today

Re: Does V_RAIN work as V_KWH?

Posted: Saturday 07 November 2015 10:30
by sundberg84
Its strange this... i dont know. I will run my node for a couple of days...
It looks like it is the first day it goes wrong. Today it looks better...

My database from yesterday which corresponds to images above:
whatswrong.jpg
whatswrong.jpg (178.38 KiB) Viewed 847 times
Will return with results...

Re: Does V_RAIN work as V_KWH?

Posted: Sunday 08 November 2015 10:20
by sundberg84
My fault that I thought V_Rain was supposed to be reset at midning (viewtopic.php?f=42&t=7840)
This is working and V_RAIN works as it should (and as V_KWH).