This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Solcast API
#6
The loop looks correct though a for loop over the whole data set makes more sense.
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.
Reply


Messages In This Thread
Solcast API - by pioneersteffen - 08.02.2022, 21:21
RE: Solcast API - by admin - 09.02.2022, 07:44
RE: Solcast API - by pioneersteffen - 09.02.2022, 21:11
RE: Solcast API - by admin - 10.02.2022, 08:28
RE: Solcast API - by pioneersteffen - 11.02.2022, 08:18
RE: Solcast API - by admin - 11.02.2022, 08:34
RE: Solcast API - by pioneersteffen - 06.03.2022, 12:13

Forum Jump: