How it works
This LoT Notebook polls Open-Meteo for current conditions in Minneapolis every 5 minutes and turns the response into a clean topic tree on Coreflux. It solves the common problem of normalizing live weather data into stable metric topics, unit twins, and a report model that other consumers can read.
Key features
- Self-starting clock: An action bootstraps
demo/weather/feed/enabledand triggers polling on a 5-minute interval. - REST_API route: Fetches current weather from Open-Meteo with no API key or credentials.
- Payload gate: Rejects non-JSON or invalid replies and publishes
fetch_errorinstead of stalling the flow. - Metric-primary topics: Publishes SI values on base topics and imperial twins with
_f/_mphsuffixes. - Metadata topics: Keeps
_EUdisplay symbols and_DESCdescriptions alongside live values. - Weather report model: Builds one collapsed
WeatherReportJSON document per refresh.
