Rain gauge DIY

Moderator: leecollings

Post Reply
Kevin54
Posts: 3
Joined: Sunday 02 May 2021 18:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Rain gauge DIY

Post by Kevin54 »

Hi,

I need some help for finish my rain gauge DIY.

I don't understant why my firts value or not write in my rain counter.

I use an esp01 with reed switch. He sent sent to domoticz a value 1 (Counter Incremental IDX=638 ) after each bucket move.

I have write a Python script in my serveur. Each 6 min the script read de (Counter Incremental IDX=638 ) and sent to domoticz value by hour and rain for the day ( IDX=419). I know Python isn't the better langage for domoticz, I don't know other language.

I use users variable for stock rain by day. A blockly sript reset to 0 at midnith.

I attache some capture.

thanks
Attachments
1 basculement de godet_domoticz.JPG
1 basculement de godet_domoticz.JPG (20.22 KiB) Viewed 812 times
1 basculement de godet_domoticz var.JPG
1 basculement de godet_domoticz var.JPG (27.97 KiB) Viewed 812 times
1 basculement de godet.JPG
1 basculement de godet.JPG (58.38 KiB) Viewed 812 times
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Rain gauge DIY

Post by waaren »

Kevin54 wrote: Saturday 08 May 2021 16:00 I have write a Python script in my serveur. Each 6 min the script read de (Counter Incremental IDX=638 ) and sent to domoticz value by hour and rain for the day ( IDX=419). I know Python isn't the better langage for domoticz, I don't know other language.
You send 640;0.64 to device 419 (incremental counter) but the counter only expects 1 value and ignore the other values.
check the wiki
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Kevin54
Posts: 3
Joined: Sunday 02 May 2021 18:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Rain gauge DIY

Post by Kevin54 »

IDX = 419 is rain counter

IDX = 638 is Counter Incremental

Ray_Cumul_Day is users variable IDX = 1
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Rain gauge DIY

Post by waaren »

Kevin54 wrote: Saturday 08 May 2021 17:05 IDX = 419 is rain counter
The value on the top of the rain sensor is a calculated dailytotal based on what is already in the database and what you send. This value is reset by domoticz at 0:00
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest