← Back to blog

28 November 2026 · 620 words

When the forecast misses the fog, measure it

technicalproductlessons

On 29 October I was in Zurich, and it was clearly sunnier than the app said. The forecast had promised a little sun; the afternoon was bright. Two days later the opposite: the forecast said “overcast, no fog sea”, and the stations showed a textbook one, with its top at about 1,500 m.

Fog days are the days people need FOMO Sun most, and the days the forecast is weakest. So this autumn the app learned to check the forecast against what is measured right now.

Sun, measured

MeteoSwiss runs about 160 automatic weather stations (SwissMetNet) and publishes their last 10 minutes as open data: sunshine minutes, humidity, temperature, for every station at once.

The first use was simple. Today’s sun at home is now “measured so far plus the forecast for the rest”: the nearest station’s sunshine up to now, then the forecast for the hours left. On 29 October the Zurich station had measured 2 h 48 of sun by 15:00, far more than the app was showing. The app now shows the measured number.

The same audit fixed two quieter problems. Hourly sunshine values were drawn one hour late (a value describes the hour before its timestamp). And today’s sun was judged against the whole day instead of the daylight left.

The fog top, measured

The forecast fog top comes from about 2,000 forecast points and their altitudes. The stations allow the same trick with real readings: at each altitude, is there sun right now or not? Below the fog top the stations see none; above it they see full sun. Somewhere in between is the line.

On 31 October at 08:50 that read: grey on the whole Plateau, sun on Chasseral, Moléson, Pilatus and Säntis, Napf and La Dôle inside the cloud. A fog sea up to about 1,500 m, while the forecast still said overcast.

The measured top replaces the forecast one for today as soon as it can be read with confidence. The fog page says so: “measured at 09:40, the forecast said overcast”.

Two details took longer than the idea:

  • Low sun looks like fog. Early and late, a valley station sees no sun because of the angle and the mountains. The reading only counts from an hour after sunrise to 75 minutes before sunset.
  • Missing isn’t zero. The feed fills missing values with defaults: 0 sun, 80 % humidity. A station without a sunshine sensor looked like a station in thick fog. Those are now left out.

The next three hours

Knowing it’s grey now changes the next hours too. A place that is in the fog by measurement keeps only part of its forecast sun: 10 % this hour, 35 % the next, 65 % the one after, then the forecast again. If a station nearby sees sun (a hole in the fog, the edge of it), the place is left alone.

The correction only goes down. Promising sun that isn’t there is the expensive mistake: it sends someone on a train.

On that Saturday morning it changed 154 places, including home. The ranking finally compared real conditions: grey Bern against sunny Mont Soleil, not two forecasts that both said cloud.

What I learned

Your own experience is a data point. “It was sunnier than that” started the whole audit.

The best check on a forecast is the present. Ten-minute readings are free, and they win every time they disagree.

Correct in one direction first. Lowering hopes is safe; raising them needs proof. That comes next, once a few fog weeks are scored.