@whimsicality you don’t need additional code in your weather module.
It is only important to have one of the supported (weather, MMM-OpenWeatherForecast) running together with MMM-RAIN-MAP on your mirror.
If you use OpenWeatherForecast, all you need to do is to set the displayHoursBeforeRain
option in your MMM-RAIN-MAP settings.
For example, if you want to let the rain map appear one hour before rain starts, your rain map config should look like that:
{
module: "MMM-RAIN-MAP",
position: "top_left",
config: {
// all your other config
displayHoursBeforeRain: 1,
// all your other config
}
}