Rain block
-
giordolo
- Observer

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Rain block
0 today is 0%, not 100% (see attach)
- Jachym
- 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
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%.
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

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Re: Rain block
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?
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

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Re: Rain block
Solved with a workaround: Show comparison to average period if available. = FALSE
- nikokara - BANNED
- Advisor

- Posts: 70
- Joined: Wed Sep 13, 2017 5:05 pm
- Station model: ng265 (Fine Offset)
- Software: Cumulus
-
giordolo
- Observer

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Re: Rain block
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%
- nikokara - BANNED
- Advisor

- Posts: 70
- Joined: Wed Sep 13, 2017 5:05 pm
- Station model: ng265 (Fine Offset)
- Software: Cumulus
Re: Rain block
ok i found why i see this.
if(count($averageRains)<364 || !$usePercentages)
if(count($averageRains)>=364 && $usePercentages)

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