Page 1 of 1

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

Posted: Thursday 02 July 2020 19:48
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... ?

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

Posted: Thursday 02 July 2020 20:27
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.

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

Posted: Saturday 11 July 2020 11:19
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:

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

Posted: Saturday 11 July 2020 11:31
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.