feat: fetchAnalogInputsHistoryService hinzugefügt zum Laden historischer Messwerte

- Holt die Messwerte der letzten 24 Stunden für alle 8 analogen Eingänge (AE1–AE8)
- Baut die Abfrage-URLs dynamisch mit DIA0-Schnittstelle der CPL-Webschnittstelle
- Unterstützt Live-Modus über window.location.origin und optional Mock-Daten über API
- Dient als zentrale Datenquelle für die Chart-Darstellung in der Entwicklungsumgebung
This commit is contained in:
ISA
2025-04-29 10:28:32 +02:00
parent b2a3518c85
commit 38305d410e
3 changed files with 41 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
// services/fetchAnalogInputHistory.ts
// services/fetchAnalogInputHistoryService.ts
export async function fetchAnalogInputHistory(): Promise<
export async function fetchAnalogInputHistoryService(): Promise<
Record<number, any[]>
> {
const baseUrl = `${window.location.origin}/CPL?Service/empty.acp`;