25.10.2021, 06:50
Replace daily.rain with (daily.rain or 0)
Alerts might not be available so an extra check is needed:
Alerts might not be available so an extra check is needed:
Code:
if type(alerts) == 'table' and type(alerts[1]) == 'table' then
alert_event = alerts[1].event
end
grp.write('41/1/10', alert_event or '')