Rain Data Missing on Bar Graph Every 31st of Month
- Sperry Russ
- Observer

- Posts: 18
- Joined: Sun Aug 20, 2017 1:07 pm
- Location: Florida
- Station model: Davis Pro 2 Cabled
- Software: CumulusMX V. 3
- Contact:
Rain Data Missing on Bar Graph Every 31st of Month
I just discovered while importing and checking some data that every month that has 31 days the rain data is missing on the bar graph. It shows up below the bar graph in the detailed info.
- Dehatter
- Professional

- Posts: 350
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
Sorry...but for the life of me, I cannot find the graph you show!! LOL
Can you provide the block/plugin where it is?
Tom
Can you provide the block/plugin where it is?
Tom
- Sperry Russ
- 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: Rain Data Missing on Bar Graph Every 31st of Month
As far as I know it is not a block or plugin. Just part of the template.
Go to the menu, then click Weather Station, then click Reports. Under the Monthly Reports choose the month and year, click Ok. Then click on precipitation. Then scroll down the page.
Go to the menu, then click Weather Station, then click Reports. Under the Monthly Reports choose the month and year, click Ok. Then click on precipitation. Then scroll down the page.
- Dehatter
- Professional

- Posts: 350
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
Well by gosh you are right!
Mine does it too.
I have never gone to that report.
Tom
Mine does it too.
I have never gone to that report.
Tom
- Sperry Russ
- 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: Rain Data Missing on Bar Graph Every 31st of Month
I was using that report to check data I was importing.
- Johnny
- Developer

- Posts: 313
- Joined: Sat Aug 19, 2017 10:16 pm
- Location: Watford, Hertfordshire, England
- Station model: Davis Vantage Pro2 Plus
- Software: Meteobridge
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
I've noticed the exact same problem from 9.6mm of rainfall we had on the 31st July 2018, it shows in the total and in the detail below the graph, but no bar appears on the graph.
-
wx_jon
- Advisor

- Posts: 52
- Joined: Tue Aug 29, 2017 8:54 pm
- Location: Seattle, WA, USA
- Station model: Davis Vantage Pro 2 Plus
- Software: weeWX
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
I found the pesky bug. Change line 1163 of pages/station/reportMonthlyLoad.php from
to
It's just a '<=' sign!
There's also another identical change at line 1280 which will add the 31st of the month to the range bar charts on temperature and other variables.
Code: Select all
for($i=1;$i<$numberDays;$i++){Code: Select all
for($i=1;$i<=$numberDays;$i++){There's also another identical change at line 1280 which will add the 31st of the month to the range bar charts on temperature and other variables.
Last edited by wx_jon on Wed Aug 01, 2018 10:23 pm, edited 1 time in total.
- Sperry Russ
- Observer

- Posts: 18
- Joined: Sun Aug 20, 2017 1:07 pm
- Location: Florida
- Station model: Davis Pro 2 Cabled
- Software: CumulusMX V. 3
- Contact:
- Johnny
- Developer

- Posts: 313
- Joined: Sat Aug 19, 2017 10:16 pm
- Location: Watford, Hertfordshire, England
- Station model: Davis Vantage Pro2 Plus
- Software: Meteobridge
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
Hi Jon, thank you - it worked. I've know idea how you found that one character missing in all those lines of code, but it's done the trick.
- Dehatter
- Professional

- Posts: 350
- Joined: Sun Jan 07, 2018 5:11 am
- Location: Matthews, NC, USA
- Station model: Ecowitt WH80
- Software: Ecowitt GW1000
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
All I can say is Nice One!!
Thank you very much,
Tom
Thank you very much,
Tom
- LOBWX
- Forecaster

- Posts: 104
- Joined: Sun Mar 11, 2018 6:43 pm
- Location: Los Osos, CA
- Station model: Ambient WS 1401-IP
- Software: MeteoBridge
- Contact:
Re: Rain Data Missing on Bar Graph Every 31st of Month
Serious Dig Dug.
Thanks wx_jon.
Thanks wx_jon.
Just BE NICE! That's all it takes to be a decent human...