- Rust 58.4%
- QML 35%
- Shell 3.7%
- JavaScript 2.5%
- Dockerfile 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| assets | ||
| packaging | ||
| push-bridge | ||
| qml | ||
| qml-sfos | ||
| rpm | ||
| scripts | ||
| sfos | ||
| src | ||
| tests | ||
| vendor/ece-native | ||
| .gitignore | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| clickable.yaml | ||
| doomsday.apparmor | ||
| doomsday.desktop | ||
| doomsday.dispatcher | ||
| LICENSE-GPL-3.0 | ||
| manifest.json | ||
| push-apparmor.json | ||
| push.json | ||
| README.md | ||
Doomsday
Be prepared for the apocalypse with Doomsday.
Doomsday is an emergency and weather alert app for Ubuntu Touch. Keep watch over your home, your family, and anywhere else you plan to ride out the end times. It tracks alerts from the KDE FOSS Public Alert Server for up to ten places, with a radius of 2 to 15 km around each one.
Alerts are cached, so you can still check what is heading your way when the network is down. Hopefully it is only rain.
Build
cargo test
clickable script prepare-maplibre-deps
clickable build --libs
clickable build
clickable run
Sailfish OS
For Sailfish OS, the official release channel is OpenRepos.
The latest and pre-release versions are also available via Harpoon. Scan this code in Harpoon's scanner, or open the link on your phone.
harpoon://add?url=https%3A%2F%2Fgit.agnos.is%2Fprojectmoon%2Fdoomsday&source=Forgejo
The Sailfish port uses Qt 5.6 Silica QML and is built as harbour-doomsday.
The containerized build supports the emulator and aarch64 devices:
sfos/build.sh i486
sfos/build.sh aarch64
sfos/build.sh --prune i486
sfos/build.sh --stable aarch64
sfos/deploy.sh --build
Run scripts/prepare-sfos-maplibre-deps.sh when preparing the pinned map
sources. The RPM installs the map library as libDoomsdayQMapLibre and the
QML module as DoomsdayMapboxMap, keeping it private to this application.
Sailfish does not use the Ubuntu Touch push proxy. With push enabled, Doomsday registers directly with a UnifiedPush distributor such as Foghorn and sends the resulting endpoint and Web Push keys to the KDE alert service. Messages are received by a short-lived headless activation and stored durably before they are processed. If no distributor is available, Doomsday polls every fifteen minutes while it is running, including when minimized.
Run prepare-maplibre-deps before the first Clickable build. It
downloads the pinned MapLibre Native Qt, MapboxMap QML plugin, and
Abseil sources, then applies the Ubuntu Touch patches. Re-run it when
those versions or patches change.
The libraries must be built once for each target architecture before building the app package.
Alerts and Locations
The app requests the networking, location, and
push-notification-client permissions.
Add up to ten locations to your watchlist, or use Current Location when the disaster comes to you.
Current Location names are looked up through Nominatim and stored in a
rate-limited cache. You can choose another Nominatim-compatible
reverse geocoder in Settings or set reverseGeocoderUrl in:
~/.config/doomsday.projectmoon/doomsday.projectmoon.conf
Leave it empty to use https://nominatim.openstreetmap.org/reverse.
Only absolute HTTP and HTTPS URLs are accepted. For development and
deployment, DOOMSDAY_REVERSE_GEOCODER_URL overrides the setting.
Where Alerts Come From
CAP, the Common Alerting Protocol, is a standard format used by public authorities to publish warnings. A CAP alert describes what is happening, how serious it is, when it applies, and which area is affected. The KDE FOSS Public Alert Server gathers these alerts from official feeds and gives Doomsday one place to retrieve them.
MeteoAlarm is a European weather-warning system. Its feeds may contain several warning periods for the same event, so Doomsday joins related periods into one hazard episode. Awareness levels run from 1 to 4; level 1 means there is no active warning, while higher levels mean increasingly severe weather.
Area searches start with a bounding box. Doomsday then downloads each returned CAP alert and checks its polygon or circle against the configured radius. The box makes the initial search quick; the geometry check keeps alerts outside your chosen area from crashing the party.
Push Notifications
The apocalypse does not wait for you to open an app. Enable Settings → Push notifications to receive alerts while Doomsday is closed. Push notifications are optional and disabled by default; when they are off, alerts are checked only while the app is open. The app does support running unsuspended in the background via UT Tweak Tool, if you don't want to/can't use push notifications, and still desire realtime notification of impending doom.
UnifiedPush is an open way for apps to receive notifications without depending on Google services. When push is enabled, Doomsday registers each area's bounding box with the KDE alert server using an encrypted UnifiedPush subscription. KDE encrypts alerts for the device, and the relay only forwards the ciphertext. KDE sees the bounding boxes; the relay sees an opaque UBports delivery token.
The relay URL is set with pushProxyUrl in the same configuration
file. The default is https://alert-proxy.agnos.is. The relay is the
push-bridge service included in this repository.
Subscriptions are created only when the relay is available. They are updated when areas change, and Current Location is updated after the device moves at least 1 km and the app has had a chance to run (either via main app or receiving a push notification).
Decrypted push messages are not logged by default. For debugging, set
debugPushLogging to true and enable debug output with RUST_LOG.
The decrypted push content is the raw output from the KDE alerts
server, which contains alert IDs and the like.
Safety
Doomsday can help you keep an eye on trouble, but it is not an official warning channel. Alert coverage, timing, and location data may be incomplete. When things actually get apocalyptic, follow instructions from local authorities and official emergency services.
License
The app is licensed under GPLv3. The push bridge is licensed separately under AGPLv3.
