# a little weather desk Weather near Industry City in Brooklyn, New York 11232, and public feeds for things you make. [Open the weather desk](https://adafruit.ai/weather) · [source catalog](https://adafruit.ai/weather/sources.json) · [live Markdown report](https://adafruit.ai/weather/live.md) · [plain text](https://adafruit.ai/weather/current.txt) ## current conditions and forecasts are different The current reading comes from a nearby weather station. It is not an on-site measurement at Adafruit or a sensor for every block. The report identifies its station, distance from the forecast point, observation time and age. KJRB is New York Downtown Manhattan, across the harbor; a fallback station can be farther away. The National Weather Service forecast is for the Industry City area, using the representative point 40.6565, -74.0078. It is a forecast, not a live observation. The page shows up to eight hourly periods and a multi-day outlook. Conditions can vary across the neighborhood. Station observations can be delayed, and forecasts can change. Every reading should travel with its time and status. ## public feeds No account is needed to read these endpoints: | format | address | purpose | | --- | --- | --- | | compact JSON | https://adafruit.ai/weather/current.json | current observation, age and status for a device | | full JSON | https://adafruit.ai/weather/data.json | observations, forecasts, alerts and source metadata | | plain text | https://adafruit.ai/weather/current.txt | a small readable summary | | live Markdown | https://adafruit.ai/weather/live.md | the current report with readable structure | | static guide | https://adafruit.ai/weather/index.md | this documentation | | CircuitPython example | https://adafruit.ai/weather/device-example.py | a starting point for your own reader | The full report uses `schemaVersion: 1`. Its `current`, `forecast`, `hourly` and `alerts` sections have separate status and source times. `generatedAt` describes when the combined report was assembled; it is not the weather observation time. Measurements can be `null`, meaning they were not reported. Zero is a real measurement and should not stand in for missing data. A saved observation can be useful when an upstream source fails, as long as the device clearly calls it last-known and keeps the observation time visible. Treat stale, partial or unavailable data as such. An unknown alert status does not mean there are no alerts. A successful response containing no active alerts is different from a failed alert request. ## be a good little weather reader - Poll no more often than every 10 minutes. - Honor cache, retry and rate-limit headers; back off after errors. - Retain the last good reading with its timestamp, and label it last-known when refresh fails. - Show unavailable when a required measurement is missing or too old for your use. - Keep forecast values separate from observed values. The web page requests our same-origin JSON feed on load and when you press refresh. It does not poll in the background, load a remote weather widget, or add visitor tracking. These feeds are a useful starting point, not an availability or real-time delivery guarantee. For current official warnings, check the [local National Weather Service office](https://www.weather.gov/okx/) and its bulletins. ## go straight to the source ### NOAA / National Weather Service - [Point metadata](https://api.weather.gov/points/40.6565,-74.0078) - [Area forecast](https://api.weather.gov/gridpoints/OKX/34,39/forecast) - [Hourly forecast](https://api.weather.gov/gridpoints/OKX/34,39/forecast/hourly) - [Nearby KJRB observation](https://api.weather.gov/stations/KJRB/observations/latest) - [Active alerts for the forecast point](https://api.weather.gov/alerts/active?point=40.6565,-74.0078) - [API documentation](https://www.weather.gov/documentation/services-web-api) - [Information and reuse notes](https://www.weather.gov/disclaimer) Follow the point metadata to the current grid and station list rather than assuming those assignments never change. Attribute the source and check its request guidance. ### NOAA aviation weather METAR reports describe conditions at observing stations, often airports. They are not measurements outside our door. - [Nearby station reports as JSON: KJRB, KEWR, KNYC and KJFK](https://aviationweather.gov/api/data/metar?ids=KJRB,KEWR,KNYC,KJFK&format=json) - [Aviation Weather Center API documentation](https://aviationweather.gov/data/api/) ### Open-Meteo [Open-Meteo](https://open-meteo.com/en/docs) is another forecast API to explore. Its free hosted endpoint has noncommercial-use conditions and attribution requirements; review the [current terms](https://open-meteo.com/en/terms) before using it in a commercial product. This desk's core feed uses NWS. ### beyond the weather NOAA also offers [tides and currents](https://api.tidesandcurrents.noaa.gov/api/prod/), including [The Battery station 8518750](https://tidesandcurrents.noaa.gov/stationhome.html?id=8518750), and [space-weather products](https://www.swpc.noaa.gov/products-and-data). These are exploration links, not additional live inputs to this desk. ## source catalog and device code [Machine-readable source catalog](https://adafruit.ai/weather/sources.json) lists the original URLs, dated verification, and use boundaries. [Download the CircuitPython example](https://adafruit.ai/weather/device-example.py). It is a network example using `wifi`, `socketpool`, `ssl`, and `adafruit_requests`; set your Wi-Fi credentials in `settings.toml`. Its HTTP/schema handling is checked on a host; the example has not yet been run on a physical board. See [Adafruit’s networking guide](https://learn.adafruit.com/networking-in-circuitpython/networking-with-the-wifi-module) for board setup. ## how this service stays useful A dedicated Cloudflare Worker serves the feeds. One Durable Object keeps the last successful result for each source and combines simultaneous refresh requests. Observations and alerts are checked at most every five minutes when requested; forecasts every ten minutes; the NWS point mapping daily. The page itself makes one request when opened and offers a manual refresh. There are no browser trackers or weather API keys. Hosting has operating costs even though these upstream data feeds are free. A failed source keeps its last successful data and a visible stale state. A failed alert check is unknown, not a claim that no alerts exist. The response keeps both source times and assembly time. Older forecasts cannot overwrite newer cached forecasts. The public [health report](https://adafruit.ai/weather/health.json) exposes source freshness without account information. Caretaker monitors it; Murrow can review the written guide; Tabby checks the public interface. ## build on the existing projects [Weather projects and device patterns](https://adafruit.ai/weather/devices.md) connects ten Adafruit Learn guides to this feed, including PyPortal, MagTag, Matrix Portal and tiny e-paper devices. It explains API keys, memory, TLS, timezones and provider migrations, with the original guides retained.