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

@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
NEXT_PUBLIC_EXPORT_STATIC=false NEXT_PUBLIC_EXPORT_STATIC=false
NEXT_PUBLIC_USE_CGI=false NEXT_PUBLIC_USE_CGI=false
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.733 NEXT_PUBLIC_APP_VERSION=1.6.734
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter) NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)

View File

@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
NEXT_PUBLIC_EXPORT_STATIC=true NEXT_PUBLIC_EXPORT_STATIC=true
NEXT_PUBLIC_USE_CGI=true NEXT_PUBLIC_USE_CGI=true
# App-Versionsnummer # App-Versionsnummer
NEXT_PUBLIC_APP_VERSION=1.6.733 NEXT_PUBLIC_APP_VERSION=1.6.734
NEXT_PUBLIC_CPL_MODE=production NEXT_PUBLIC_CPL_MODE=production

View File

@@ -1,3 +1,8 @@
## [1.6.734] 2025-08-18
- WIP: Playwright test
---
## [1.6.733] 2025-08-15 ## [1.6.733] 2025-08-15
- style: Messwertkurven Legende und Liniern style angepasst - style: Messwertkurven Legende und Liniern style angepasst

View File

@@ -256,7 +256,11 @@ export default function KueEinstellung({
<button <button
onClick={async () => { onClick={async () => {
try { 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."); toast.success("✅ Konfiguration gesichert.");
} catch (err) { } catch (err) {
console.error("KSB Fehler", err); console.error("KSB Fehler", err);
@@ -272,7 +276,11 @@ export default function KueEinstellung({
<button <button
onClick={async () => { onClick={async () => {
try { 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."); toast.success("✅ Konfiguration wiederhergestellt.");
} catch (err) { } catch (err) {
console.error("KSR Fehler", err); console.error("KSR Fehler", err);

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.733", "version": "1.6.734",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.733", "version": "1.6.734",
"dependencies": { "dependencies": {
"@fontsource/roboto": "^5.1.0", "@fontsource/roboto": "^5.1.0",
"@headlessui/react": "^2.2.4", "@headlessui/react": "^2.2.4",

View File

@@ -1,6 +1,6 @@
{ {
"name": "cpl-v4", "name": "cpl-v4",
"version": "1.6.733", "version": "1.6.734",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",