Hi RedNax,
Love your module and am using it ever since I have my mirror. One small thing though: WUnderground currently has two identical alerts (both “type”: “WIN”) for my PWS. This leads to the identical text being shown on the module. It would be great if the module checked whether an alert with the respective type already exists and only displays the warning once… The relevant extract from WUnderground json is as follows:
// "alerts": [
{
"type": "WND",
"wtype_meteoalarm": "1",
"wtype_meteoalarm_name": "Wind",
"level_meteoalarm": "2",
"level_meteoalarm_name": "Yellow",
"level_meteoalarm_description": "The weather is potentially dangerous. The weather phenomena that have been forecast are not unusual, but be attentive if you intend to practice activities exposed to meteorological risks. Keep informed about the expected meteorological conditions and do not take any avoidable risk.",
"description": "Potential disruption due to wind from 5:22PM CET SAT until 11:59PM CET SAT",
"date": "2017-02-25 17:24:18 GMT",
"date_epoch": "NA",
"expires": "2017-02-25 22:59:00 GMT",
"expires_epoch": "NA",
"message": "Potential disruption due to wind from 5:22PM CET SAT until 11:59PM CET SAT)",
"phenomena": "NA",
"significance": "NA",
"attribution": "Information provided by , <a href="http://meteoalarm.eu/">EUMETNET - MeteoAlarm</a> Note: Time delays between this website and <a href="http://meteoalarm.eu/">Meteoalarm.eu</a> are possible. For the most up-to-date information about alert levels as published by the participating National Meteorological Services, please visit <a href="http://meteoalarm.eu/">Meteoalarm</a>. For terms of use of this information, and copyright information, see <a href="http://meteoalarm.eu/">Meteoalarm</a> Terms of Use."
}
,
{
"type": "WIN",
"wtype_meteoalarm": "2",
"wtype_meteoalarm_name": "Snow/Ice",
"level_meteoalarm": "2",
"level_meteoalarm_name": "Yellow",
"level_meteoalarm_description": "The weather is potentially dangerous. The weather phenomena that have been forecast are not unusual, but be attentive if you intend to practice activities exposed to meteorological risks. Keep informed about the expected meteorological conditions and do not take any avoidable risk.",
"description": "Potential disruption due to snow and ice from 8PM CET FRI until 9AM CET SAT",
"date": "2017-02-25 01:00:00 GMT",
"date_epoch": "NA",
"expires": "2017-02-25 08:00:00 GMT",
"expires_epoch": "NA",
"message": "Potential disruption due to snow and ice from 8PM CET FRI until 9AM CET SAT)",
"phenomena": "NA",
"significance": "NA",
"attribution": "Information provided by , <a href="http://meteoalarm.eu/">EUMETNET - MeteoAlarm</a> Note: Time delays between this website and <a href="http://meteoalarm.eu/">Meteoalarm.eu</a> are possible. For the most up-to-date information about alert levels as published by the participating National Meteorological Services, please visit <a href="http://meteoalarm.eu/">Meteoalarm</a>. For terms of use of this information, and copyright information, see <a href="http://meteoalarm.eu/">Meteoalarm</a> Terms of Use."
}
,
{
"type": "WIN",
"wtype_meteoalarm": "6",
"wtype_meteoalarm_name": "Extreme low temperature",
"level_meteoalarm": "2",
"level_meteoalarm_name": "Yellow",
"level_meteoalarm_description": "The weather is potentially dangerous. The weather phenomena that have been forecast are not unusual, but be attentive if you intend to practice activities exposed to meteorological risks. Keep informed about the expected meteorological conditions and do not take any avoidable risk.",
"description": "Potential disruption due to extreme low temperatures from 8PM CET FRI until 9AM CET SAT",
"date": "2017-02-25 01:00:00 GMT",
"date_epoch": "NA",
"expires": "2017-02-25 08:00:00 GMT",
"expires_epoch": "NA",
"message": "Potential disruption due to extreme low temperatures from 8PM CET FRI until 9AM CET SAT)",
"phenomena": "NA",
"significance": "NA",
"attribution": "Information provided by , <a href="http://meteoalarm.eu/">EUMETNET - MeteoAlarm</a> Note: Time delays between this website and <a href="http://meteoalarm.eu/">Meteoalarm.eu</a> are possible. For the most up-to-date information about alert levels as published by the participating National Meteorological Services, please visit <a href="http://meteoalarm.eu/">Meteoalarm</a>. For terms of use of this information, and copyright information, see <a href="http://meteoalarm.eu/">Meteoalarm</a> Terms of Use."
}
]``