Is it Day or Night?
This shortcut determines whether it is day time or night time.
Description
This shortcut determines whether it is Day time or Night time. Basically it gets the sunrise time from weather, sunset time from weather and current time from current date. The next step is determines wether the current time is after sunrise and before sunset (Day time)? Or is it after sunset and before sunrise (Night time)?
This could have many applications. For example:
I use it to run Netflix app on Apple TV. If it’s night time the app with launch and the living room lights (in Homekit) will set up the mode for watching a movie. If it’s day time the Netflix app will launch on Apple TV, but there will be no light automation. The main steps are: 1. Run the shortcut. 2. Check of it is day or night. 3. In Day Time: Netflix runs. 4. In Night Time: Netflix runs, Homekit scene On.
I hope you find this useful.