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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user