Blockly: Update value from blocky with a forumla (value + 1)
Posted: Monday 08 August 2016 20:20
Hi there!
User story:
As $user I want to know when my weather station has stopped and are not updating the weather station values anymore.
To solve this I planned to count the times the weather station is sending the same value and if it is still sending the n time I'll notify.
If it's updated I'll reset the counter value to n=1
Here's my built out Blockly in Events: (truncated the notification line...)
Unfortunately, as you can see, I'm missing the option to update the value of +1 but it is possible here:
https://developers.google.com/blockly/g ... eb/toolbox
Now, I'm sure there are other ways and probably smarter ways but as I'm not too good at writing my own scripts this is the solution I went for.
Are there any chance I can update the value as I wish with Blocky and Events in Domoticz or do I need to work with LUA or even turn to node-red?
Do I just not find the blocks or is it possible to add these functions into Events for Domoticz?
Many Thanks!
Edit: Placed attachments on the right place.
UPDATE: Added to my Blockly IF to reset the counter SET, Counter = 0, when message is sent
User story:
As $user I want to know when my weather station has stopped and are not updating the weather station values anymore.
To solve this I planned to count the times the weather station is sending the same value and if it is still sending the n time I'll notify.
If it's updated I'll reset the counter value to n=1
Here's my built out Blockly in Events: (truncated the notification line...)
Unfortunately, as you can see, I'm missing the option to update the value of +1 but it is possible here:
https://developers.google.com/blockly/g ... eb/toolbox
Now, I'm sure there are other ways and probably smarter ways but as I'm not too good at writing my own scripts this is the solution I went for.
Are there any chance I can update the value as I wish with Blocky and Events in Domoticz or do I need to work with LUA or even turn to node-red?
Do I just not find the blocks or is it possible to add these functions into Events for Domoticz?
Many Thanks!
Edit: Placed attachments on the right place.
UPDATE: Added to my Blockly IF to reset the counter SET, Counter = 0, when message is sent