I saw Meteoalarm didnt work anymore. So i got a new script that i found on this https://www.domoticz.com/forum/viewtopic.php?t=37919 (thank you for that)
With Meteoalarm i always trigger on text value. For example meteoalarm gives me Wind(3) or Wind(2) (Every time the same text value's), i show a warning on my dashboard with yellow block with wind symbol. (cant show an example because its down already) All text value's coded into the custum.js
Now i want to do that for the KNMI warning messages, but what i see is that the text value's are not the same and changing all the time.

Ofcourse if i use "Zware windstoten tot ongeveer 90 km/uur." it works :
Code: Select all
else if (device['Data']=="Zware windstoten tot ongeveer 90 km/uur."){
block.addClass='warningyellow'
block.icon = 'fas fa-wind'
block.title = 'Wind'
}

Now i was thinking to trigger just on some words, for example Zware windstoten. But the == statement is not usable here
Code: Select all
else if (device['Data']=="Zware windstoten"){
block.addClass='warningyellow'
block.icon = 'fas fa-wind'
block.title = 'Wind'
}
Has anyone some advice?