Repository navigation
ridgewarden-lightning is a ridgewarden app. Locates lightning from receivers at several sites with the internet down, shows each strike's error ellipse, and raises dry-lightning fire alerts. It runs next to the ridgewarden core. See the README.
What's new in 0.1.0
Added
- Runs as its own system user,
ridgewarden-lightning, in the core'sridgewardengroup: it can sign events through the core but not read the station key. - Reads vlfrx-tools'
vttogaoutput (H and M records) from a file, its-dhourly directory, or a command, and reports each site's arrivals to the core as signed telemetry events. - Optional gpsd check: arrivals are dropped while the GPS has no fix, and the page says so.
- A solver that groups arrivals from different sites into strikes and locates them on a sphere by time difference of arrival, with a 95% error ellipse from each receiver's timing error.
- Least-squares fits with residuals from four or more receivers; exact fits from three, flagged when a second position fits as well. Three-site groups are only used when nothing else could explain the arrivals.
- The solver works off the database lock with a time budget per round, and a site name belongs to the station that first reported it.
- Located strikes logged through the core, so every site has the same map and history.
- A strike map in inline SVG (no map tiles, works offline) with error ellipses, watch areas and receivers; strike history; a page per strike with each arrival's residual; receiver status per site.
- Watch areas (polygon or circle) with alerts, and a critical dry-lightning alert when the area's APRS weather stations report under 2.5 mm of rain; missing rain data is said plainly and never counted as dry.
- Rain from APRS weather stations (CWOP) over APRS-IS, from a public server or one on the mesh, and from the weather app's
weather.rainevents (APRS and NWS readings) from trusted stations. A wet reading counts for the whole lookback, a dry one only while fresh, and an open dry-lightning alert stays open when the rain data goes stale. simulate, which writes vttoga-style records for synthetic strikes so the whole chain can run without receivers.- Strikes as GeoJSON at
/api/strikes.geojson, as CSV at/api/strikes.csv, and receiver status at/api/receivers. - An Accuracy page: the region shaded by the expected 95% error from the receivers' geometry and timing, the expected accuracy inside the ring, the timing error the residuals show, the receiver the network can least afford to lose, each watch area's worst case, and logged comparisons with reference data.
compare, which matches located strikes against a reference CSV and can log the agreement through the core.check-source, which says what the end of the configured vttoga output holds, andtest-alert, which sends a test notice.- Receiver warnings for arrival times off the computer's clock and for timing that the residuals show is off; strikes taken part in and median residual per site.
- Strikes outside the ring of receivers are marked, and the ring is drawn on the map.
- The APRS weather parser also reads wind direction, sustained wind and gust (
Wx::wind_dir_deg,wind_mph,gust_mph) for other apps to use.
Downloads
| File | For | Size | Notes |
|---|---|---|---|
ridgewarden-lightning_0.1.0_amd64.deb |
x86_64 | 3.5 MB | Debian / Raspberry Pi OS package (needs the ridgewarden package) |
ridgewarden-lightning_0.1.0_arm64.deb |
Raspberry Pi (arm64) | 3.2 MB | Debian / Raspberry Pi OS package (needs the ridgewarden package) |
ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz |
Raspberry Pi (aarch64) | 4.0 MB | Static binary, systemd unit, README and license |
ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz |
x86_64 | 4.3 MB | Static binary, systemd unit, README and license |
install.sh |
Linux | 3.3 KB | Script install: picks the build, checks it with your installed core |
SHA256SUMS.txt |
all | 1.4 KB | Checksums of every file |
SHA256SUMS.txt.sig |
all | 86 B | Release signature over the checksums |
Install
On a box that already runs the ridgewarden core:
curl -fsSL https://github.com/Londopy/ridgewarden-lightning/releases/latest/download/install.sh | sudo shDebian package: sudo apt install ./ridgewarden-lightning_0.1.0_arm64.deb (or _amd64). It writes /etc/ridgewarden/lightning.toml if there isn't one and starts the service once the core is set up. The page is on port 8796.
Verify a download
sha256sum -c SHA256SUMS.txt --ignore-missing
ridgewarden verify-release SHA256SUMS.txtThe second command checks the release signature with the key your installed core trusts, the same key that signs core releases.
Checksums
75b3116a55199e525974f8fe423675840096b3fd8c9fabfbc93073f83fae44a4 install.sh
7b2d8357a07b859dc9158f2f6132d4f346d39cf41c099fb688c7e940e692c4b9 ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz
d287b9fff9f3f25cc04bcc5c7eb346a25791181d59455bf7e036d470e44b8746 ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz.magnet.png
c1dd43511eebad3c64ed6047ce5ce5505edda211f6637b6e74b4fca87a89481f ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz.torrent
641dfcf738803c6bb23f214ae15cfbbd2d70dc22943b9d499c34e36e23593868 ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz
192c7218dcf9b95c7ae6ce584bb705f1b9d5eaf89feb8fd53401876d694c5590 ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz.magnet.png
dae6f636db1b552d1f7291bab3c830637502dfae2a1a7688508b6426071c4fcb ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz.torrent
6ad99a943c095abb304da5b436822f4ba16cbea9a788677940d2d06ed7a60a8a ridgewarden-lightning_0.1.0_amd64.deb
21ee8f55579dc0d7e986d9470811588823b8fb23ef81670626f459f5ac15eee8 ridgewarden-lightning_0.1.0_amd64.deb.magnet.png
fa14ae38cf292a7294325921f0753c4a9799dd9329ff040563facf7f545be77c ridgewarden-lightning_0.1.0_amd64.deb.torrent
1012e598466beb1469e61c73f961eebafbda0ed1af60658d766255b1b4554018 ridgewarden-lightning_0.1.0_arm64.deb
52abd32027604211523aaf546b81c5cca3a0118d74d61772e083e9040559a83a ridgewarden-lightning_0.1.0_arm64.deb.magnet.png
b3733a00130ba840116fd797a63fb626d5b6e73076935659aa4c73c92401c70f ridgewarden-lightning_0.1.0_arm64.deb.torrent
Torrents
Every download is also a .torrent with its GitHub download as the web seed: a BitTorrent client gets it from GitHub when nobody is seeding, and from peers when they are. The magnet links carry the same web seed, but need one peer to fetch the file list first.
| File | Torrent | Magnet (QR) |
|---|---|---|
ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz |
ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz.torrent |
![]() |
ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz |
ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz.torrent |
![]() |
ridgewarden-lightning_0.1.0_amd64.deb |
ridgewarden-lightning_0.1.0_amd64.deb.torrent |
![]() |
ridgewarden-lightning_0.1.0_arm64.deb |
ridgewarden-lightning_0.1.0_arm64.deb.torrent |
![]() |
Magnet links
# ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz
magnet:?xt=urn:btih:6fe4e98139dfbde0548f40ad2cc273223a56db14&dn=ridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz&xl=4173834&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden-lightning%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden-lightning-v0.1.0-aarch64-linux.tar.gz
# ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz
magnet:?xt=urn:btih:f94825895d48c32b73359e100a6f167f7443925b&dn=ridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz&xl=4528270&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden-lightning%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden-lightning-v0.1.0-x86_64-linux.tar.gz
# ridgewarden-lightning_0.1.0_amd64.deb
magnet:?xt=urn:btih:55198a79f04f37a1f1004d3695d22fa17ac0d4c2&dn=ridgewarden-lightning_0.1.0_amd64.deb&xl=3628420&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden-lightning%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden-lightning_0.1.0_amd64.deb
# ridgewarden-lightning_0.1.0_arm64.deb
magnet:?xt=urn:btih:2f883b3fd849cf91d12de54be6f18d2330470b41&dn=ridgewarden-lightning_0.1.0_arm64.deb&xl=3393868&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce&tr=udp%3A%2F%2Fopen.stealth.si%3A80%2Fannounce&tr=udp%3A%2F%2Ftracker.torrent.eu.org%3A451%2Fannounce&ws=https%3A%2F%2Fgithub.com%2FLondopy%2Fridgewarden-lightning%2Freleases%2Fdownload%2Fv0.1.0%2Fridgewarden-lightning_0.1.0_arm64.deb
Full changelog: https://github.com/Londopy/ridgewarden-lightning/commits/v0.1.0



