Skip to main content
UPS, power & environment

Lightning Radar

Get warned when lightning strikes near a customer site or device so you can check UPS units and backups in time.

The Lightning Radar check warns when lightning strikes are detected near a location you monitor — a customer site, a branch office, or the device's own location. Each run listens to the live feed of the public Blitzortung.org community network and measures the distance between every reported strike and the monitored location: a strike within the warning radius turns the check to warning, one within the critical radius turns it critical. An approaching thunderstorm becomes visible in octoja while it is still on its way — time to check the UPS, finish backups, or postpone work on exposed hardware.

The check is network-based and needs no sensor hardware — any device whose agent can reach the feed can watch any location, independent of where the device sits. It runs on all agent platforms (Windows, Linux, and macOS, on x64 and ARM64 each) every minute by default and listens to the feed for 45 seconds per run.

Prerequisites

The check runs on the device itself, so the device needs outbound internet access. It reaches out to these destinations, all over TLS on port 443:

  • ws1.blitzortung.org, ws7.blitzortung.org, ws8.blitzortung.org — the live strike feed, as a WebSocket connection. The check tries them in that order and stays with the first that answers.
  • nominatim.openstreetmap.org — only when a location is configured as an address or place name, and only until the result is cached on the device.
  • ipwho.is — only when Use device location is on, and at most once a day.

Steps

  1. Go to Devices and open the device.
  2. Click the Checks tab → Add Check → Lightning Radar.
  3. Enter an address, place, or coordinates under Location, or enable Use device location.
  4. Adjust Critical radius (km) and Warning radius (km) if needed.
  5. Click Add Check.

Settings

With Use device location enabled, the location is determined automatically and the Location field is hidden. The Listen window appears once Show advanced options is enabled. If you set the critical radius larger than the warning radius, the check swaps the two.

FieldTypeRequiredDefaultDescription
Use device locationBooleanNoNoDetermine the location automatically from the device's public IP address (city-level accuracy)
LocationStringYes—Address or place of the monitored location, or coordinates as 'latitude, longitude' (e.g. 48.1372, 11.5756). Used when the device location is off.

Thresholds

FieldTypeRequiredDefaultDescription
Critical radius (km)NumberNo10A lightning strike within this distance sets the check to critical (1–500)
Warning radius (km)NumberNo30A lightning strike within this distance sets the check to warning (1–500)
Show advanced optionsBooleanNoNoShows the listen window field
Listen window (s)NumberNo45How long each run listens to the live feed (10–240 s). Longer windows observe a larger share of each interval and miss fewer strikes

Location and listen window

  • The listen window samples the feed: with the default 45 seconds and the one-minute interval, about three quarters of each interval are observed. Increase the listen window to miss fewer strikes.
  • The device location is determined from the public IP address with city-level accuracy and refreshed about once a day. With a VPN or a central internet breakout it can point far away from the physical site — configure a fixed location in that case.
  • A configured address or place name is resolved once via OpenStreetMap and then cached on the device. To pin the location exactly, enter coordinates.

Results

Each run evaluates only its own listen window: once the storm moves on, the check returns to OK on the following runs by itself.

ResultMeaning
OKThe feed was received and no strike landed within the warning radius during the listen window. The card shows No lightning within … km.
WarningAt least one strike within the warning radius, but none within the critical radius.
CriticalAt least one strike within the critical radius.
ErrorThe run could not be completed at all — the card shows the reason instead of the radar. See the next section.

Lightning data comes from Blitzortung.org, a community network of volunteer-operated detector stations. Coverage and detection quality vary by region; octoja does not operate the network.

When the check can't run

These outcomes are about the check itself, not the weather. The first one raises a warning; the others fail the run and show as Error, usually a configuration or network problem.

MessageWhat to do
No strike data received from the live feed during the listen window.The feed was reachable but delivered nothing worldwide — almost always a temporary feed issue. If it persists, try a longer listen window.
No location configured.Enter a location, or enable Use device location.
Invalid coordinates configured.Coordinates must be 'latitude, longitude', with latitude between -90 and 90 and longitude between -180 and 180.
The device location could not be determined from its public IP address.The lookup service could not place the device. Check outbound internet access, or configure a fixed location instead.
The configured location could not be found.The address or place name could not be resolved. Make it more specific, or enter coordinates directly.
Resolving the location failed: …The geocoding request failed — the detail shows the reason. Usually temporary; if it persists, enter coordinates directly.
Could not connect to the Blitzortung.org live feed: …None of the feed servers could be reached. Check that the device allows outbound connections to blitzortung.org.
Unexpected error: …Something outside the cases above went wrong — the detail shows what. Usually temporary; if it keeps coming back, the detail text is what support needs.

What the check shows

ValueWhat you see
Radar displayA compass-style radar with your warning and critical radii drawn as rings, the monitored location at the center, and the strikes inside the warning radius plotted by distance and direction — up to the 20 nearest per run. When no strike landed inside the warning radius, the nearest one is marked on the outer rim instead, so its direction stays visible.
Nearest strikeDistance, compass direction, and time of the closest strike received in the run — shown even when it landed outside both radii.
Strike countsHow many strikes landed within the critical radius and within the warning radius, and how many the network reported worldwide during the listen window.
Thunder countdownFor a nearby strike (within about 25 km), a live countdown until the thunder becomes audible — sound travels roughly 3 seconds per kilometer. Once the countdown has run out, the card shows how many seconds after the strike the thunder was due.
Location lineThe resolved location, the listen window used, and the data source (Blitzortung.org community network). Coordinates you enter yourself are used as they are, so no location name appears in that case.
HistoryA distance-over-time chart of the nearest strike per run, with your two radii drawn as threshold lines, plus a run-by-run table with time, status, distance of the nearest strike, and the number of strikes inside the warning radius.

Was this helpful?

Still need help? Ask the team