Fix - Yearly Report (PDF) showing incorrect Max Temperature

Post Reply
User avatar
MonyMony
Forecaster
Forecaster
Posts: 192
Joined: Sun Aug 20, 2017 12:54 pm
Location: Elkton, Maryland, US
Station model: Davis Pro 2
Software: WeatherCat/Meteobridge
Contact:

Fix - Yearly Report (PDF) showing incorrect Max Temperature

Post by MonyMony » Thu Jan 02, 2020 12:35 pm

If you look at the Yearly Reports there is an option to generate a PDF version. While this is likely a feature that does not get used often, if you do run it you will notice that the Maximum Temperature shows 0.
Before Fix
Before Fix
Screen Shot 2020-01-02 at 7.27.06 AM.png (77.47 KiB) Viewed 5644 times
To correct this open the file reportYearlyPDF.php (found under the ../pages/station directory) and around line 503 look for this line:

Code: Select all

<strong>'.number_format(convertT($data['monthlyMaxTmax']),1).'</strong>
Edit that line so that is becomes this:

Code: Select all

<strong>'.number_format(convertT($data['annualMaxTmax']),1).'</strong>
The problem is the variable being called was listed incorrectly and needs to be changed to 'annualMaxTmax'. Once that is done and saved to your site the PDF yearly summary will work correctly.
After fix
After fix
Screen Shot 2020-01-02 at 7.34.18 AM.png (78.67 KiB) Viewed 5644 times
Hope this is useful to some of you!
Image

User avatar
Jolumarali
Professional
Professional
Posts: 251
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: Fix - Yearly Report (PDF) showing incorrect Max Temperature

Post by Jolumarali » Thu Jan 02, 2020 3:22 pm

Perfect, I found the error without ever solving it.
thanks and best wishes 2020
Image
Station météo amateur Lignerolles
OS : Windows 11 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

Michael
Observer
Observer
Posts: 37
Joined: Sun Aug 19, 2018 3:06 pm
Location: Schwabach, Germany
Station model: TE923
Software: WEEWX
Contact:

Re: Fix - Yearly Report (PDF) showing incorrect Max Temperature

Post by Michael » Sun Jan 12, 2020 10:57 am

I have another problem in yearly report.

In Tab Summary the warmest day in year was 25.07.2019 with temperatur max. 38,7 °C.
In Tab Extrema the warmest day in year was 25.07.2019 with temperatur 28,93 °C.

The same problem with coldest day.....

s. Attachment

Michael
Attachments
T1.JPG
T1.JPG (41.64 KiB) Viewed 5501 times
T2.JPG
T2.JPG (50.77 KiB) Viewed 5501 times
Michael

Image

User avatar
Jolumarali
Professional
Professional
Posts: 251
Joined: Sun Aug 20, 2017 2:06 pm
Location: Lignerolles
Station model: Vantage Vue
Software: WlIP
Contact:

Re: Fix - Yearly Report (PDF) showing incorrect Max Temperature

Post by Jolumarali » Sun Jan 12, 2020 12:33 pm

Hello
These are the coldest and warmest days at average temperatures in Extremes
Image
Station météo amateur Lignerolles
OS : Windows 11 Famille
Vantage Vue
Weatherlink 2.0 (WlIP)
Meteotemplate 18.0 Papaya

https://meteo-lignerolles.fr

José Luis

Post Reply