Shake as condition

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Shake as condition

Post by sambarlick » 27 Jul 2014 14:18

Shake is already a trigger, but i can't find it as a condition.

If it is not currently a condition is it possible to add this feature?

Thanks, Sam

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Shake as condition

Post by Martin » 28 Jul 2014 18:00

Hi,

Could you describe how you would like to use such a condition in a flow?
Should the condition wait a predefined amount of time (e.g. 10 seconds) and continue on the true-branch when the device detects a shake within the 10 seconds?

Regards,
Martin

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Shake as condition

Post by sambarlick » 29 Jul 2014 01:04

Hi Martin,

Thanks for your reply.

I'm trying to work on this flow...

I want to shake the phone when it's off to turn the camera light on, but then turn it off if the phone is shakes again.

At the moment it turns on the light but then is very difficult to turn it off again.

I like to put sleeps in my flows that keep them alive. If i had shake as a condition then maybe i could get it to be reliable.

Thanks Sam
Attachments
flow_Flashlight_20140729_105557.xml
(1.91 KiB) Downloaded 942 times

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Shake as condition

Post by sambarlick » 01 Aug 2014 14:36

I see the flashlight flow i designed before downloaded multiple times.

This is a significantly upgraded version.

I changed the trigger a the shake was to sensitive and then when i changed the sensitivity level it became too hard to make the flow consistent.

This new flow is a bit slow but still turns the camera light on when the screen is off and then turns the light off again whilst the screen is off.

There are 2 flows, one to turn it on and one to turn it off. The trigger is the screen orientation.

Sam
Attachments
flow_group_Flashlight_20140802_002719.xml
(6.83 KiB) Downloaded 994 times

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Shake as condition

Post by sambarlick » 06 Aug 2014 14:22

Does anybody have any feedback or suggestions to make the flow better?

Sam

ZSasha
Posts: 103
Joined: 11 Oct 2013 03:48

Re: Shake as condition

Post by ZSasha » 06 Aug 2014 22:03

Just thought it might be a good idea to check whether the phone is in pocket or not before activating the flash.
You obviously don't want to activate the flash if you are riding a bike and just ride on a bumpy road for example :)

sambarlick
Posts: 96
Joined: 27 Jul 2014 10:40

Re: Shake as condition

Post by sambarlick » 07 Aug 2014 00:19

I already have in the flow a condition to check the proximity, is the another way of checking of the phone is in a pocket?

Sam

User avatar
Pendrokar
Posts: 26
Joined: 31 Dec 2013 10:22
Location: Riga, Latvia

Re: Shake as condition

Post by Pendrokar » 29 Aug 2014 19:14

I don't believe this feature is necessary, since you can turn on a flow that has shake as a trigger. Although there are a few conditions that have to wait for some data to come in, like GPS location.

Locked