I'm not sure why you feel the need to add this function .. that function already exists in CU-defs.php as CU_RainRateIcon(). It's enabled by Settings-weather.php entries # Weather Station sensors and options for dashboard
$SITE['conditionsMETAR'] = 'LEZL'; // set to nearby METAR for current conditions icon/text
# comment out conditionsMETAR if no nearby METAR.. conditions icon/text will not be displayed
#
$SITE['overrideRain'] = true; // =true then rain rate will set rain words instead of METAR rain words
# // =false - no change to METAR rain words (station rain rate not used)
Did you find that the built-in function was not working on your site?
Thanks for your reply. On my website, when it is raining, the image and text showed cloudy, or very cloudy.
According to your template, if the rain gauge of the weather station detects rain, said image and text should indicate in real time a rain image and rain text. It is right? The configuration seems correct.
Tomorrow it will rain in my area, I will check if this is true, otherwise I would make a capture.
Thank you very much for your time, I will tell you.