In some of my flows I use Init variable location using GPS.
If I am indoor and can't get a GPS fix, the flow will exit. This action is within a loop and I would like the flow to continue. Is there any way to check for GPS signal before the action Init variable location? Eg. True - - > continue, False - - > try network instead. (there is a reason why I prefer GPS)
Init variable location
Moderator: Martin
Re: Init variable location
If you use the exception action like in my exemple maybe it will work.
http://automagic4android.com/flow.php?i ... ba5f4e4d68
http://automagic4android.com/flow.php?i ... ba5f4e4d68
Re: Init variable location
It did. Thank you wery much. You opened a door for me
Do someone know how to use the variables location_bearing, _altitude,_speed? I can't work with them as I can with location and I have problems finding info about the topic
Do someone know how to use the variables location_bearing, _altitude,_speed? I can't work with them as I can with location and I have problems finding info about the topic
Re: Init variable location
Hi,
You can use the location-variables in a condition Expression or an action Script.
For example:
-trigger Periodic Location Update: every 10s (GPS)
-condition Expression: location_speed>20 (speed is in m/s)
-->true: action Notification on Screen: over 72km/h
-->false: action Notification on Screen: under 72km/h
Note that the variables are only available when using GPS and only when using trigger Periodic Location Update (the variables will be also available in action Init Variable Location starting with the next release).
Regards,
Martin
You can use the location-variables in a condition Expression or an action Script.
For example:
-trigger Periodic Location Update: every 10s (GPS)
-condition Expression: location_speed>20 (speed is in m/s)
-->true: action Notification on Screen: over 72km/h
-->false: action Notification on Screen: under 72km/h
Note that the variables are only available when using GPS and only when using trigger Periodic Location Update (the variables will be also available in action Init Variable Location starting with the next release).
Regards,
Martin
Re: Init variable location
Thank you for the info
I'll wait for the update. The periodic update will drain my battery to fast, so I need a condition first (looking for the navigation app and external power) and then the action Init variable location.
I'll wait for the update. The periodic update will drain my battery to fast, so I need a condition first (looking for the navigation app and external power) and then the action Init variable location.