Technical provider architecture, not a client-visible route contract. See SCREEN_REFERENCE.html and PRODUCT_FLOW.md for v1.0 screens.

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

HazardU.S. sourceGlobal sourceDevice policy
EarthquakeUSGSUSGS global catalog; EMSC as a future supplementM4.0+ catalog; local critical-distance evaluation
Active fireNASA FIRMS / VIIRSNASA FIRMS globalCount and nearest detection; satellite data is evidence, not a fire-service evacuation order
VolcanoUSGS Volcano Hazards ProgramUSGS elevated feed and Smithsonian GVPWorldwide monitoring; WARNING/RED within 500 miles may interrupt display
Flood, tornado, windNWS official warningsNational agencies, GDACS, MeteoAlarm where applicableUse official warnings; forecasts, watches, and advisories do not become critical alerts automatically
Avalanche / landslideState and federal agenciesEAWS, GDACS, national geological agenciesSupplementary until a location-specific official source is available

Coverage states

NO_HAZARDsafe result

The provider responded successfully and found no qualifying event.

ACTIVE_HAZARDinterruptible

A valid event meets the hazard policy, severity, freshness, and location rules.

STALE_DATAcaution

A previous result exists but has exceeded its freshness window.

UNAVAILABLE / NOT_SUPPORTEDunknown

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:

Identity

Hazard type, provider, source event ID, title, and description.

Location

Latitude/longitude, polygon or affected area, and distance from the city.

Timing

Issued, effective, onset, updated, expiration, and end times.

Decision evidence

Severity, certainty, urgency, confidence, instructions, and freshness.

This prevents contradictory messages: weather, forecast, outdoors, monitoring, and critical-alert screens must consume the same normalized event rather than independently interpreting raw provider fields.

Alert precedence

Official local warning→Critical volcano / earthquake→Nearby fire→AQI danger→Outdoor guidance

Only the highest-priority active event interrupts the product cycle. Events are deduplicated by provider and event ID.

Distance and freshness rules

HazardInitial ruleImportant limitation
Volcano<500 miles and active WARNING/REDExactly 500 miles is excluded. Worldwide catalog remains monitoring-only.
EarthquakeGlobal M4.0+ catalog; critical local boundary evaluated separatelyMagnitude alone does not mean local danger.
FireConfigurable local radius, initially about 50 milesFIRMS detects thermal anomalies; it does not classify evacuation risk by itself.
NWS / official polygonProvider affected area and warning severityDo 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.

PathDescriptionLocalPulse
utc_offset_secondsUTC 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_codeCurrent 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 unitsProvider 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.

PathDescriptionLocalPulse
current.us_aqiU.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 fieldsPollutant 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.

PathDescriptionLocalPulse
features[].properties.mag,place,time,tsunami,alertMagnitude; 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,titleIdentity/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 queryApplication 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.

FieldDescriptionLocalPulse
vName,lat,long,alertLevel,colorCodeName, 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,nvewsThreatIdentifiers, links, observations, notices, imagery, dates and threat metadata.NOT USED.
CountryNot 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.

PathDescriptionLocalPulse
features[].properties.event,headlineAlert 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,parametersCAP 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.

ColumnDescriptionLocalPulse
latitude,longitudeDetection coordinates.USED — detection count and nearest distance.
bright_ti4,scan,track,acq_date,acq_time,satellite,instrument,confidence,version,bright_ti5,frp,daynightThermal 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.

PathDescriptionLocalPulse
results[].name,latitude,longitude,admin1,country,timezonePlace 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*_idProvider identity, feature classification, geography and demographics.NOT USED.

Local-first failure behavior

  1. Fetch providers directly from the device over Wi-Fi.
  2. Store the last valid response locally.
  3. Retry with bounded timeouts and exponential backoff.
  4. Continue displaying cached data while clearly marking it stale.
  5. Never say “no hazard” when the provider is unavailable or unsupported.
  6. 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

  1. Complete the shared HazardEvent fields and preserve provider IDs/timestamps.
  2. Add a ProviderCoverageRegistry for country and region support.
  3. Preserve FIRMS confidence, FRP, acquisition time, and satellite metadata.
  4. Preserve volcano notice IDs, synopsis, aviation color, and per-entry update time.
  5. Add GDACS and regional official feeds as supplemental providers.
  6. Add portal diagnostics and stale/unavailable indicators.
  7. Test contradictory-source, stale-data, unsupported-location, and provider-outage scenarios.