Skip to content

Add Seismic Monitor edge app - #1

Closed
Sir-Monke wants to merge 3 commits into
masterfrom
seismic-monitor
Closed

Add Seismic Monitor edge app#1
Sir-Monke wants to merge 3 commits into
masterfrom
seismic-monitor

Conversation

@Sir-Monke

Copy link
Copy Markdown
Contributor

Fixes Issue

n/a, initial submission of the app

Description of Change

Adds the Seismic Monitor edge app: a live USGS earthquake map for signage.
Offline vector basemap (Natural Earth, no tile CDN), quake dots sized and
coloured by magnitude, plate boundary lines, a point of interest label that
rotates every 5 minutes, and a rail with the latest events. Centres on the
screen's own coordinates from the bridge. No API key, no animations (so it
renders correctly on Anywhere screens, which capture stills), all assets
vendored.

  • Are these changes breaking any existing functionality? No, new app.
  • Have tests been added/updated? No automated tests; tested on a real
    Anywhere screen and in browsers at several resolutions.

Checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

Additional Notes/Comments

Screenshots in /screenshots. The manifest ships without an app id - each
account gets its own via screenly edge-app create --in-place (in the README).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new “Seismic Monitor” Screenly Edge App that renders an offline Leaflet-based world map and overlays live USGS earthquake events for digital signage usage.

Changes:

  • Introduces the app entrypoint (index.html) plus core client logic (static/app.js) to fetch USGS GeoJSON, render quake markers, and populate the side rail/POI callouts.
  • Adds styling and vendored Leaflet assets (static/style.css, static/leaflet.{js,css}) to support an offline, self-contained UI.
  • Adds/updates app metadata and documentation (screenly.yml, README.md) describing settings, deployment, and data attribution.

Reviewed changes

Copilot reviewed 7 out of 23 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
static/style.css New signage-focused UI theme (rail, POI card, alerts, splash, typography).
static/leaflet.js Vendored Leaflet runtime used for map rendering.
static/leaflet.css Vendored Leaflet styles for map layout and controls (mostly unused controls).
static/app.js Implements settings parsing, USGS feed fetch, map rendering, POI selection, and rail/metrics UI.
screenly.yml Declares the Edge App manifest metadata and configurable settings.
README.md Replaces template README with app documentation, settings, and deployment guidance.
index.html New app entrypoint wiring together Leaflet, offline geo assets, Screenly bridge, and app logic.
Files not reviewed (1)
  • static/plates.js: Generated file

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread static/leaflet.js Outdated
Comment thread static/css/leaflet.css
.leaflet-marker-shadow {
display: block;
}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */

@renatgalimov renatgalimov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not easy to review major updates in one go, but I already like how your function names align with our guide. But please replace overly abbreviated variable names according to our naming guide.

Comment thread static/app.js Outdated

function renderStats(features) {
var count = features.length;
var max = features.reduce(function (mx, f) { return Math.max(mx, f.properties.mag || 0); }, 0);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before we jump into a code review, please update the variables:

https://phorge.screenly.io/w/developer_guidelines/naming_things_in_code/#variable-naming

@Sir-Monke
Sir-Monke deleted the seismic-monitor branch August 23, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants