frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Nightwatch – a Mac menu-bar app that tells you when tonight is clear

https://github.com/rsutcliffe/nightwatch
26•delphidolphin•1d ago
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 forecast and sky-survey services listed in PRIVACY.md.

Limits: Mac only, and the aurora alerts are UK only. The worldwide light-pollution data is new this week. I have checked it against Britain's finer grid and a handful of cities, so I would especially like to hear from people elsewhere whether the darkness it suggests for your site looks right.

Comments

leetrout•1h ago
Awesome! Thank you for sharing!

For iOS stargazers that don't already know (we've all been there) xasteria is a great option for your phone to compliment this (it also uses 7Timer!).

https://apps.apple.com/us/app/xasteria-astronomy-weather/id9...

The future of independence is interdependence

https://onlys.ky/independence-is-interdependence/
98•eustoria•3h ago•58 comments

Web Search API

https://developers.cloudflare.com/changelog/post/2026-10-02-introducing-web-search-api/
366•tosh•8h ago•178 comments

OpenAI "rogue" agent activities found on Wikimedia projects

https://diff.wikimedia.org/2026/10/05/openai-rogue-agent-activities-found-on-wikimedia-projects/
104•brokensegue•1h ago•67 comments

Making a GTK application in Haskell, part 1

https://floreal.tech/blog/2026/making-a-gtk-app-in-haskell-part-1/
99•Vosporos•4h ago•17 comments

Questions for Believers in AI Consciousness

https://endsdontjustifythemeans.com/p/6-questions-for-believers-in-ai-consciousness
6•cobbzilla•17m ago•0 comments

Denmark Data Breach Exposes 8.8M People's Personal Data

https://www.cpr.dk/cpr-nyt/nyhedsarkiv/2026/okt/omfattende-uautoriseret-adgang-til-borgeres-cpr-o...
412•clan•11h ago•301 comments

Show HN: Nightwatch – a Mac menu-bar app that tells you when tonight is clear

https://github.com/rsutcliffe/nightwatch
28•delphidolphin•1d ago•2 comments

US closely monitoring case of lab worker who possibly died of plague in Siberia

https://www.theguardian.com/world/2026/oct/05/russia-lab-worker-possibly-dies-of-plague-siberia-q...
143•tosh•2h ago•111 comments

Mold Linker Version 3.0.0 Release – Rewritten in Rust

https://github.com/rui314/mold/releases/tag/v3.0.0
186•roflcopter69•7h ago•96 comments

Linux containers in 500 lines of code

https://blog.lizzie.io/linux-containers-in-500-loc.html
39•mkornaukhov•5h ago•7 comments

Huawei and Qualcomm announce broad patent license agreement

https://www.huawei.com/en/news/2026/10/qualcomm-broad-patent-agreement
155•0xedb•11h ago•91 comments

Anthropic reported diary entry to police, woman faces felony charge

https://www.techspot.com/news/114091-florida-woman-used-claude-diary-anthropic-reported-shoot.html
247•emptybits•13h ago•197 comments

The technology to eradicate mosquito-borne disease exists

https://worksinprogress.co/issue/mosquitoes-are-a-choice/
187•benbreen•1d ago•140 comments

Differences Between `Foldl` and `Foldr`

https://blog.haskell.org/foldl-and-foldr/
111•signa11•4d ago•24 comments

The designer lamps in my house

https://arslan.io/2026/10/05/the-lamps-in-my-house/
39•farslan•5h ago•20 comments

Pixel 11 doesn't yet meet the GrapheneOS security standards and may be skipped

https://discuss.grapheneos.org/d/41564-pixel-11-doesnt-yet-meet-the-grapheneos-security-standards...
349•finnlab•6h ago•189 comments

2026 Nobel Prize in Physiology or Medicine: Deisseroth, Hegemann, Nagel

https://www.nobelprize.org/prizes/medicine/2026/summary/
71•lode•9h ago•36 comments

Beating the Compiler

https://www.mattkeeter.com/blog/2024-07-12-interpreter/
41•andsoitis•4d ago•29 comments

Greenvolt begins building 600 MW/2.4 GWh BESS in Poland

https://www.ess-news.com/2026/09/25/greenvolt-begins-building-600-mw-2-4-gwh-bess-in-poland/
10•msalsas•38m ago•5 comments

Hot Flashing Guide Rev. 2.0 (2004)

https://archive.techarp.com/showarticle504a.html?pgno=0
4•userbinator•2d ago•0 comments

Martian chaos terrain

https://en.wikipedia.org/wiki/Martian_chaos_terrain
71•tiagod•3d ago•19 comments

Norway Eyes Partial Ban of Smart Glasses

https://www.barrons.com/news/norway-eyes-partial-ban-of-smart-glasses-e65dc239
12•pseudolus•1h ago•1 comments

In the wake of Tippett Studios’ closure, a digital archive appears online

https://filmstories.co.uk/news/tippett-studios-in-the-wake-of-its-closure-a-digital-archive-of-an...
226•rdmuser•22h ago•30 comments

Picard 3.0

https://blog.metabrainz.org/2026/10/04/picard-3-0-released/
95•Tomte•5h ago•37 comments

We ported the original Doom to SQL

https://cedardb.com/blog/sqldoom/
284•Vaslo•1d ago•43 comments

A browser-native classic Visual Basic VB6 IDE

https://wieslawsoltes.github.io/VB6/
371•wiso•1d ago•126 comments

Mystery Function

https://codeset.ai/function
31•andre15silva•3d ago•5 comments

The Tao of Backup

http://www.taobackup.com/index.html
250•vntok•3d ago•100 comments

Type Safe Generic Data Structures in C

https://danielchasehooper.com/posts/typechecked-generic-c-data-structures/
119•AlexeyBrin•2d ago•81 comments

Our approach to EU text provenance rules

https://openai.com/index/eu-text-provenance/
42•tosh•3h ago•24 comments