LocalPulse+ 128×64 · Architecture
Reliable hazard coverage for U.S. and global cities
This page defines how LocalPulse combines authoritative and global hazard feeds without requiring a cloud service. The device remains local-first: it fetches, caches, evaluates, and renders data over the configured Wi-Fi connection.
Provider coverage
| Hazard | U.S. source | Global source | Device policy |
|---|---|---|---|
| Earthquake | USGS | USGS global catalog; EMSC as a future supplement | M4.0+ catalog; local critical-distance evaluation |
| Active fire | NASA FIRMS / VIIRS | NASA FIRMS global | Count and nearest detection; satellite data is evidence, not a fire-service evacuation order |
| Volcano | USGS Volcano Hazards Program | USGS elevated feed and Smithsonian GVP | Worldwide monitoring; WARNING/RED within 500 miles may interrupt display |
| Flood, tornado, wind | NWS official warnings | National agencies, GDACS, MeteoAlarm where applicable | Use official warnings; forecasts, watches, and advisories do not become critical alerts automatically |
| Avalanche / landslide | State and federal agencies | EAWS, GDACS, national geological agencies | Supplementary until a location-specific official source is available |
Coverage states
The provider responded successfully and found no qualifying event.
A valid event meets the hazard policy, severity, freshness, and location rules.
A previous result exists but has exceeded its freshness window.
The provider failed or does not serve the location. This must never be rendered as “no alerts.”
Normalized event model
Every provider should map into one HazardEvent contract:
Hazard type, provider, source event ID, title, and description.
Latitude/longitude, polygon or affected area, and distance from the city.
Issued, effective, onset, updated, expiration, and end times.
Severity, certainty, urgency, confidence, instructions, and freshness.
Alert precedence
Only the highest-priority active event interrupts the product cycle. Events are deduplicated by provider and event ID.
Distance and freshness rules
| Hazard | Initial rule | Important limitation |
|---|---|---|
| Volcano | <500 miles and active WARNING/RED | Exactly 500 miles is excluded. Worldwide catalog remains monitoring-only. |
| Earthquake | Global M4.0+ catalog; critical local boundary evaluated separately | Magnitude alone does not mean local danger. |
| Fire | Configurable local radius, initially about 50 miles | FIRMS detects thermal anomalies; it does not classify evacuation risk by itself. |
| NWS / official polygon | Provider affected area and warning severity | Do not replace polygons with a simple radius where official geometry exists. |
Suggested freshness targets: NWS 10 minutes, earthquakes 15–30 minutes, volcanoes 30–60 minutes, and satellite fire data according to the provider’s stated latency.
Vendor response reference
This is the complete field reference for the response shapes LocalPulse requests today. USED means firmware parses the field; DERIVED means LocalPulse calculates it; NOT USED means it remains available upstream but is not consumed. Provider schemas evolve, so the official links are the source of record.
Open-Meteo Forecast · JSON
/v1/forecast returns envelope metadata (latitude, longitude, elevation, generationtime_ms, utc_offset_seconds, timezone, timezone_abbreviation) plus requested current, hourly, and daily objects and their *_units siblings. Official schema.
| Path | Description | LocalPulse |
|---|---|---|
utc_offset_seconds | UTC offset for the selected location. | USED — local clocks and Quake time. |
current.time,is_day,temperature_2m,relative_humidity_2m,precipitation_probability,precipitation,rain,showers,snowfall,wind_speed_10m,wind_gusts_10m,weather_code | Current timestamp, daylight, temperature, humidity, precipitation components, wind, and WMO condition code. | USED — weather, icons, outdoor guidance, alerts. |
daily.temperature_2m_max/min[0],precipitation_sum/rain_sum/showers_sum/snowfall_sum/precipitation_hours[0] | Current-day extrema and totals. | USED — daily weather/precipitation story. |
hourly.time[],precipitation_probability[],precipitation[],rain[],showers[],snowfall[],weather_code[] | Time-aligned hourly forecast arrays. | USED — 12-hour page and event logic. |
| All other requested/unrequested variables and units | Provider metadata or variables not named above. | NOT USED. |
Open-Meteo Air Quality · JSON
/v1/air-quality has the same location/time envelope and current/hourly groups. Official schema and AQI bands.
| Path | Description | LocalPulse |
|---|---|---|
current.us_aqi | U.S. AQI, the maximum applicable pollutant AQI (0–50 Good; 51–100 Moderate; 101–150 Unhealthy for sensitive groups; 151–200 Unhealthy; 201–300 Very Unhealthy; 301–500 Hazardous). | USED — AQI display, outdoor guidance, alert policy. |
pm10,pm2_5,carbon_monoxide,nitrogen_dioxide,sulphur_dioxide,ozone, individual AQIs, European AQI, pollen and other fields | Pollutant concentrations/indexes and optional forecasts. | NOT USED. |
USGS Earthquake · GeoJSON
/fdsnws/event/1/query?format=geojson returns a GeoJSON FeatureCollection: root type,metadata,bbox,features[]; each feature has type,id,geometry,properties. GeoJSON schema · field definitions · PAGER alerts.
| Path | Description | LocalPulse |
|---|---|---|
features[].properties.mag,place,time,tsunami,alert | Magnitude; human location; epoch milliseconds; tsunami flag (0/1); PAGER alert. PAGER values are green (little/no impact), yellow (regional), orange (national-scale), red (international), or null when unassigned. | USED — separate Quake page, catalog, logs; missing alert is app-normalized. |
features[].geometry.coordinates=[longitude,latitude,depth_km] | Point location and depth in km. | USED — depth and calculated local distance. |
id,url,detail,updated,tz,felt,cdi,mmi,status,sig,net,code,ids,sources,types,nst,dmin,rms,gap,magType,type,title | Identity/links, review and intensity, PAGER/significance, network/origin quality and event classification. | NOT USED. |
| Local distance; newest global M4.0+ selection; local M4.1+/100-mile alert query | Application policy, not vendor fields. | DERIVED. |
USGS Volcano Elevated · JSON
/vsc/api/volcanoApi/elevated returns an array (or volcanoes[]) of elevated-status entries. API · alert definitions.
| Field | Description | LocalPulse |
|---|---|---|
vName,lat,long,alertLevel,colorCode | Name, coordinates, ground alert level and aviation color. Alert levels: NORMAL, ADVISORY (elevated unrest), WATCH (escalating unrest/limited eruption), WARNING (hazardous eruption imminent/underway). Colors: GREEN/YELLOW/ORANGE/RED. | USED — catalog, distance, priority and alerts. |
vnum,volcanoCd,vUrl,vImage,obs,region,noticeId,noticeSynopsis,statusIconUrl,alertDate,colorDate,nvewsThreat | Identifiers, links, observations, notices, imagery, dates and threat metadata. | NOT USED. |
| Country | Not supplied by this feed. | DERIVED through validated Open-Meteo geocoding. |
NWS Active Alerts · GeoJSON
/alerts/active?point=lat,lon returns a GeoJSON FeatureCollection. Official OpenAPI schema.
| Path | Description | LocalPulse |
|---|---|---|
features[].properties.event,headline | Alert event name and short headline. | USED — event allowlist/priority; headline stored. |
id,areaDesc,geocode,affectedZones,references,sent,effective,onset,expires,ends,status,messageType,category,severity,certainty,urgency,sender,senderName,description,instruction,response,parameters | CAP identity, geography, timing, status, severity/certainty/urgency, issuer, narrative/instructions and parameter metadata. | NOT USED. |
NASA FIRMS VIIRS NOAA-20 NRT · CSV
/api/area/csv/MAP_KEY/VIIRS_NOAA20_NRT/bbox/1 returns one detection per CSV row. Official API.
| Column | Description | LocalPulse |
|---|---|---|
latitude,longitude | Detection coordinates. | USED — detection count and nearest distance. |
bright_ti4,scan,track,acq_date,acq_time,satellite,instrument,confidence,version,bright_ti5,frp,daynight | Thermal brightness, footprint, acquisition details, platform, confidence, processing version, Fire Radiative Power and day/night flag. | NOT USED. |
Open-Meteo Geocoding · JSON
/v1/search returns results[]. Official schema.
| Path | Description | LocalPulse |
|---|---|---|
results[].name,latitude,longitude,admin1,country,timezone | Place name, point, first-level administration, country and IANA timezone. | USED — portal city search; volcano country validation/display. |
id,elevation,feature_code,country_code,country_id,population,postcodes,admin2..admin4,admin*_id | Provider identity, feature classification, geography and demographics. | NOT USED. |
Local-first failure behavior
- Fetch providers directly from the device over Wi-Fi.
- Store the last valid response locally.
- Retry with bounded timeouts and exponential backoff.
- Continue displaying cached data while clearly marking it stale.
- Never say “no hazard” when the provider is unavailable or unsupported.
- Resume normal polling automatically after connectivity returns.
Portal requirements
For each configured city, the portal should show provider coverage, source, last successful update, data age, freshness state, and whether the source is official or supplementary. It should also expose the local-city choice and hazard radius policy without requiring cloud access.
Implementation roadmap
- Complete the shared
HazardEventfields and preserve provider IDs/timestamps. - Add a
ProviderCoverageRegistryfor country and region support. - Preserve FIRMS confidence, FRP, acquisition time, and satellite metadata.
- Preserve volcano notice IDs, synopsis, aviation color, and per-entry update time.
- Add GDACS and regional official feeds as supplemental providers.
- Add portal diagnostics and stale/unavailable indicators.
- Test contradictory-source, stale-data, unsupported-location, and provider-outage scenarios.