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,188 +1,188 @@
[
{
"t": "2025-08-13 00:00:00",
"t": "2025-09-03 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.436
},
{
"t": "2025-08-12 00:00:00",
"t": "2025-09-02 00:00:00",
"i": 10,
"a": 11,
"g": 10.317
},
{
"t": "2025-08-11 00:00:00",
"t": "2025-09-01 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.053
},
{
"t": "2025-08-10 00:00:00",
"t": "2025-08-31 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.106
},
{
"t": "2025-08-09 00:00:00",
"t": "2025-08-30 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.011
},
{
"t": "2025-08-08 00:00:00",
"t": "2025-08-29 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.314
},
{
"t": "2025-08-07 00:00:00",
"t": "2025-08-28 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.381
},
{
"t": "2025-08-06 00:00:00",
"t": "2025-08-27 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.021
},
{
"t": "2025-08-05 00:00:00",
"t": "2025-08-26 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.01
},
{
"t": "2025-08-04 00:00:00",
"t": "2025-08-25 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.021
},
{
"t": "2025-08-03 00:00:00",
"t": "2025-08-24 00:00:00",
"i": 10,
"a": 200,
"g": 10.156
},
{
"t": "2025-08-02 00:00:00",
"t": "2025-08-23 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.026
},
{
"t": "2025-08-01 00:00:00",
"t": "2025-08-22 00:00:00",
"i": 10,
"a": 11,
"g": 10.268
},
{
"t": "2025-07-31 00:00:00",
"t": "2025-08-21 00:00:00",
"i": 10,
"a": 11,
"g": 10.698
},
{
"t": "2025-07-30 00:00:00",
"t": "2025-08-20 00:00:00",
"i": 10,
"a": 11,
"g": 10.375
},
{
"t": "2025-07-29 00:00:00",
"t": "2025-08-19 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.281
},
{
"t": "2025-07-28 00:00:00",
"t": "2025-08-18 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.297
},
{
"t": "2025-07-27 00:00:00",
"t": "2025-08-17 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.074
},
{
"t": "2025-07-26 00:00:00",
"t": "2025-08-16 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.442
},
{
"t": "2025-07-25 00:00:00",
"t": "2025-08-15 00:00:00",
"i": 10,
"a": 11,
"g": 10.443
},
{
"t": "2025-07-24 00:00:00",
"t": "2025-08-14 00:00:00",
"i": 10,
"a": 11,
"g": 10.305
},
{
"t": "2025-07-23 00:00:00",
"t": "2025-08-13 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.182
},
{
"t": "2025-07-22 00:00:00",
"t": "2025-08-12 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.385
},
{
"t": "2025-07-21 00:00:00",
"t": "2025-08-11 00:00:00",
"i": 10,
"a": 11,
"g": 10.293
},
{
"t": "2025-07-20 00:00:00",
"t": "2025-08-10 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.016
},
{
"t": "2025-07-19 00:00:00",
"t": "2025-08-09 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.116
},
{
"t": "2025-07-18 00:00:00",
"t": "2025-08-08 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.292
},
{
"t": "2025-07-17 00:00:00",
"t": "2025-08-07 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.292
},
{
"t": "2025-07-16 00:00:00",
"t": "2025-08-06 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.006
},
{
"t": "2025-07-15 00:00:00",
"t": "2025-08-05 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.005
},
{
"t": "2025-07-14 00:00:00",
"t": "2025-08-04 00:00:00",
"i": 10,
"a": 10.5,
"g": 10.073
}
]
]