Page 1 of 1
How to Loop a specific number of times
Posted: 21 Jun 2014 01:55
by steelersmb
What I am trying to do is I have a flow that executes when I am in my home or work cell. It checks every 10 minutes for a WiFi connection and if it doesn't connect, I want it to loop back around and check for a period of maybe 3 times. If it doesn't connect on the 3rd time, I want it to stop trying. The reason for this is when I am driving around near my house, I don't want it to keep trying, only up to 3 times. Does anyone know how to create a loop with a counter in it?
Thanks.
Re: How to Loop a specific number of times
Posted: 21 Jun 2014 06:58
by kintrupf
Try the attached flows, they should do exactly what you want. You'll need to edit your own location in 2 places in the first flow.
The flow shows a statusbar notification while it tries to connect to the WiFi net.
The second flow is used to stop the first flow when the notification is selected.
Re: How to Loop a specific number of times
Posted: 21 Jun 2014 11:05
by steelersmb
Thanks, I am checking them out right now. Do you find that the location works for you? I tired it and it didn't seem very accurate so that's why I used connected to cell instead.
Also, one more question. I don't see a place to edit the location twice, just the first step. There is a blank conditional statement. Is this the second place to enter the location?
Re: How to Loop a specific number of times
Posted: 23 Jun 2014 11:38
by kintrupf
steelersmb wrote:Thanks, I am checking them out right now. Do you find that the location works for you? I tired it and it didn't seem very accurate so that's why I used connected to cell instead.
For me it works quite well. At home I hardly ever need to switch on the WiFi manually.
The flow tries for several minutes to connect to the WiFi, while making some pauses to save some energy.
To make sure your WiFi is eventually found you can try to increase the number of loops and/or the radius of the location.
steelersmb wrote:Also, one more question. I don't see a place to edit the location twice, just the first step. There is a blank conditional statement. Is this the second place to enter the location?
Yes, that's right. I guess I was a little bit to thorough editing out my personal data
