I need a simple Switch-Widget for Flightmode

Share and discuss your flows and ideas with other users.

Moderator: Martin

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: I need a simple Switch-Widget for Flightmode

Post by Bushmills » 21 Jul 2016 14:07

I think I misunderstood your question, possibly due to some confusion radiating from it.
You want to use the built-in switch widget to trigger a flow (which then, enables/disables screen rotation)?
Use any new global variable you like, by inventing an appropriate name for it, which gets true or false assigned by tapping the widget. Then create a trigger "global variable", with that your variable named.
The trigger will fire when value of that variable changes.

lazyI
Posts: 5
Joined: 19 Jul 2016 21:04

Re: I need a simple Switch-Widget for Flightmode

Post by lazyI » 21 Jul 2016 15:25

@MURTUMA
Use any new global variable you like, by inventing an appropriate name for it, which gets true or false assigned by tapping the widget. Then create a trigger "global variable", with that your variable named.
That makes things clearer for me! A global variable is some kind of shortcut to a flow, in this case!

The "enable/disable screen rotation with status bar"-widget is working now! Thanks for the help!
It's not very elegant, but it's working:
Attachments
Screenshot_2016-07-21-17-17-48.png
Screenshot_2016-07-21-17-17-48.png (107.6 KiB) Viewed 7622 times

Post Reply