Skip to main content

Track & archive Victoria's live emergency alerts

Project description

VicAlerts

Track and archive VicEmergency incidents to a local SQLite database.

Purpose

VicAlerts polls the public VicEmergency GeoJSON feed, stores every version of every event, and exposes a small CLI for querying the result. Useful for incident timelines, post-event analysis, or keeping your own history for when events expire from the feed. It is designed to run 24/7 to collect data.

Installation

uv pip install vicalerts

Requires Python 3.10 or newer.

Quick start

# Continuous polling (60 s default)
vicalerts run

# One-off fetch (handy in cron)
vicalerts run --once

CLI reference

Command Description Key options
run Poll feed and write to the DB --once, --interval <seconds> (>=10), --db <path>, --no-progress
events List events (active only by default) --all, --type incident|warning, --status <text>, --category <text>, --limit <n>, --format table|json|csv, --db <path>
history <EVENT_ID> Show full version history --db <path>
stats Print DB totals --db <path>

All commands accept --help.

Defaults

Setting Value
Feed URL https://emergency.vic.gov.au/public/events-geojson.json
Interval 60 s
HTTP timeout 30 s
Retries 3 (1 s, then 2 s, then 4 s)
Database ./vicalerts.sqlite

Example workflows

# 1. Nightly stats
vicalerts stats --db /data/vic.sqlite

# 2. Export active incidents as JSON
vicalerts events --type incident --format json > incidents.json

# 3. Inspect how an event evolved
vicalerts history 123456 --db /data/vic.sqlite

Notes and limitations

  • Disk growth is roughly 10–20 MB per month (feeds are compressed).
  • Memory use is modest (< 50 MB typical).
  • Geometry is reduced to centroids; polygons are not preserved.
  • Tested on Linux and macOS; Windows untested.
  • 60s interval is based on VicEmergency website; impact is no different to having the site open.

Attribution

Data © State of Victoria (EMV) - data licensed under CC BY 4.0 AU

Project details


Download files

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

Source Distribution

vicalerts-0.2.3.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

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

vicalerts-0.2.3-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file vicalerts-0.2.3.tar.gz.

File metadata

  • Download URL: vicalerts-0.2.3.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vicalerts-0.2.3.tar.gz
Algorithm Hash digest
SHA256 64d459054e9e05f315dfceaf98a4bba174572ed789eb03f58d1a08f5355f971d
MD5 aadbba1dd9929ebda88eb8621d1abd75
BLAKE2b-256 048a9d3f7e68cd7a19a9149ac4721b415c6f45a72666cc426dbb5c672564ece0

See more details on using hashes here.

File details

Details for the file vicalerts-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: vicalerts-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for vicalerts-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 87d78550ec65a19fdfeee2b90c9132c4f11b7eaaddc6f3bcba451bc837d3ccdb
MD5 4fabdcab8951b5a37c764467cedb4243
BLAKE2b-256 a3b85fea840e86a5a5a56f44dae28f75ec5da148f6e822d6d13a3a7f0e2dc073

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