11.02.2022, 08:34
The loop looks correct though a for loop over the whole data set makes more sense.
Keep in mind that there's a limit on API calls so your script might not produce any results if you hit this limit.
Code:
for i, row in ipairs(data) do
log(i, row)
grp.write('45/1/'..i, row.pv_estimate)
end
Keep in mind that there's a limit on API calls so your script might not produce any results if you hit this limit.