Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return {
- on = {
- devices = {
- iDX van weer alarm vandaag!
- }
- },
- execute = function(domoticz)
- local weerAlarm = domoticz.devices(iDX van weer alarm vandaag!) -- Haal weer waarschuwingen op
- local weerAlarmCode = weerAlarm.color
- local weerAlarmBericht = ""
- local jsonData = json:decode(weatherAlarmColors)
- local weatherWarnings = json:decode(weatherAlarmWarnings)
- if(weerAlarmCode > 1) then
- weerAlarmBericht = "%0A%0A*Let op!*%0AEr is code "..jsonData[""..weerAlarmCode..""].." afgegeven vanwege "..weatherWarnings[""..weerAlarm.text..""]..""
- end
- sendTelegram(weerAlarmBericht, "group")
- end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement