Coreflux Templates

NOAA Tide Gauge Polling and Trend Report

Poll NOAA CO-OPS tides, derive rising/falling trend, and publish a rollup for dashboards.

Dataflow

How it flows

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

How it works

This Coreflux LoT template polls NOAA CO-OPS (Tides & Currents) every 6 minutes for the water level at The Battery, New York. It validates the JSON reply, publishes station fields, compares the new level with the previous sample, and emits a collapsed report document for external consumers.

Key features

  • REST_API route: Fetches latest water level data from NOAA CO-OPS over HTTPS.
  • 6-minute heartbeat: Self-starting polling loop gated by demo/tides/feed/enabled.
  • Payload gate: Rejects bad replies before parsing by checking data[0].v.
  • Trend detection: Compares the current level with the last stored level to publish rising, falling, or steady.
  • Report model: Publishes a collapsed TideReport JSON document to demo/tides/reports/current.
  • Metric and imperial values: Publishes water level in meters and feet.

Prerequisites

  • Internet egress from the broker
  • Coreflux REST_API route support
  • No NOAA API key required
The notebook

What’s inside

Browse the markdown and code cells before you download.

LoT Notebook:demo_tide_gauge.lotnb
Related use cases

Similar templates

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

View all in Energy & Utilities

Get this template

1 file