Community. Driven. Weather. Data. | Always Ad-Free | Developer FriendlyChecking statusDiscord
Become a supporter
Sign in
DocsDevelopersHow-to guide

Merge lightning history with the live feed

Load recent flashes from the REST route, then carry on from MQTT without drawing any flash twice.


The time to the millisecond and the position to four decimals are the identity the MQTT feed uses, so a flash heard live and the same flash read from GET /lightning/flashes match exactly.

  1. Load the history from the REST route.
  2. Key a set on t_ms,lat,lon and put every historical flash in it.
  3. Subscribe to the MQTT lightning feed and drop live messages already in the set.
  4. Fade flashes on t_ms, not on when you received them.

View this page as Markdown

May we use Microsoft Clarity to see how pages are used (clicks, scrolling and replays of a visit, with anything you type hidden), plus a random ID linking that to crash reports? Only to find bugs and confusing screens. Never advertising, never sold.