Skip to content

Commit d94af38

Browse files
authored
Merge pull request #369 from dvd-dev/jsons
Correction JSON flex
2 parents 791ee67 + 525dd02 commit d94af38

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"type": 1,
3+
"target": "EventCHConsumptionUpdatedValuesReceived",
4+
"arguments": [
5+
{
6+
"currentWh": 250.0,
7+
"baselineWh": 45058.03108215332,
8+
"isCapped": false,
9+
"reward": 2.26,
10+
"energySavingsWh": 3990.079,
11+
"isInsufficientEnergySavings": false,
12+
"cumulativeBaselinePoints": [
13+
{ "timeUTC": "2026-01-05T11:00:00+00:00", "wh": 0.0 },
14+
{ "timeUTC": "2026-01-05T12:00:00+00:00", "wh": 12027.708053588867 },
15+
{ "timeUTC": "2026-01-05T13:00:00+00:00", "wh": 22701.815605163574 },
16+
{ "timeUTC": "2026-01-05T14:00:00+00:00", "wh": 33675.923347473145 },
17+
{ "timeUTC": "2026-01-05T15:00:00+00:00", "wh": 45058.03108215332 }
18+
],
19+
"cumulativeConsumptionPoints": [
20+
{ "timeUTC": "2026-01-05T11:00:00+00:00", "wh": 0.0 },
21+
{ "timeUTC": "2026-01-05T11:01:00+00:00", "wh": 81.0 },
22+
{ "timeUTC": "2026-01-05T11:02:00+00:00", "wh": 109.0 },
23+
{ "timeUTC": "2026-01-05T11:03:00+00:00", "wh": 119.0 },
24+
{ "timeUTC": "2026-01-05T11:04:00+00:00", "wh": 131.0 },
25+
{ "timeUTC": "2026-01-05T11:05:00+00:00", "wh": 138.0 },
26+
{ "timeUTC": "2026-01-05T11:06:00+00:00", "wh": 145.0 },
27+
{ "timeUTC": "2026-01-05T11:07:00+00:00", "wh": 152.0 },
28+
{ "timeUTC": "2026-01-05T11:08:00+00:00", "wh": 159.0 },
29+
{ "timeUTC": "2026-01-05T11:09:00+00:00", "wh": 167.0 },
30+
{ "timeUTC": "2026-01-05T11:10:00+00:00", "wh": 174.0 },
31+
{ "timeUTC": "2026-01-05T11:11:00+00:00", "wh": 181.0 },
32+
{ "timeUTC": "2026-01-05T11:12:00+00:00", "wh": 191.0 },
33+
{ "timeUTC": "2026-01-05T11:13:00+00:00", "wh": 200.0 },
34+
{ "timeUTC": "2026-01-05T11:14:00+00:00", "wh": 203.0 },
35+
{ "timeUTC": "2026-01-05T11:15:00+00:00", "wh": 210.0 },
36+
{ "timeUTC": "2026-01-05T11:16:00+00:00", "wh": 217.0 },
37+
{ "timeUTC": "2026-01-05T11:17:00+00:00", "wh": 227.0 },
38+
{ "timeUTC": "2026-01-05T11:18:00+00:00", "wh": 239.0 },
39+
{ "timeUTC": "2026-01-05T11:19:00+00:00", "wh": 246.0 },
40+
{ "timeUTC": "2026-01-05T11:20:00+00:00", "wh": 250.0 }
41+
],
42+
"generatedTimeUTC": "2026-01-05T11:21:09.0933869Z",
43+
"isMissingBaseline": false,
44+
"isMissingConsumption": false
45+
}
46+
]
47+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"type": 1,
3+
"target": "EventFlexConsumptionUpdatedValuesReceived",
4+
"arguments": [
5+
{
6+
"baselineWh": 9952.800035476685,
7+
"baselineCost": 4.48,
8+
"reductionStatus": "pending",
9+
"cumulativeBaselinePoints": [
10+
{
11+
"cost": 0.0,
12+
"timeUTC": "2026-01-05T21:00:00+00:00",
13+
"wh": 0.0
14+
},
15+
{
16+
"cost": 1.08,
17+
"timeUTC": "2026-01-05T22:00:00+00:00",
18+
"wh": 2416.800022125244
19+
},
20+
{
21+
"cost": 2.3,
22+
"timeUTC": "2026-01-05T23:00:00+00:00",
23+
"wh": 5102.400064468384
24+
},
25+
{
26+
"cost": 3.4,
27+
"timeUTC": "2026-01-06T00:00:00+00:00",
28+
"wh": 7550.400018692017
29+
},
30+
{
31+
"cost": 4.48,
32+
"timeUTC": "2026-01-06T01:00:00+00:00",
33+
"wh": 9952.800035476685
34+
}
35+
],
36+
"isMissingBaseline": false,
37+
"isMissingConsumption": false,
38+
"generatedTimeUTC": "2026-01-05T11:00:06.8820095Z"
39+
}
40+
]
41+
}

0 commit comments

Comments
 (0)