How can I change or add to the script to show Hi GustSpeedMax rather than or in addition to Hi WindSpeedMax ? I'm more interested in the highest/peak wind gust.
FYI, in composing this reply I noticed major discrepancies in the WU Weather History chart data on the website vs. the CSV file. For example:
Date WU - Wind Max / Gust WU CSV - Wind Max / Gust wsReports Script
6/1 16 / 23 21 / 23 21
6/2 24 / 26 25 / 27 25
6/3 20 / 25 27 / 27 27
6/4 12 / 16 17 / 21 17
6/5 17 / 23 20 / 23 20
6/6 20 / 21 20 / 21 20
The WU CSV file matches exactly what my weather station's peak wind gust displays. I don't know what WU is doing to mess up their website charts and graphs.
Good morning,
English is not my native language, so sometimes it is not clear to me what kind of question one is asking. Is there an error in the scripts or an discrepancy in the CSV data?
Be aware that there are always two versions of the CSV. An "english" one and a "metric" one. Both versions have no decimals. So there can be differences of 1 unit (degree or mph a.s.o.) between reports/csv files/wu websites. As far as I know there is no way to select the units when downloading the data from within a program. So sometimes one gets the CSV in "metric", the next day in "english" units.
As a programmer I have to take the contents of the CSV as is, and convert the values as to how the user wants them to be displayed.
As I understand the first part of your question correctly, you would prefer to have a page with highest windgust compared to highest windspeed? I tried to add such a page. The first column is the reported windgust (label high). As there exist no average windgust, I added the highest windspeed for that day in the second column (label avg) to compare the windgust with.
Make a back-up of the current wsReports1part.php, unzip the attachement and upload the new version of wsReports1part.php to your wsreports folder.
Succes, Wim