Coreflux Templates
General

USGS Earthquake Feed Monitor

Monitor the USGS past-hour feed in Coreflux and publish rolling quake topics, alerts, and a summary

Dataflow

How it flows

Actions, models, routes and the topics that link them. Click a node to trace its flow.

How it works

This LoT Notebook polls the free USGS past-hour GeoJSON feed every minute, then validates, deduplicates, and fans out the latest earthquake data on Coreflux. It publishes per-quake detail documents, a rolling hourly count, and change topics for new events and major alerts.

Key features

  • REST_API polling: Pulls all_hour.geojson from USGS on a 60-second cadence.
  • Dedup by event id: Uses state/last_id so events/quake only fires for new quakes.
  • Major quake alerts: Compares magnitude against config/alert_magnitude with a default of 5.0.
  • Per-quake model output: Publishes QuakeDetail documents at quake/<id>/detail.
  • Hourly report: Builds a collapsed QuakeReport at reports/summary.

Prerequisites

  • Internet egress from Coreflux
  • REST_API route support
  • No API key required

Setup

  1. Deploy the QuakeFeed, QuakePollClock, QuakeFeedGate, QuakeDigest, and report cells.
  2. Leave feed/enabled at 1 to keep polling, or set it to 0 to pause.
  3. Optionally change config/alert_magnitude to tune major-event alerts.
  4. For broader coverage, copy the slot digest actions and raise the feature index.
The notebook

What’s inside

Browse the markdown and code cells before you download.

LoT Notebook:demo_quake_watch.lotnb
Related use cases

Similar templates

Templates chosen for overlap in routes, tags, and category.

View all in General

Get this template

1 file