Page 1 of 1

User Activity condition

Posted: 30 May 2014 18:23
by colabi
Hi Martin,

Do you think you can add a condition to check User Activity (driving, riding, walking)?
Thanks

Re: User Activity condition

Posted: 31 May 2014 09:28
by Martin
Hi,

Detecting the user activity is something that needs to be done actively over a period of time so it's not a good candidate for a condition.

You could make your own condition by using the trigger User Activity and store the activity periodically in a global variable:
-trigger User Activity: every 5m
-action Script: global_activity = activity_name;

and use a condition like this in another flow:
-condition Expression: global_activity=="on_foot"

Regards,
Martin

Re: User Activity condition

Posted: 31 May 2014 11:55
by colabi
OK Martin, thanks