MM Alert Bug? Alerts Overlap
contactmike1 last edited by contactmike1
I had not been using my weather app for many months, and I got everything up and running today with the latest version of MM. However, I noticed a possible bug in with MM alerts. Previously, MM would handle multiple alerts gracefully, but today, I got this overlapping, unreadable alert instead:
Is something wrong with my MM settings/installation/PI, or is this a bug?
What is the code?
MMM-Rain-Radar already uses the NWS feed to determine when the radar should be displayed on MM. Their logic is if there is an alert for your state, then display the radar. If not, hide the radar module. I made a few modifications to copy the alert/warning text from NWS into a MM alert and display as MM alert. Neat! Then I stored the alert in an array. For each NWS feed check, it searches for any alerts not in the array. If it finds any, it displays them on MM as an alert, and adds the alert(s) to the array. Once there are no more active weather alerts on NWS, the array clears, and the radar stops displaying. Anyway, it’s a cool little hack to mmm-rain-radar, but yeah, it’s not useful if I can’t read the alerts on my MM.
PS. I have a touchscreen so I just touch the alert to make it go away. I also put in a timeout so if I am away for for a long time, the alert will terminate after a few hours.
PSS. I changed the code to do notifications, and it works beautifully. So it’s only the alerts that display incorrectly.