dusk/dawn triggers and conditions

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

Moderator: Martin

Locked
mikep
Posts: 3
Joined: 03 Nov 2013 18:14

dusk/dawn triggers and conditions

Post by mikep » 03 Nov 2013 18:36

Location &/or timezone based conditions (like the time condition, but using dawn/dusk), and triggers for dawn/dusk times would be quite useful (for example deciding when to activate an outside light).

Mike

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: dusk/dawn triggers and conditions

Post by pat2net » 06 Nov 2013 01:35

I change the luminosity of the cell with the sunsrise and sunset hour.

See this topic to know how to do it for your city.

http://automagic4android.com/forum/view ... f=3&t=1853

mikep
Posts: 3
Joined: 03 Nov 2013 18:14

Re: dusk/dawn triggers and conditions

Post by mikep » 07 Nov 2013 02:25

Very cool. Do I have it right - I would use it as a condition by calling the action and saving the results in a script variable to test in a condition?

Mike

pat2net
Posts: 85
Joined: 01 May 2013 09:18

Re: dusk/dawn triggers and conditions

Post by pat2net » 07 Nov 2013 18:57

Well, english is not my primary language so I don't really understand your question. The flow name 'sun' get the sunrise and sunset time and store the value in a global variable (global_sunrise and global_sunset). You can use these global variables in a trigger, an action or a condition. I made a widget that shiw the sunset and sunrise value. To use the flow you must get a free key code and put it in the action astronomy.

The flows:
http://automagic4android.com/flow.php?i ... 6370944828

The widget:
http://automagic4android.com/flow.php?i ... 68cb45eceb

mikep
Posts: 3
Joined: 03 Nov 2013 18:14

Re: dusk/dawn triggers and conditions

Post by mikep » 07 Nov 2013 21:04

Sorry, I asked the question badly but you answered it perfectly - that's exactly what I was looking for - how to make the sunrise/sunset times available for use in a condition. Thanks!

Mike

Locked