Show HN:Nightwatch –今夜が晴れなのかを通知するMac用メニューバーアプリです。
## 日本語訳:
NIGHTWATCH は、天文学者や天体写真家向けに開発された、長時間撮影セッション中の astronomers および astrophotographers に有用な静かな macOS メニューバーアプリです。Richard Sutcliffe が DWARF Mini (v1.1) として開発しました。実時間の空の明瞭度アラートと望むべき対象を示唆する機能を提供し、カスタマイズ可能な閾値を備えています:「明瞭」継続時間(デフォルト≥3h、範囲 1–8h)、雲被り上限(デフォルト≤25%、範囲 5–60%)、最小目標高度(デフォルト 30°、範囲 10–60°)。アラートには、明瞭であれば日の入りから 1 時間前に heads-up が行われること、窓が開くに従うナッジ、予報が変わった際のキャンセル、静かな時間(デフォルト 00:00–07:00)、6 時間以上の古い予報に対するアラート非表示が含まれます。
アプリは前方の最大 10 日分の夜を示し、明瞭な窓、暗闇、月の位相、雲の状態を表示します(3 日以降の雲予報は「Less certain」とマーク)。"Tonight's plan" は、最良の時間に基づいて並べられたお気に入りの対象をリスト化し、望遠鏡フィルター/露出/フレーム推奨、高度チャート、同じ時間の上位 2 つの対象を含みます。Targets ページには、フィールドオブビューの充填率、明瞭窓のタイミング、88 の星座全体に対する星の上に星座図を描いたもの、そして各対象ごとの"How to shoot this"ガイドが表示されます。
近隣の下照度の観測地点は、Open-Meteo および光害グリッドを使用してあなたの位置に対してスコアリングされ、最も近い駐車場から 8km 以内の最大 5 つの計算された暗いスポットが見つかり、Apple Maps を介したマップ統合が可能です。地平線には、方向別の障害物(家屋、樹木、丘)が Copernicus DEM 地形データ(90m リゾリューション)を使用して表示され、サイトは iCloud を介して同期されます。
イベントには流星群、日食、接近ペア、彗星、ISS の通過("Add to Calendar"付き)、惑星、恒星、あるいはプレアデースを覆う月の経路が含まれます。プライバシーに焦点が置かれており、あなたの Mac から離れるのは予報リクエスト、CDS のサムネイル、NASA の月の画像、彗星/ISS の要素、Apple Maps の場所名、および外部予報(AuroraWatch UK/NOAA)のみです。ローカル処理には Open-Meteo および 7Timer が使用され、seeing/transparency を担当します。Apple Weather データは WeatherKit エンタイトルメントを介してオプションで使用可能です。
ウィジェット(小型/中型/大型)は空のスコア、明瞭空のバー、そして最大 3 つの最良の対象を表示します。中型/大型には追加のバーが、大型には対象が追加されます。クリックすると Targets ウィンドウまたは対象の詳細が開きます。ウィジェットは App Group を介してアプリとスナップショットを共有し(署名されたビルドのみ利用可能)、ad hoc ビルドではウィジェットがありません。grey-bar の問題については `lsregister -f -R -trusted /Applications/Nightwatch.app` および `killall chromod` で修正可能です。
要件:macOS 14+、Xcode 26+。Homebrew (xcodegen) を介してインストールするか、または提供されたスクリプト(`scripts/fetch-data.sh`、`scripts/build-app.sh`)を使用してビルド/署名/ad hoc インストールを行います。Swift パッケージ SkyCore および NightwatchUI のテストは `scripts/test.sh` で実行されます。データソースには Open-Meteo.com (CC BY 4.0)、7Timer(非商業利用)、OpenNGC (CC BY-SA 4.0)、Digitized Sky Survey (ODbL 1.0、公益目的使用のみ)、元の星座アートワーク(ChatGPT)、星の位置/ライン(d3-celestial、BSD-3-Clause)が含まれます。リリース名は Discworld のテーマに従います(v1.1 は Pseudopolis Yard)。GitHub リリースには Nightwatch.dmg と同じ .dmg が SHA-256 チェックサム付きで含まれます。
## Text to translate:
(if needed; otherwise repeat the original):
## Improved Summary:
NIGHTWATCH is a silent macOS menu‑bar app for astronomers and astrophotographers running long imaging sessions, developed by Richard Sutcliffe as DWARF Mini (v1.1). It provides real‑time alerts that the sky is clear and suggests what to point at, with customizable thresholds: "clear" duration (default ≥3 h, range 1–8 h), cloud cover limit (default ≤25%, range 5–60%), and minimum target altitude (default 30°, range 10–60°). Alerts include a heads‑up one hour before sunset if clear, nudges as the window opens, cancellation when forecasts change, quiet hours (default 00:00–07:00), and no alerts for forecasts older than six hours.
The app shows up to ten nights ahead with clear windows, darkness, Moon phase, and cloud status (cloud forecasts beyond three days marked "Less certain"). "Tonight's plan" lists favorite targets sorted by best time, including telescope filter/exposure/frame recommendations, altitude charts, and two top targets at the same time. The Targets page displays field‑of‑view fill, clear‑window timing, constellation figures over stars for all 88 constellations, and a "How to shoot this" guide per target.
Nearby darker observing sites are scored against your location using Open‑Meteo and light‑pollution grids; up to five computed dark spots within 8 km of the nearest car park can be found, with map integration via Apple Maps. Your horizon shows obstructions (houses, trees, hills) by direction using Copernicus DEM terrain data (90 m resolution), and sites are synced via iCloud.
Events include meteor showers, eclipses, close pairs, comets, ISS passes (with "Add to Calendar"), and Moon‑covering paths for planets, stars, or the Pleiades. Privacy is focused: only forecast requests, CDS thumbnails, NASA Moon images, comet/ISS elements, Apple Maps place names, and external forecasts (AuroraWatch UK/NOAA) leave your Mac; local processing uses Open-Meteo and 7Timer for seeing/transparency. Apple Weather data can be used optionally via a WeatherKit entitlement.
Widgets (small/medium/large) show sky score, clear‑sky bars, and up to three best targets; medium/large add bars, large adds targets. Clicking opens the Targets window or target details. Widgets share snapshots with the app via an App Group (available only on signed builds); ad hoc builds omit widgets; grey‑bar issues can be fixed with `lsregister -f -R -trusted /Applications/Nightwatch.app` and `killall chromod`.
Requirements: macOS 14+, Xcode 26+; install via Homebrew (xcodegen) or use provided scripts (`scripts/fetch-data.sh`, `scripts/build-app.sh`) to build/sign/ad hoc‑install. Tests run with `scripts/test.sh` for Swift packages SkyCore and NightwatchUI. Data sources include Open-Meteo.com (CC BY 4.0), 7Timer (non‑commercial), OpenNGC (CC BY‑SA 4.0), Digitized Sky Survey (ODbL 1.0, non‑profit use), original constellation artwork (ChatGPT), and star positions/lines (d3-celestial, BSD‑3-Clause). Release names follow Discworld themes (v1.1 is Pseudopolis Yard); GitHub releases include the same .dmg as Nightwatch.dmg with SHA‑256 checksums.