Enhancement: support netalertx v26.1.17 breaking changes (#6196)
Some checks failed
Crowdin Action / Crowdin Sync (push) Has been cancelled
Docker CI / Linting Checks (push) Has been cancelled
Docker CI / Docker Build & Push (push) Has been cancelled
Repository Maintenance / Stale (push) Has been cancelled
Repository Maintenance / Lock Old Threads (push) Has been cancelled
Repository Maintenance / Close Answered Discussions (push) Has been cancelled
Repository Maintenance / Close Outdated Discussions (push) Has been cancelled
Repository Maintenance / Close Unsupported Feature Requests (push) Has been cancelled

This commit is contained in:
shamoon
2026-01-17 15:39:15 -08:00
committed by GitHub
parent f9d920a8fb
commit 9076cfd7e7
4 changed files with 18 additions and 6 deletions

View File

@@ -314,7 +314,7 @@ export function cleanServiceGroups(groups) {
// gamedig
gameToken,
// authentik, beszel, glances, immich, komga, mealie, pihole, pfsense, speedtest
// authentik, beszel, glances, immich, komga, mealie, netalertx, pihole, pfsense, speedtest
version,
// glances
@@ -559,6 +559,7 @@ export function cleanServiceGroups(groups) {
"immich",
"komga",
"mealie",
"netalertx",
"pfsense",
"pihole",
"speedtest",

View File

@@ -9,7 +9,9 @@ export default function Component({ service }) {
const { widget } = service;
const { data: netalertxData, error: netalertxError } = useWidgetAPI(widget, "data");
const dataEndpoint = widget?.version > 1 ? "datav2" : "data";
const { data: netalertxData, error: netalertxError } = useWidgetAPI(widget, dataEndpoint);
if (netalertxError) {
return <Container service={service} error={netalertxError} />;

View File

@@ -1,12 +1,15 @@
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
const widget = {
api: "{url}/php/server/devices.php?action=getDevicesTotals",
api: "{url}/{endpoint}",
proxyHandler: credentialedProxyHandler,
mappings: {
data: {
endpoint: "data",
endpoint: "php/server/devices.php?action=getDevicesTotals",
},
datav2: {
endpoint: "devices/totals",
},
},
};