Current Conditions - UV

Post Reply
User avatar
Sperry Russ
Observer
Observer
Posts: 18
Joined: Sun Aug 20, 2017 1:07 pm
Location: Florida
Station model: Davis Pro 2 Cabled
Software: CumulusMX V. 3
Contact:

Current Conditions - UV

Post by Sperry Russ » 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.

Thanks,
Sperry

User avatar
meteocaldas
Language Admin
Language Admin
Posts: 111
Joined: Fri Aug 25, 2017 7:56 pm
Location: Caldas da Rainha, Portugal
Station model: OS WMR-88A
Software: Cumulus
Contact:

Re: Current Conditions - UV

Post by meteocaldas » Sat Dec 16, 2017 5:35 pm

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

User avatar
Sperry Russ
Observer
Observer
Posts: 18
Joined: Sun Aug 20, 2017 1:07 pm
Location: Florida
Station model: Davis Pro 2 Cabled
Software: CumulusMX V. 3
Contact:

Re: Current Conditions - UV

Post by Sperry Russ » Sat Dec 16, 2017 5:57 pm

Yes, that's right I am using Cumulus. I will try customizing the php script.

Thanks for the information.

Post Reply