npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-weather-noaa

v1.6.0

Published

Homebridge plugin providing temperature and humidity sensors using the NOAA / NWS API.

Readme

Homebridge NOAA Weather Plugin

verified-by-homebridge

Homebridge plugin providing temperature and humidity sensors using the NOAA / NWS API. Automatically detects the closest observation station for your coordinates, or accepts a manual station ID.

What's New in v1.6.0

A security and minimalism-focused refresh. No breaking config changes — existing v1.5 installs upgrade in place.

  • Zero runtime dependencies. Native fetch replaces axios.
  • NWS-compliant User-Agent in the documented (github.com/Phirtue/homebridge-weather-noaa, contact) format, with optional configurable contact field (sanitized against header injection).
  • Hardened input validation on stationId (regex + encodeURIComponent), grid response shape, and coordinate bounds.
  • Atomic cache writes with 0o600 permissions; bounded response size; Retry-After cap.
  • Client-side QC filtering using documented MADIS flags (V/C/S/Z), replacing the unreliable require_qc=true server flag.
  • Unit-aware temperature conversion — handles °F and K responses in addition to °C.
  • Adaptive polling — backs off automatically (up to 4×) when readings are stable, recovers immediately on change. Toggleable.
  • Proper teardown on Homebridge shutdown; per-instance metrics.
  • Template-aligned source layout (settings.ts / index.ts / platform.ts / platformAccessory.ts) with Logging type and accessories: Map.

See CHANGELOG.md for the full list.


Setup

1. No API Key Needed

NOAA's public API is free and requires no registration. USA weather only.

2. Install

sudo npm install -g homebridge-weather-noaa

3. Configure in Homebridge UI

Go to Plugins → Homebridge Weather NOAA → Settings and enter:

  • Latitude / Longitude (decimal format, e.g. 47.6062, -122.3321)
  • Refresh Interval in minutes (default 15, minimum 5)
  • NOAA Station ID (optional, e.g. KSEA — overrides auto-discovery)
  • Adaptive Polling (default on — slows polling when readings are stable)
  • Contact (User-Agent) (optional — email or URL added to the NOAA User-Agent header so NWS can reach you about API issues; recommended by NWS)

4. Run Homebridge

Two HomeKit accessories appear under "NOAA Weather":

  • NOAA Temperature
  • NOAA Humidity

Notes

  • Data comes from the NOAA observation station nearest your coordinates.
  • Per the NWS docs, observations may be delayed up to 20 minutes from MADIS due to QC processing — refresh intervals shorter than 15 minutes provide diminishing value.
  • Adaptive polling stretches the interval up to 4× when readings are unchanged across consecutive polls.
  • HomeKit stores temperature in Celsius internally; iOS/HomeKit displays Fahrenheit automatically based on your region.
  • Cache files are stored in your Homebridge persist path with mode 0o600.

Build & Compatibility

CI Build Node.js Homebridge npm version