Page 1 of 1

Current Conditions - UV

Posted: Sat Dec 16, 2017 5:18 pm
by Sperry Russ
I cannot find a way to not display the UV in the Current Conditions Block it is always showing 0.0 because I do not have a UV sensor.

Thanks,
Sperry

Re: Current Conditions - UV

Posted: Sat Dec 16, 2017 5:35 pm
by meteocaldas
Sperry Russ wrote: Sat Dec 16, 2017 5:18 pm I cannot find a way to not display the UV in the Current Conditions Block it is always showing 0.0 because I do not have a UV sensor.
Hi Sperry,
Most probably you are using CUMULUS, right?
I already faced that problem and the reason is the following:
Cumulus always sends UV=0.0 in realtime.txt, (with or without UV sensor) so there is no way for MT to know if that value is coming from a sensor of if it is just Cumulus reporting "no sensor".
The only way to solve the problem is to customize your current.php script, by quoting (or deleting) the lines where it displays the UV icon and the 0.0 value. That's how I solved it.
Unfortunatelly, as Jachym already explained before, there is not the possibility to include an MT option where Cumulus users could choose YES or NO to determine if that 0.0 is from a sensor or not.

Image

http://www.meteocaldas.com/mtp

Re: Current Conditions - UV

Posted: Sat Dec 16, 2017 5:57 pm
by Sperry Russ
Yes, that's right I am using Cumulus. I will try customizing the php script.

Thanks for the information.