Hi all,
Thanks to you help yesterday, I’ve been able to build a pretty cool flow to request a Solar Measurement API at Solcast.
At the end of my workflow, I have a table with a lot of line of that kind in a nice json format:
[
{
"period_end": "2021-08-25T22:05:00.000Z",
"period": "PT5M",
"total_power": 0
},
{
"period_end": "2021-08-25T22:10:00.000Z",
"period": "PT5M",
"total_power": 0
},
{
"period_end": "2021-08-25T22:15:00.000Z",
"period": "PT5M",
"total_power": 0
}
]
But, I need to request the API with this :
{
"measurements": [
{
"period_end": "2021-08-25T22:05:00.000Z",
"period": "PT5M",
"total_power": 0
},
{
"period_end": "2021-08-25T22:10:00.000Z",
"period": "PT5M",
"total_power": 0
},
{
"period_end": "2021-08-25T22:15:00.000Z",
"period": "PT5M",
"total_power": 0
}
]
}
Is there a way to do it without code ? Otherwise, what would be the right function to produce the right json whatever the number of line of the table ?
Thanks a lot for your help.
A feed-back that would be cool to find on the documentation, it’s how to do maths using SET node. I did find the answer on previous community question, but it would make sens to find it in documentations.