Skip to content

OpenWeatherMap

github-actions[bot] edited this page Dec 1, 2026 · 14 revisions

OpenWeatherMap

Powers the weather widget on the dashboard + the full-detail weather modal (tap the widget to open it).

What it does

  • Current conditions, hourly forecast, 6-day forecast with each day's chance of rain (0% included), sunrise/sunset
  • City lookup by name (German + international cities) via OpenWeatherMap geocoding
  • "Comfort" feels-like rating + clothing suggestion ("light jacket", "rain coat", etc.)
  • Metric or imperial units, family-wide

Units

Settings → Weather → Units switches the whole household between metric (°C, km/h, km, mm) and imperial (°F, mph, mi, in). The choice is stored per family, so every screen in the house agrees — it is not a per-device preference.

The setting takes effect immediately: it changes the units Tiedenwerk asks OpenWeatherMap for, rather than converting numbers after the fact, so temperatures come back already rounded in the right system.

Two values need converting regardless of the setting, because OpenWeatherMap always reports them the same way: visibility is always metres, and rainfall/snowfall are always millimetres. Tiedenwerk converts both. Wind is the opposite trap — metric responses are metres per second (converted to km/h for display), while imperial responses are already miles per hour and are passed through untouched.

The weather map's rain overlay is served by OpenWeatherMap as metric tiles and keeps its mm/h legend in both systems.

Weather effects on Home

Settings → Weather → Weather effects on Home puts the weather on the Home screen itself: snowflakes falling when it snows, rain with small splashes in rain or drizzle, heavier rain and a lightning bolt now and then (with a soft glow, never a strobe) in a thunderstorm, ice crystals growing in from the screen's edges when it is freezing, gusts and tumbling leaves when it is windy (and snow or rain slanting with them), banks of fog drifting by in mist or fog, and the sun's glare in the corner with warm light rising when it is hot. Off until you switch it on.

  • Thresholds for freezing, hot and windy are typed in your units (°C or °F, km/h or mph) and kept as they are when you change units. Compare the measured or the "feels like" temperature.
  • Rain shows when it is raining, or when the forecast for the next few hours is rain (or drizzle, or a thunderstorm) and its chance reaches your threshold (50% by default). A snow forecast never counts towards rain. The screen follows by itself: it re-checks every minute which forecast slot is under way, asks for the weather every 10 minutes and the forecast every 30 (as often as Tiedenwerk's server refreshes its own copy), and picks up a changed setting within a minute.
  • Strength: Subtle or Normal. Each effect can be switched off on its own, and Preview shows one right there on the settings page for a minute (or until Stop), whatever the weather. /?weather-preview=snow,wind does the same on Home.
  • Out of the way: nothing covers a button. Moving effects are drawn behind the widgets at most 30 times a second and stop when the page is hidden; a device with Animations set to Reduced (Settings → Design), or asking for reduced motion, only gets the still ones (frost, a plain haze, the warm edge, a darker sky in rain) and no lightning, and a device set to Off, such as a Raspberry Pi that stutters, gets none.

Setup

1. Free API key

Open https://openweathermap.org/api → sign up (free) → confirm email → grab the API key from the dashboard.

The free tier gives you 60 calls/min and 1M calls/month, more than enough.

2. Enter it in Settings

Open Settings → Weather and paste the key into OpenWeatherMap API key, then Save. It is stored for your family on the server and never shown again in full; the card shows its last four characters. A new key can take up to two hours before OpenWeatherMap accepts it.

Or for the whole install, in webapp/docker/.env:

OPENWEATHERMAP_API_KEY=<your key>

Then recreate the webapp (cd webapp/docker && ./start.sh up); a restart does not load changed variables.

A family's own key wins over the server's. The card says which one is in use: Set for this family, From the server, or Not set. Remove and use the server's goes back to the .env key.

3. Configure the location per family

  1. Open Settings → Weather
  2. Choose City name mode → start typing → pick a result from the autocomplete
  3. OR Choose GPS coordinates mode → manually type lat/lon, or click Use current location to grab them from the browser
Settings — weather: location and OpenWeatherMap connection

The location is stored in settings.weather_location. The widget on the dashboard immediately picks it up.

Disable the weather feature

If you don't want weather (or don't want to set up OpenWeatherMap), just leave OPENWEATHERMAP_API_KEY blank. The dashboard hides the weather widget when no key is present.

You can also hide the widget per-family via Settings → Widgets → toggle off Weather.

Troubleshooting

Symptom Likely cause
Widget shows "—" API key missing or invalid; check the webapp logs (./start.sh logs webapp) for OpenWeatherMap API not configured
City autocomplete empty Search needs at least 2 characters; check API key
Forecast off by an hour OpenWeatherMap returns UTC + city offset; Tiedenwerk renders in browser local time. If your kiosk is misconfigured, fix TZ

Related

  • Themes — weather strings live under weather.* in messages/{en,de}.json
  • Pricing — the free tier is plenty for a single family

Clone this wiki locally