Skip to main content

statsbadge-quakes

Recent earthquakes on a world map, for statsbadge.

Quakes Quakes pulled out

The page cycles through the set on its own, closing in on each event and pulling back out to cross an ocean. Rings leave the epicentre in the magnitude's own colour off the theme ramp, so how big it was is something you can read at a glance from across the room. Under the map: the magnitude, where it was, how deep and how long ago.

Events come from USGS, which needs no key and no account.

Install

statsbadge ext add quakes
statsbadge install

Then add a Quakes page in the config UI. It works with nothing configured.

Settings

Setting What it does
Smallest magnitude Below about 4 the feed fills up with events nobody felt: there are several thousand a month
How many How many events the map cycles through
Show the recent is the last few hours, biggest is the largest of the past month
Seconds each Per page: how long the map holds on one event before travelling to the next

Notes

The map is the badge firmware's own, so nothing is downloaded and no geometry crosses the network: the host sends ten events and the badge knows where they are. Land takes its colour from the theme ramp by latitude, tropics at the hot end and ice caps at the cold one, so the map is themed along with everything else.

The last set is kept, so a badge switched on before the network is up draws the quakes it knew about rather than an empty world.

Largest magnitude, Latest magnitude and How many are offered as readings too, under Earthquakes in the field pickers, for a text or dial page that wants a number rather than a map.

The feed is asked for every five minutes and the badge polls every second, so the events are sent only when they change: an age is drawn to the minute and worked out against the minute just gone, which is what lets a set that has not moved be a set that is not sent. Ten events are about 1.1KB, so that is 1.1KB a second saved for a page that changes twelve times an hour.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

statsbadge_quakes-1.1.0.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

statsbadge_quakes-1.1.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file statsbadge_quakes-1.1.0.tar.gz.

File metadata

  • Download URL: statsbadge_quakes-1.1.0.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.2

File hashes

Hashes for statsbadge_quakes-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a0747d8be406f69352fe0a6997cf0c287971af827a9effeed35be8da88b4161c
MD5 fcbf18cfb1d26032ff078e50b6f5b6ba
BLAKE2b-256 341a2802fae4e8468c85444b2cf5f971854989185b2eead4763bc13cc2e78d72

See more details on using hashes here.

File details

Details for the file statsbadge_quakes-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for statsbadge_quakes-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ba077ce89a8b8b8855ba8e58219542d8ae547a4d386940323f412f0ced2a958
MD5 df3136eb2a8e07fec98c9f1de15f4fe1
BLAKE2b-256 67530f352b20770899fffcd9ac52260015ee34c4ee4aa7a5b7376009d08da418

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page