14 Commits

Author SHA1 Message Date
ISA
538f9ca487 fix: renamed -98V to -96V everywhere 2025-09-11 10:36:52 +02:00
ISA
f4f4c28cb7 feat(mocks): mesages_all.json mock script 2025-09-03 12:24:41 +02:00
ISA
d6fcf95795 feat(mocks): retime chart mocks to today; add global/all-slot scripts
Add retimeAnalogInputs.mjs (all slots, single slot, or path)
Add retimeAllCharts.mjs (recursive under chartsData)
Update package.json with npm scripts:
mocks:retime:ai (all analog slots)
mocks:retime:ai:slot (single slot via %SLOT%)
mocks:retime:all (entire chartsData tree)
Preserve relative deltas; set first entry to today (same time); DIA2 daily at 00:00
Skip files/arrays without parsable "t" timestamps
2025-09-03 11:45:44 +02:00
ISA
6c2707ff47 feat: update analogInputs data in mocks 2025-09-03 11:30:44 +02:00
ISA
0246e34de4 Daten von CPL bekommen DIA0- DIA2 ISO und RSL 2025-08-13 10:29:28 +02:00
ISA
31a54deb2d chore(eslint): ignore irregular whitespace in comments (keep rule strict for code) 2025-08-12 11:11:39 +02:00
ISA
71f120aa27 fetchCableData.mjs
Sends Authorization: Basic <base64(user:pass)> with configurable credentials.
Accepts --user and --pass, or env CPL_USER/CPL_PASS; defaults to Littwin/Littwin.
Uses an https.Agent({ rejectUnauthorized: false }) when --insecure is set.
Corrected output folder to cable-monitoring-data.
CLI parser supports both --key=value and --key value (PowerShell friendly).
Quick usage (PowerShell)

All 32 slots, both types (iso=3, rsl=4), all DIA modes, last 30 days:
npm run mocks:cable
Specific date range (e.g., 2025-07-13 to 2025-08-12), all slots and types:
node .\mocks\scripts\fetchCableData.mjs --from 2025-07-13 --to 2025-08-12 --insecure
Only slot 0, Isolationswiderstand, DIA1:
node .\mocks\scripts\fetchCableData.mjs --slots 0 --modes DIA1 --types iso --from 2025-07-13 --to 2025-08-12 --insecure
Provide credentials explicitly:
node .\mocks\scripts\fetchCableData.mjs --user Littwin --pass Littwin --insecure
Or via environment variables for the session:
$env:CPL_USER = "Littwin"; $env:CPL_PASS = "Littwin"
node .\mocks\scripts\fetchCableData.mjs --insecure
Output structure

mocks/device-cgi-simulator/cable-monitoring-data/slot{0..31}/
isolationswiderstand/DIA0.json, DIA1.json, DIA2.json
schleifenwiderstand/DIA0.json, DIA1.json, DIA2.json
I smoke-tested slot 0, DIA1, iso with login and it produced DIA1.json under slot0/isolationswiderstand. If you need me to also add a convenience npm script with user/pass placeholders, say the credentials source you prefer (env vs args), and I’ll wire it.
2025-08-12 10:50:08 +02:00
ISA
77c939697c loop DatePicke 2025-08-12 09:58:44 +02:00
ISA
806eaaeff7 Daten von 118. in mocks geholt 2025-08-11 12:07:47 +02:00
ISA
3098ce67f0 fix: richtige Link in system fetch service 2025-08-01 11:30:11 +02:00
ISA
0a20f91ba6 feat: fetchSystemData.mjs erweitert und optimiert
Analoge Eingänge und Systemdaten werden jetzt gemeinsam abgerufen und gespeichert
Einheitliche Benennung (input statt eingang) für analoge Eingänge
Datumssplittung als Hilfsfunktion ausgelagert
Kommentare und Beschreibung verbessert
2025-08-01 10:25:05 +02:00
ISA
975d3b726f refactor: mMeldungen angepasst 2025-08-01 09:44:30 +02:00
ISA
423c87ca11 feat: Script zum Abrufen und Speichern von CPL-Meldungen als Mockdaten hinzugefügt 2025-08-01 08:27:45 +02:00
ISA
697cae9848 feat(mock): Script fetchAnalogInputsData auf ES-Module (.mjs) umgestellt, Datum automatisch gesetzt 2025-07-21 14:21:38 +02:00