Widget/toggle youtube video

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
User avatar
Autumn-Leigh
Posts: 67
Joined: 15 Mar 2018 19:23
Location: UK
Contact:

Widget/toggle youtube video

Post by Autumn-Leigh » 24 Mar 2018 11:58

https://youtu.be/SMkJkbwWL2E

theres a link guys.
if anyone wants a shoutout, and has a flow they wont me to do, be it theirs or another, let me know!
YouTube Channel - https://youtu.be/fui3RO9EmNU
If anyone wants a shoutout, or has a flow they want me to do, be it theirs or a new one, let me know :)

User avatar
Desmanto
Posts: 1934
Joined: 21 Jul 2017 17:50

Re: Widget/toggle youtube video

Post by Desmanto » 24 Mar 2018 14:22

I just know we can make widget toggle that easy :lol: I never use that, since I have my own way using execution count; or just make a full widget out of it. The video is quite simple and easy to understand.

My method of toggling doesn't require global variable. As you progress and use more glovar, you will see that the glovar is quite precious. I would avoid using it unless it is necessary. Using execution count won't use up any glovar. And we have multiple state toggling; not just true/false, on/off. But we toggled to state 1 > state 2 > state 3 > state 4 and back to state 1 again. But I found out a bug (or should be called semibug) when testing the flow. I will make a full thread explaining later when I have time. I am still going to share the wifi geofencing flow I have tested and working for several days.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), Resurrection Remix Official 7.0.2 20190714, Pie 9.0, Rooted.

User avatar
Autumn-Leigh
Posts: 67
Joined: 15 Mar 2018 19:23
Location: UK
Contact:

Re: Widget/toggle youtube video

Post by Autumn-Leigh » 24 Mar 2018 14:28

Desmanto wrote:I just know we can make widget toggle that easy :lol: I never use that, since I have my own way using execution count; or just make a full widget out of it. The video is quite simple and easy to understand.

My method of toggling doesn't require global variable. As you progress and use more glovar, you will see that the glovar is quite precious. I would avoid using it unless it is necessary. Using execution count won't use up any glovar. And we have multiple state toggling; not just true/false, on/off. But we toggled to state 1 > state 2 > state 3 > state 4 and back to state 1 again. But I found out a bug (or should be called semibug) when testing the flow. I will make a full thread explaining later when I have time. I am still going to share the wifi geofencing flow I have tested and working for several days.
I had to teach myself it :') getting there slowly
YouTube Channel - https://youtu.be/fui3RO9EmNU
If anyone wants a shoutout, or has a flow they want me to do, be it theirs or a new one, let me know :)

Post Reply