Page 1 of 1

dusk/dawn triggers and conditions

Posted: 03 Nov 2013 18:36
by mikep
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

Re: dusk/dawn triggers and conditions

Posted: 06 Nov 2013 01:35
by pat2net
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

Re: dusk/dawn triggers and conditions

Posted: 07 Nov 2013 02:25
by mikep
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

Re: dusk/dawn triggers and conditions

Posted: 07 Nov 2013 18:57
by pat2net
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

Re: dusk/dawn triggers and conditions

Posted: 07 Nov 2013 21:04
by mikep
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