The Doozer Brainlive from the knowledge bundle · v2.2.618 · 2026-09-13 17:15 ETall pages · one page

The Weather Widget

systems/weather-widget.md · System · weather, business-site, enrichment, visit-timing, open-meteo

unverified: no trust signals recorded yet

A non-intrusive "plan your visit" weather card on business sites — current conditions plus a 7-day forecast for the business's own location, free by default.

The Weather Widget

Every Doozer business site can show a small, calm weather card near its Hours section: current conditions plus a 7-day forecast for the business's own location. It is a helpful visit-timing signal — "is this a good day to go?" — and never a popup or an interruption. It is part of the broader push to make a site more than a static listing (see per-location data enrichment).

How it works

includes/weather.php is the whole engine:

includes/business-site.php renders it right after the Hours section, deriving coordinates from the same geometry / lat-lng fallback the map uses. It renders nothing at all when the widget is disabled, coordinates are missing, or the fetch returns no data — a missing card is always better than a broken one.

Provider and cost

The default provider is Open-Meteo: free, no API key, worldwide. WMO weather codes map to calm inline-SVG glyphs (no emoji clipart, per the icon taste rule). Results cache for about two hours per ~1 km location bucket, so the only work is a cache miss and the running cost is zero — consistent with the platform's cache-aggressively, minimize-API-cost discipline.

An operator can optionally set an OpenWeatherMap key (Admin → Platform Settings → Weather) to use that provider instead; the code aggregates OWM's free 5-day/3-hourly feed into the same daily shape. No key is required for the widget to work.

Admin

Admin → Platform Settings → Weather tab: an enable toggle (on by default) and the optional OpenWeatherMap key field, with a plain-language note that a key is not needed. Stored in platform_settings under category weather.

Roadmap

This shipped from the roadmap idea of a visit-timing signal. The further vision: feed weather into Gatherings so any place + time can answer "what will it be like when I'm there," and surface it as a signal in the events/marquee surfaces. See [[project_weather_widget]].

The Shared Business CardTwo gates, and the category catalog