I wasn’t sure where to put this so I’m dropping it here, and sorry in advance if I missed an existing thread for this sort of thing (I had a look).
Mostly for its own sake, I wrote an iOS Shortcuts script that checks the current weather and the weather between sunrise and sunset, then reports if it’s clear now and what time it will be clear later. You can set it to run on a schedule, for example an hour after sunset, and be automatically prompted each day to get your telescope out:
https://www.icloud.com/shortcuts/ab19d1ccf0334dc3b2dd776bee812d4a
Okay, so I have about 8 other ways of getting this information from actual professional apps. The other reason for posting this is in case anyone winds up trying to make something useful later, I wanted to share some useful notes on how iOS presents sunrise and sunset times in Shortcuts
First, the Daily Weather Forecast. The first item in that List output has the predicted and observed weather conditions for the current calendar date from 0000 to 2359 local time. That includes sunrise and sunset, it’s done by the calendar day. (Perhaps obvious but it may not have been so I had to confirm it!) Likewise for the subsequent items, they’re the same data for subsequent calendar dates.
Current Conditions can also give you a sunrise and sunset, and those are... actually most of the time exactly like the ones for the first entry on the daily forecast. However it updates to give you the sunrise and sunset for the *next* calendar day at some time between 2345 and 0000, not at 0000, so you shouldn’t use this action to get that data. It’s unreliable.
In testing the above bug I sadly discovered that automations don’t run reliably shortly after midnight local time. They just silently don’t get run.
Lastly, when you set a shortcut to run automatically as an automation, you always get a notification from the Shortcuts app, even if the process makes no output of its own. My first version of this script didn’t display a notification unless there were good stargazing prospects, but it’s going to nag you anyway so it might as well display information.
I am sure some less disastrous programmers than me have done fun things with scraping data online, but I’d love a proper astronomy app that exposed data to Shortcuts in a convenient way.