Blockly Device-->Weather-->"Rain" Topic is solved

Moderator: leecollings

Post Reply
Ricard1
Posts: 62
Joined: Saturday 07 November 2015 12:30
Target OS: Windows
Domoticz version: Beta
Location: Sweden
Contact:

Blockly Device-->Weather-->"Rain"

Post by Ricard1 »

Hi,
My intention was to use my weather station Rain Sensor Present Day accumulated precipitation (as standard indicated by Domotics Rain Sensor) to decide if my popup watering sprinklers should be started at time 23:59 or not.

However as it did not work as expected this night, I checked more careful and see that in the "present value/states list" in Blockly that the Device-Weather-"Rain" indicates totally (year) accumulated precipitation... I cannot see the use for that "wide" value in a Blockly script! ? :(

So I cannot achieve the function needed depending on today's value. I assume "someone" needs to add another Blockly Rain device with present day accumulated value, or better change the present value to Present Day accumulated precipitation... ?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Blockly Device-->Weather-->"Rain"

Post by waaren »

Ricard1 wrote: Thursday 02 July 2020 19:48 My intention was to use my weather station Rain Sensor Present Day accumulated precipitation
I don't think you can do this in Blockly. The dailytotal is a calculated value based on current total - yesterdays total. Blockly in domoticz does not have any calculation blocks.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Ricard1
Posts: 62
Joined: Saturday 07 November 2015 12:30
Target OS: Windows
Domoticz version: Beta
Location: Sweden
Contact:

Re: Blockly Device-->Weather-->"Rain"

Post by Ricard1 »

waaren wrote: Thursday 02 July 2020 20:27
Ricard1 wrote: Thursday 02 July 2020 19:48 My intention was to use my weather station Rain Sensor Present Day accumulated precipitation
I don't think you can do this in Blockly. The dailytotal is a calculated value based on current total - yesterdays total. Blockly in domoticz does not have any calculation blocks.
So present Rain sensor Device in Blockly is useless, I can not see what year total accumulated rain could do for anyone in automation script :roll:
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Blockly Device-->Weather-->"Rain"

Post by waaren »

Ricard1 wrote: Saturday 11 July 2020 11:19 So present Rain sensor Device in Blockly is useless, I can not see what year total accumulated rain could do for anyone in automation script :roll:
Fact that dailyTotal is not available in Blockly does not imply it is not available at all. You can use it in dzVents or get it via a JSON API call to use it in Bash or Python scripts.

I do not see a useful application of year total accumulated rain in Blockly either but I am open to be surprised by the creativity of other members with regards to developing useful applications in Blockly based on this data.
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