15.01.2024, 10:32
Try this:
Code:
snowsum = 0
for i = 1, 24 do
hourly = data.hourly[i]
if hourly.snow then
snowsum = snowsum + (hourly.snow['1h'] or 0)
end
end