Rain block

Post Reply
giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Rain block

Post by giordolo » Fri Oct 20, 2017 10:27 pm

0 today is 0%, not 100% (see attach)
Cattura.PNG
Cattura.PNG (9.82 KiB) Viewed 8357 times

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Rain block

Post by Jachym » Fri Oct 20, 2017 10:29 pm

It is ok.

If in your database, rain for every Oct 20/21 is 0, it means that the highest rain ever on this day was 0mm. And 0 mm of 0mm is technically 100%.

giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Re: Rain block

Post by giordolo » Sat Oct 21, 2017 6:57 am

it is completely misleading to have a full circle for today when the rain is 0...... (and also, something divided by 0 is a math error, not 100).
Also note that the second circle is working fine: 0 this month, so 0. Why 0 today is 100?
is it possibile to have the absolute value without % comparison?

giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Re: Rain block

Post by giordolo » Sat Oct 21, 2017 7:33 am

Solved with a workaround: Show comparison to average period if available. = FALSE
Cattura.PNG
Cattura.PNG (9.19 KiB) Viewed 8336 times

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Rain block

Post by Jachym » Sat Oct 21, 2017 8:25 am

giordolo wrote: Sat Oct 21, 2017 7:33 am Solved with a workaround: Show comparison to average period if available. = FALSE
Cattura.PNG
It is not a workaround but an option in the settings :D

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: Rain block

Post by nikokara - BANNED » Sat Oct 21, 2017 9:13 am

Hi giordolo

How do you see the persentage?

In my rain block i see this
rain_block.jpg
rain_block.jpg (14.76 KiB) Viewed 8323 times
niko

giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Re: Rain block

Post by giordolo » Sat Oct 21, 2017 10:12 am

Jachym wrote: Sat Oct 21, 2017 8:25 am
giordolo wrote: Sat Oct 21, 2017 7:33 am Solved with a workaround: Show comparison to average period if available. = FALSE
Cattura.PNG
It is not a workaround but an option in the settings :D
ya you are right. It is still not comprehensible to me the why for the day 0 is 100% and for the month 0 is 0%

giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Re: Rain block

Post by giordolo » Sat Oct 21, 2017 10:14 am

nikokara wrote: Sat Oct 21, 2017 9:13 am Hi giordolo

How do you see the persentage?

In my rain block i see this

rain_block.jpg
http://www.pusterla.net/template/indexDesktop.php

User avatar
nikokara - BANNED
Advisor
Advisor
Posts: 70
Joined: Wed Sep 13, 2017 5:05 pm
Station model: ng265 (Fine Offset)
Software: Cumulus

Re: Rain block

Post by nikokara - BANNED » Sat Oct 21, 2017 10:38 am

ok i found why i see this.

if(count($averageRains)<364 || !$usePercentages)
if(count($averageRains)>=364 && $usePercentages)
:)
niko

Post Reply