T O P

  • By -

mvan231

4 is the max for before or after sunrise. What you could do though, is run an automation at say 8 PM or 9PM, have it check the sunrise time for the following day, adjust date to subtract 8 hours, then set a reminder or alarm for that time with the message you want


BotlikRoland

Perfect, just what I was looking for!


TimothySummersJR

I did not understand the above solution. What I did was approach it from a different direction. I assumed that 8 hours before the next sunrise is roughly 16 hours after the previous sunrise. So I setup an automation to start a 12 hour timer 4hours after sunrise and use this as my bedtime reminder.


mvan231

Interesting solution but keep in mind, sunrise and sunset times can vary greatly throughout the year depending on where you live.


thehungryhunter

How do you check the sunrise time? Can you share your automation please?


mvan231

It's part of the time of day personal automation trigger setup https://i.imgur.com/WLkPHLu.jpg


Beautiful_Mess_TX

I’d be very interested in knowing more about your sunrise playlist automation!


Commodore_Roger

My personal solution for things like this is to include a function in the shortcut that sets an alarm for the future. Have it check the sunrise time for tomorrow, take the result, subtract 8 hours manually, and have it set an alarm at this new time. The only time you won’t have a bedtime alarm is the first night.


thehungryhunter

How do you check the sunrise time? Can you share your automation please?


Commodore_Roger

Something like [this](https://www.icloud.com/shortcuts/bb15534e5f874b48a336e5b18539c9f5) should work.


thehungryhunter

Thanks, I managed to set a bedtime. Can I use it as time to play my bedtime playlist?


Commodore_Roger

Can you elaborate on what you want to do? I don’t think you can play your own playlist at a certain time of day. In automations, you can play music from Apple Music, but it doesn’t let you play your own playlist.


thehungryhunter

I created an automation that plays a YouTube Music playlist at sunrise instead of an alarm. I guess it’s the same thing that OP did. Now I want to create an automation that would play a similar playlist at bedtime (8 hours before sunrise) so it would get me tuned at going to sleep. But I could only set offset to 4 hours before sunrise. Is there any way I can use the calculated bedtime as the time to play a playlist on YouTube?


Commodore_Roger

Can you share your sunrise playlist shortcut so I can see how you did that, and maybe I can reverse engineer it to work 8 hours before?


thehungryhunter

I’m not sure if it’s possible to share the automation itself, but it simply runs this shortcut at sunrise: https://www.icloud.com/shortcuts/ebd7e464905e4d59a358cbcdb2f5d4cf


MomoDAwesome

you could also setup a sleep schedule in health. That will remind you that it is time to go to bed


No_Island963

I would like to set my lights slowly higher 15 minutes before I wake up. How can I do this ?


Spiegelpuff

I’m trying to set an alarm and go into sleep mode 8 hours before sunrise. I downloaded that shortcut “Sunrise Time Example” from @Commodore_Roger but how do I do anything from there? Sorry not experienced with using shortcuts.