fix: renamed -98V to -96V everywhere

This commit is contained in:
ISA
2025-09-11 10:36:52 +02:00
parent 5ef7e648eb
commit 538f9ca487
21 changed files with 547 additions and 75 deletions

View File

@@ -1,5 +1,5 @@
/**
* Holt Messwerte für -98V aus der passenden JSON-Datei über die API
* Holt Messwerte für -96V aus der passenden JSON-Datei über die API
* @param type - Typ der Daten: DIA0 = alle, DIA1 = stündlich, DIA2 = täglich
*/
export const fetchSystemspannung98VminusService = async (
@@ -8,7 +8,7 @@ export const fetchSystemspannung98VminusService = async (
try {
const isDev = process.env.NODE_ENV === "development";
const channel = 115; // 115 = -98V laut Spezifikation
const channel = 115; // 115 = -96V laut Spezifikation
// Dynamisch: to = heute, from = 30 Tage zurück
const getDateParts = (date: Date) => {
const y = date.getFullYear();
@@ -28,7 +28,7 @@ export const fetchSystemspannung98VminusService = async (
console.log("[Service] fetchSystemspannung98VminusService", path);
const res = await fetch(path);
if (!res.ok) throw new Error("❌ Fehler beim Abrufen der -98V-Daten");
if (!res.ok) throw new Error("❌ Fehler beim Abrufen der -96V-Daten");
return await res.json();
} catch (err) {