# Nightwatch – a Mac menu-bar app that tells you when tonight…

Here in the north of England clear nights are at a premium, and it's never guaranteed that you'll be able to see anything but cloud. That's why I developed Nightwatch, so that I could be notified when one of those precious few nights where I could see into the heavens was available. Finding out whe…

- **Page:** https://magpie.gallery/i/nightwatch-a-mac-menu-bar-app-that-tells-you-when-pwi8
- **Type:** Link to an idea elsewhere
- **Category:** Utilities
- **Runs on:** macos
- **Tags:** stargazing, forecast, menu-bar, notifications, astronomy

## Source

Web · delphidolphin: Nightwatch – a Mac menu-bar app that tells you when tonight is clear

- **Original:** https://news.ycombinator.com/item?id=49952148

> Here in the north of England clear nights are at a premium, and it's never guaranteed that you'll be able to see anything but cloud. That's why I developed Nightwatch, so that I could be notified when one of those precious few nights where I could see into the heavens was available. Finding out whether tonight was worth setting up meant reading forecast charts every evening, usually to learn that it was not. Nightwatch does that reading for me. It sits in the Mac's menu bar and refreshes the forecast every 30 minutes. An hour before sunset it sends one notification, and only if there is an unbroken run of clear sky in astronomical darkness long enough to image in. Otherwise it says nothing: no news means "clouds". I hope this is useful for other hobbyist stargazers too! When I was a child I wanted desperately to be an astronaut or a dinosaur. I'm now old enough to be the latter and was born in a country where the former was never an option. I've had a fascination with the stars since a a friend of my father gifted me a telescope, and have faded memories of sharing time with my father staring at the stars. My father passed away a few years back and the memory of those nights came back, along with the want to share the same experience with my kids and grandchild. The app uses two forecasts: Apple's WeatherKit is the main source and Open-Meteo is a second opinion. When they disagree, the alert says so instead of averaging them. Thin high cloud counts for half. Stacking many short frames works through a veil of cirrus, so treating it as full cloud threw away usable nights. It works on your own horizon: hills come from terrain data, and you set the houses and trees in each direction, so they are accounted for when it says what is up. It works out, a year ahead, when the Moon will pass in front of a planet, a bright star or the Pleiades as seen from your site. You don't need an account. What leaves the Mac is the coordinates of the place being forecast, sent to the foreca

## GitHub projects

- https://github.com/rsutcliffe/nightwatch

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
