fix: Kabelüberwachung Konfiguration sichern und zurücksetzen

es muss so sein
https://10.10.0.118/CPL?/kabelueberwachung.html&KSB00=1
und nicht so
https://10.10.0.118/CPL?KSB00=1
This commit is contained in:
ISA
2025-08-18 08:53:51 +02:00
parent a84e8c529f
commit 984c776b2a
6 changed files with 20 additions and 7 deletions

View File

@@ -256,7 +256,11 @@ export default function KueEinstellung({
<button
onClick={async () => {
try {
await fetch(`/CPL?KSB${slot.toString().padStart(2, "0")}=1`);
await fetch(
`/CPL?kabelueberwachung.html&KSB${slot
.toString()
.padStart(2, "0")}=1`
);
toast.success("✅ Konfiguration gesichert.");
} catch (err) {
console.error("KSB Fehler", err);
@@ -272,7 +276,11 @@ export default function KueEinstellung({
<button
onClick={async () => {
try {
await fetch(`/CPL?KSR${slot.toString().padStart(2, "0")}=1`);
await fetch(
`/CPL?kabelueberwachung.html&KSR${slot
.toString()
.padStart(2, "0")}=1`
);
toast.success("✅ Konfiguration wiederhergestellt.");
} catch (err) {
console.error("KSR Fehler", err);