From 5474beb9106478be61a282c14da0e81cb456a7aa Mon Sep 17 00:00:00 2001 From: mphel44 Date: Sat, 24 Jan 2026 22:34:48 +0100 Subject: [PATCH] Add NetAlertx service integration --- docs/customservices.md | 19 +++++ dummy-data/netalertx/devices/totals | 6 ++ src/components/services/NetAlertx.vue | 105 ++++++++++++++++++++++++++ 3 files changed, 130 insertions(+) create mode 100644 dummy-data/netalertx/devices/totals create mode 100644 src/components/services/NetAlertx.vue diff --git a/docs/customservices.md b/docs/customservices.md index ce3e830..1c56c50 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -33,6 +33,7 @@ Available services are located in `src/components/`: - [Mealie](#mealie) - [Medusa](#medusa) - [Miniflux](#miniflux) +- [NetAlertx](#netalertx) - [Nextcloud](#nextcloud) - [OctoPrint / Moonraker](#octoprintmoonraker) - [Olivetin](#olivetin) @@ -406,6 +407,24 @@ Displays the number of unread articles from your Miniflux RSS reader. **API Key**: Generate an API key in Miniflux web interface under **Settings > API Keys > Create a new API key** +## NetAlertx + +Displays network monitoring stats (connected devices, alerts, network activity) from your NetAlertx server. + +```yaml +- name: "NetAlertx" + type: "NetAlertx" + logo: "assets/tools/sample.png" + url: https://my-service.url + apikey: "<---insert-api-key-here--->" + # endpoint: "https://my-service-api.url" # Optional: alternative base URL used to fetch service data when necessary. + updateInterval: 5000 # (Optional) Interval (in ms) for updating the stats +``` + +**API Key**: Generate an API key in NetAlertx web interface under **Settings > API Access > Generate API Key** or in your installation documentation. + +**Note**: NetAlertx is the modern fork/rename of PiAlert. Both integrations are available in Homer for compatibility. + ## Nextcloud Displays Nextcloud version and shows if Nextcloud is online, offline, or in [maintenance diff --git a/dummy-data/netalertx/devices/totals b/dummy-data/netalertx/devices/totals new file mode 100644 index 0000000..de1e169 --- /dev/null +++ b/dummy-data/netalertx/devices/totals @@ -0,0 +1,6 @@ +{ + "total": 45, + "connected": 38, + "new": 2, + "down": 3 +} \ No newline at end of file diff --git a/src/components/services/NetAlertx.vue b/src/components/services/NetAlertx.vue new file mode 100644 index 0000000..655b4d2 --- /dev/null +++ b/src/components/services/NetAlertx.vue @@ -0,0 +1,105 @@ + + + + +