Files
CPLv4.0/mocks/device-cgi-simulator/chartsData/cable-monitoring-data/slot3/isolationswiderstand/DIA2.json
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

189 lines
2.5 KiB
JSON

[
{
"t": "2025-09-03 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-09-02 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-09-01 00:00:00",
"i": 120,
"a": 200,
"g": 200
},
{
"t": "2025-08-31 00:00:00",
"i": 115,
"a": 200,
"g": 200
},
{
"t": "2025-08-30 00:00:00",
"i": 125,
"a": 200,
"g": 200
},
{
"t": "2025-08-29 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-08-28 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-08-27 00:00:00",
"i": 57.5,
"a": 200,
"g": 198.516
},
{
"t": "2025-08-26 00:00:00",
"i": 125,
"a": 200,
"g": 199.219
},
{
"t": "2025-08-25 00:00:00",
"i": 125,
"a": 200,
"g": 199.211
},
{
"t": "2025-08-24 00:00:00",
"i": 57,
"a": 200,
"g": 200
},
{
"t": "2025-08-23 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-08-22 00:00:00",
"i": 125,
"a": 200,
"g": 200
},
{
"t": "2025-08-21 00:00:00",
"i": 57,
"a": 200,
"g": 200
},
{
"t": "2025-08-20 00:00:00",
"i": 125,
"a": 200,
"g": 200
},
{
"t": "2025-08-19 00:00:00",
"i": 125,
"a": 200,
"g": 200
},
{
"t": "2025-08-18 00:00:00",
"i": 57,
"a": 200,
"g": 200
},
{
"t": "2025-08-17 00:00:00",
"i": 58,
"a": 200,
"g": 200
},
{
"t": "2025-08-16 00:00:00",
"i": 125,
"a": 200,
"g": 200
},
{
"t": "2025-08-15 00:00:00",
"i": 57,
"a": 200,
"g": 200
},
{
"t": "2025-08-14 00:00:00",
"i": 57.5,
"a": 200,
"g": 200
},
{
"t": "2025-08-13 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-08-12 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-08-11 00:00:00",
"i": 57.5,
"a": 200,
"g": 200
},
{
"t": "2025-08-10 00:00:00",
"i": 57.5,
"a": 200,
"g": 200
},
{
"t": "2025-08-09 00:00:00",
"i": 125,
"a": 200,
"g": 200
},
{
"t": "2025-08-08 00:00:00",
"i": 57.5,
"a": 200,
"g": 200
},
{
"t": "2025-08-07 00:00:00",
"i": 58,
"a": 200,
"g": 200
},
{
"t": "2025-08-06 00:00:00",
"i": 57,
"a": 200,
"g": 200
},
{
"t": "2025-08-05 00:00:00",
"i": 200,
"a": 200,
"g": 200
},
{
"t": "2025-08-04 00:00:00",
"i": 125,
"a": 200,
"g": 200
}
]