
N
Nightwatch
Open Sourceπ Alt to Clear OutsideA Mac menu-bar app that tells you when tonight is clear
π³ Self-Hostableπ No Sign-upβ‘ Editorial Signal: 77/100β
98 Stars
git clone https://github.com/rsutcliffe/nightwatch.gitNightwatch is a lightweight macOS menu-bar utility designed for stargazers and astrophotographers to monitor local night sky conditions at a glance. It solves the friction of checking weather apps by delivering real-time clarity updates directly to your system tray.
Sits quietly in your macOS status bar providing instant access to sky clarity forecasts.
Fetches up-to-date meteorological data tailored specifically for astronomical viewing.
Built natively for macOS to ensure minimal battery drain and system resource usage.
Checking if tonight is optimal for deep-space astrophotography sessions
Quickly verifying cloud cover and seeing conditions without launching a full weather app
Planning stargazing trips based on local atmospheric clarity metrics
Unlike bloated mobile weather apps or web-based forecast tools, Nightwatch lives natively in your Mac menu bar with zero ads or tracking.
Mac-using astrophotographers, amateur astronomers, and stargazers who want instant weather clarity insights.
Nightwatch is engineered to eliminate critical operational friction in productivity & workflow. From an architectural standpoint, the system adopts a local-first, self-contained deployment posture, ensuring streamlined onboarding and minimal setup overhead.
Because the underlying code is fully open-source, engineering teams can audit security implementations, inspect telemetry vectors, and extend functionality via custom fork without risk of sudden vendor deprecation.
At its architectural foundation, Nightwatch is engineered as a native, lightweight macOS menu bar utility built in pure Swift, targeting the modern macOS AppKit and SwiftUI runtimes. The application bypasses the heavy webview wrappers common in cross-platform desktop utilities, implementing a strictly decoupled, asynchronous execution loop governed by Swift Concurrency (async/await) and Combine publishers. Scheduled background workers periodically query external meteorological APIs, such as Open-Meteo and NOAA GFS atmospheric models, over persistent HTTPS sessions utilizing URLSession with intelligent cache-control headers. Swift 6 strict concurrency checks prevent data races across background fetch tasks and UI rendering threads. Upon receiving raw forecast payloads, Nightwatch parses multi-altitude atmospheric metricsβincluding low, mid, and high cloud coverage percentages, atmospheric transparency, relative humidity, dew point spread, and ambient temperature gradients. In addition to weather metrics, its internal computational engine calculates astronomical ephemeris data, including lunar phase illumination, moonrise/moonset timings, and solar twilight boundaries (civil, nautical, and astronomical). State management utilizes lightweight @Observable models bound directly to an NSStatusItem in the macOS system tray. Dynamic status icons are rendered natively using SF Symbols with context-aware color tinting (green, amber, red), maintaining a microscopic memory footprint under 25MB and zero active GPU consumption.
Developer and user ergonomics are refined around seamless, distraction-free macOS native integration. Users interact with Nightwatch entirely through an unobtrusive menu bar status item that exposes a popover interface detailing upcoming viewing windows for amateur astronomy and astrophotography. The popover presents high-density visual telemetry: hourly cloud stratification graphs, calculated seeing scores, and deep-sky object visibility windows without requiring a full browser dashboard. Configuration is persisted locally using macOS UserDefaults and structured property lists (plist), storing user coordinates, update intervals (customizable to 15m, 1h, or 4h cycles), preferred seeing thresholds, and custom target notification filters. For developers, the repository is structured around Swift Package Manager (SPM), ensuring clean modularization between networking clients, astronomical calculators, and SwiftUI views. The local iteration loop is immediate; running swift build or launching within Xcode allows full compilation in seconds without third-party CocoaPods or complex build harnesses. Error reporting is surfaced gracefully within the popover UI, catching network timeouts, API rate limits, and CoreLocation authorization denials cleanly. System notifications are dispatched via UNUserNotificationCenter, triggering actionable alerts when prime astronomical seeing conditions align with moonless evening windows.
Nightwatch is distributed as fully open-source software under the permissive MIT license, ensuring complete transparency, inspectable binaries, and zero commercial vendor lock-in. Unlike commercial stargazing apps or proprietary weather utilities that monetize through recurring monthly subscriptions, intrusive in-app advertising, or data brokerage SDKs, Nightwatch operates under a zero-cost model. The total cost of ownership (TCO) for end users and developers is virtually non-existent. From a systems resource perspective, the application is exceptionally frugal: it operates continuously on Apple Silicon (M1/M2/M3/M4) and Intel hardware consuming less than 0.1% CPU during background intervals, generating zero wake-lock battery drain on MacBooks in sleep states. Network overhead is negligible, consuming mere kilobytes of data per synchronization cycle through compressed JSON payloads. The utility leverages free, public-tier Open-Meteo endpoints that require no paid API keys or commercial registration. Furthermore, Nightwatch enforces strict privacy guarantees: it contains no third-party telemetry, tracking pixels, or diagnostic beacons. Location coordinates acquired via CoreLocation remain entirely on the local device, transmitted exclusively to open weather backends for coordinate-scoped atmospheric queries. The absence of commercial infrastructure or mandatory user authentication ensures that self-hosting or modifying the utility incurs zero recurring financial or operational overhead.
Nightwatch is definitively recommended for macOS-based amateur astronomers, night-sky photographers, and observatory operators who require immediate, reliable atmospheric visibility metrics without the operational friction of full-sized weather applications. Its native Swift architecture guarantees rock-solid stability, seamless integration with macOS Dark Mode, and instant responsiveness across macOS Sonoma and Sequoia releases. Distribution is turnkey via Homebrew Cask (brew install --cask nightwatch) or direct GitHub release DMGs. However, Nightwatch is not intended to serve as a comprehensive telescope automation suite; it does not interface with INDI or ASCOM device protocols, nor does it control motorized GoTo mounts, focusers, or CCD filter wheels. Organizations or developers requiring cross-platform support across Linux or Windows workstations must look to web-based alternatives like Clear Outside or Astrospheric. The primary edge case failure mode involves stale forecast caching during sudden micro-climate shifts, such as localized marine layer incursions that broad-mesh meteorological models fail to resolve. In such instances, manual refresh triggers ensure immediate data reconciliation. For field astrophotographers packing lightweight MacBook setups into remote dark-sky reserves, Nightwatch provides an indispensable, battery-conscious observation pre-flight checklist that runs silently and reliably in the system tray.
Nightwatch is 100% free and open-source under an open software license. There are no mandatory monthly subscription fees to access the source code or run it locally.
Unlike bloated mobile weather apps or web-based forecast tools, Nightwatch lives natively in your Mac menu bar with zero ads or tracking.
Yes. Nightwatch is designed for self-hosting via Docker or direct server deployment. Running on your own infrastructure allows you to maintain direct control over your local compute, database storage, and operational environment.
No account creation or credit card is required to evaluate Nightwatch. You can immediately access core features or run it locally without onboarding friction.
You can launch or test Nightwatch quickly using the following command: git clone https://github.com/rsutcliffe/nightwatch.git Visit the official portal at https://github.com/rsutcliffe/nightwatch for documentation and guides.
ToolsRadar maintains strict editorial independence. This review of Nightwatch was conducted using our standardized 5-pillar evaluation framework (Setup, Code Auditability, Maintenance Vitality, Cost Advantage, and Community Signal). We do not accept paid placements to inflate benchmark scores.
Maintainers of Nightwatch and community advocates can display this real-time verification badge in your GitHub README, official documentation, or landing page.
[](https://lordorange.top/tool/nightwatch)<a href="https://lordorange.top/tool/nightwatch" target="_blank"><img src="https://lordorange.top/badge/nightwatch.svg" alt="Featured on ToolsRadar" /></a>Compare other trending developer tools and open-source projects in this space.
Cross-referenced architectural playbooks and category rankings featuring Nightwatch.
High-signal, production-tested utilities with transparent codebases and active communities.
Take back data ownership by replacing expensive monthly cloud subscriptions with self-hosted software.
The definitive guide to escaping SaaS subscription sprawl with Coolify, Traefik, Tailscale, and automated S3 backup pipelines.
Replace sluggish 1970s Unix utilities with blisteringly fast, memory-safe Rust and Go modern CLI powerhouses.