hi there,
I collect some data with rest.
the output is:
{
"System": "4654546",
"data": [
{
"logDateTime": "2023-04-20T18:15:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 274.53,
"unit": "Wh"
}
]
},
{
"logDateTime": "2023-04-20T18:30:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 266.1325,
"unit": "Wh"
}
]
},
{
"logDateTime": "2023-04-20T18:45:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 250.365,
"unit": "Wh"
}
]
},
{
"logDateTime": "2023-04-20T19:00:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 228.1025,
"unit": "Wh"
}
]
},
{
"logDateTime": "2023-04-20T19:15:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 184.6,
"unit": "Wh"
}
]
},
{
"logDateTime": "2023-04-20T19:30:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 135.375,
"unit": "Wh"
}
]
},
{
"logDateTime": "2023-04-20T19:45:00+02:00",
"logDuration": 900,
"channels": [
{
"channelName": "EnergyExpected",
"channelType": "Energy",
"value": 85.531,
"unit": "Wh"
}
]
}
]
}
I want to totalize all values of the attribute “value”
Can someone tell me how to do this?
Thanks!