I know this is probably a waste of time to ask the question but in order for macrodroid to properly calculate sunrise and sunset, you have to preset the location to use in trigger settings. Since that must be done on each device and is not something that can be copied down with the macro, I just wanted to confirm you did set that info on the non working device?Sunset and Sunrise triggers don't work on Motorola g30. But they do work on Samsung devices (Tab A Andr 11 and J600 Andr 10)
Thanks for the answer. Your suggestion is very interesting. I didn't think about the location.I know this is probably a waste of time to ask the question but in order for macrodroid to properly calculate sunrise and sunset, you have to preset the location to use in trigger settings. Since that must be done on each device and is not something that can be copied down with the macro, I just wanted to confirm you did set that info on the non working device?
If you have and it's still not working, I have a working routine (adapted from an example macro provided by tanutanu which sends a web query (including the device's location) to get the day's sunrise and sunset (which I can then use to set stopwatch triggers). Please let me know and I can extract that portion of the larger macro.
Thanks
From the home screen select the settings icon (right most icon on bottom of screen).Thanks for the answer. Your suggestion is very interesting. I didn't think about the location.
I don't know how to preset the location in trigger settings.
In general, I would really like to look at the solution that you mentioned. Can you post it please?
Thanks a lot for your macro.@stsu I have created a macro that displays the sunrise and sunset for the current location, although it cannot be used as a trigger.
Please try it if you like.
Could this be used to trigger something at sunrise as well? Should I duplicate the entire macro or just part of it?Yes, I tested version #2 (on my phone this time) and it worked.
Note that
- Of course you'll want to change the Log Event action to whatever you want to run at sunset and
- The macro checks the sunset time (and sets the associated Stopwatch and trigger) at 4pm each day. I guessed that'd make sense for someone traveling on business as one is normally in a new time zone/location by 4pm (at least in my experience). You may want to change that, however, to an earlier time, or additional times, or maybe change it to check anytime Airplane Mode is disabled (if you take planes), or anytime you connect to a wifi network (if you stay in hotels on travel) -- depending on how you travel between locations.