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
This commit is contained in:
ISA
2025-09-03 11:45:44 +02:00
parent 6c2707ff47
commit d6fcf95795
115 changed files with 517927 additions and 517962 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "cpl-v4",
"version": "1.6.826",
"version": "1.6.827",
"private": true,
"scripts": {
"dev": "next dev -p 3000",
@@ -26,7 +26,8 @@
"mocks:cable:range": "node ./mocks/scripts/fetchCableData.mjs --from %FROM% --to %TO% --insecure",
"mocks:cable:slot": "node ./mocks/scripts/fetchCableData.mjs --slots %SLOTS% --insecure",
"mocks:retime:ai": "node ./mocks/scripts/retimeAnalogInputs.mjs all",
"mocks:retime:ai:slot": "node ./mocks/scripts/retimeAnalogInputs.mjs %SLOT%"
"mocks:retime:ai:slot": "node ./mocks/scripts/retimeAnalogInputs.mjs %SLOT%",
"mocks:retime:all": "node ./mocks/scripts/retimeAllCharts.mjs"
},
"dependencies": {
"@fontsource/roboto": "^5.1.0",