is it possible to run a loop in blockly ?

Moderator: leecollings

Post Reply
Dave21w
Posts: 382
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

is it possible to run a loop in blockly ?

Post by Dave21w »

I need to toggle the state of a switch every hour (depending on another switches state) and i've been trying to figure it out in blocky but at present I've drawn a blank, am i just being a bit thick or is it not possible ?

Thanks

Dave

Just answered my own question, yes it is, although I don't know if how I've done it is the correct way but it seems to work for me :D
Peterus
Posts: 15
Joined: Wednesday 09 October 2019 14:34
Target OS: Linux
Domoticz version: 2021.1
Location: Stockholm, Sweden
Contact:

Re: is it possible to run a loop in blockly ?

Post by Peterus »

I see you fixed it but since I'm trying to learn myself:

Can't you just make a Else If and a timer?
If On set to Off after 60 min.
If Off set to On after 60 min
Dave21w
Posts: 382
Joined: Sunday 29 November 2015 21:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Stable
Location: UK
Contact:

Re: is it possible to run a loop in blockly ?

Post by Dave21w »

Good point, I think I will try it that way as well, always happy to learn a bit more, mine looks like this.
1hr toggle.jpg
1hr toggle.jpg (28.58 KiB) Viewed 927 times
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest