TDR-Aktivieren und oder TDR-deaktivieren in Mock datei
This commit is contained in:
@@ -135,18 +135,17 @@ var win_kueID = [
|
|||||||
|
|
||||||
//-------------TDR---------------------------------------------------
|
//-------------TDR---------------------------------------------------
|
||||||
var win_tdrActive = [
|
var win_tdrActive = [
|
||||||
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
|
||||||
1, 1, 1, 1, 1, 1,
|
|
||||||
];
|
];
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
var win_tdrAtten = [
|
var win_tdrAtten = [
|
||||||
9, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0
|
10, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0, 2.0
|
||||||
];
|
];
|
||||||
var win_tdrSpeed = [
|
var win_tdrSpeed = [
|
||||||
109, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100
|
110, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100
|
||||||
];
|
];
|
||||||
var win_tdrTrigger = [
|
var win_tdrTrigger = [
|
||||||
89, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80
|
100, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80, 80
|
||||||
];
|
];
|
||||||
//----------------------------------------------------
|
//----------------------------------------------------
|
||||||
var win_tdrPulse = [
|
var win_tdrPulse = [
|
||||||
|
|||||||
@@ -110,17 +110,19 @@ export default function TdrEinstellung({ slot }: Props) {
|
|||||||
const slotParam = `KTX${slot}=${newState ? 1 : 0}`;
|
const slotParam = `KTX${slot}=${newState ? 1 : 0}`;
|
||||||
|
|
||||||
if (isDev) {
|
if (isDev) {
|
||||||
fetch(
|
const updates = [{ key: "win_tdrActive", slot, value: newState ? 1 : 0 }];
|
||||||
`/api/cpl/updateTdrSettingsDataAPIHandler?key=win_tdrActive&slot=${slot}&value=${
|
|
||||||
newState ? 1 : 0
|
fetch("/api/cpl/updateTdrSettingsDataAPIHandler", {
|
||||||
}`
|
method: "POST",
|
||||||
)
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify({ updates }),
|
||||||
|
})
|
||||||
.then((res) => res.json())
|
.then((res) => res.json())
|
||||||
.then((data) => {
|
.then(() => {
|
||||||
console.log("Mock-Status aktualisiert:", data);
|
console.log("TDR-Aktiv-Status gespeichert.");
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
console.error("Fehler in DEV-API:", err);
|
console.error("Fehler beim Speichern von TDR aktiv:", err);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const url = `${window.location.origin}/CPL?/kabelueberwachung.html&${slotParam}`;
|
const url = `${window.location.origin}/CPL?/kabelueberwachung.html&${slotParam}`;
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.323";
|
const webVersion = "1.6.324";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user