HWS-template (WD34) beta test topic

Wim,
Changing that line fixed the WxSim forecast.
Tom

Maybe this is just one time strange glitch. I will watch it to see if it happens again

Added the “new” WeatherUnderground forecast to be included in the upcoming release. http://wd34.weather-template.com/pwsTEST/

The new API-keys are not yet available (only a few developers got one) until all problems are ironed out in the “how to obtain your key” process. As soon as one has got the e-mail and generated a NEW WU-api-key, sent me a PM for the download.

Based on the mails from WU it will be early next week until a new beta will be available to all.

Small problems with the WU data:

[ol][li]Missing description of some fields, f.i. iconCodeExtend[/li]
[li]The 3 temperature fields: temperature temperatureHeatIndex temperatureWindChill seems to be unrelated to each other, example for a night and the following day in Celsius :
temp 0 heat 7 chill -1
temp 13 heat 12 chill -1[/li]
[/ol]
Need to study the documentation if the explanation is hidden somewhere.

With the API-key one can also download 7 days of history, in JSON format. Could be used for the graphs also, but seems to have no advantages yet compared to the .CSV downloads from WU.

Wim

The METAR-data layout changed, the humidity field is now an array.
Attached new version ONLY for the beta test pwsTEST, not to be used for the normal pwsWD version.

Wim


metar_load_funct.php.zip (3.66 KB)

I generated a [color=blue]XREF ( Cross Reference list )[/color] of the weather-icons versus the scripts they are used and the descriptions from those scripts.
That should help to find the wrong icons < > description in the future.

The forecast/current-condition scripts used have also their individual files

[ul]
[li]DS → [color=blue]DarkSky[/color][/li]
[li]EC → [color=blue] Environment Canada[/color][/li]
[li]MT → [color=blue]Metar[/color][/li]
[li]PP → [color=blue]WXSIM plaintext parser[/color].[/li]
[li]WD → [color=blue]WeatherDisplay[/color][/li]
[li]WU → [color=blue]WeatherUnderground[/color][/li][/ul]

The XREF-pdf uses the original weather34 icons. The individual pdf’s use another set of icons I am currently testing with.

Wim

I have an error occasionally with metar_load_funct.php as per pic attached…

regards
Tim
http://weather.skybase.net/pwsTEST/index.php


weather-error.PNG

I just opened the metar popup and I noticed an error

see attachment

https://weatheryyc.com/pwsTEST


3 messages up in this topic, they changed the layout of the JSON. New script is there.

I just downloaded a newer script that I found on here. I get the same error

:oops: This was another error in the script. It did not check the absence of wind, forget to put this version online.
This version works better, has also wind in m/s.
Wim


metar_load_funct.php.zip (3.7 KB)

good now. :smiley:

Thank you

Hi
I have the beta version running on my synology 214 but it is not accessible from the outside world but the metar popup has given an error message between the dew and humidity when the humidity is 100% appears to refer to line 92 of the metar_popup.php see attached
has the latest metar_popup.php on and have put todays metar_load_funct.php file on in place of the previous update


=D> Thanks for spotting this one.
Now 100% will display correctly,

Wim


metar_popup.php.zip (5.8 KB)

Final Beta version for the april release can be downloaded from http://wd34.weather-template.com/beta.php
Thanks for all help,
Wim

Hello
I’m noticing a difference between the last beta and the normal version in the “Moon phase”
The dawn Moon of tomorrow has 2 different fliers, in one score at: 4:44 in that test it marks: 5:25
is a mistake?
Thank you

pws: https://stazione.meteosantangelo.it/pws/
Test: https://stazione.meteosantangelo.it/pwsTEST/

Maybe I am looking at the wrong place? But I dot not see the same information you mention.
January version and beta are the same for today = March 2 rise 04:44 moonset 13:56
January version has no data for March 3

The main page of the beta version displays “upcoming data” so it says “MoonRise 05:25 tomorrow

The January version displays “Moon rise 04:44” which could be considered incorrect as it should have been worded “Moon rose 04:44” bacause the displayed time is in the past. Strange thing is that for sun-rise/set we are accustomed to a sunrise in the past when it is daylight.
But not for the moon, there the times should be about future rise/set, because we can not see were the moon is during daytime.
At least that was how it was explained to me. All times for sun/moon - rise/set are future times and have the word “tomorrow” added or the exact date.

You can check the moonrise/set for your place (or for any other place) : Moonrise, Moonset, and Moon Phase in Padua

Wim


Wim, could you make the height of the window inside the ‘Metar Aviation Weather Data’ a little bit higher as see in the included screenshot. Thanks.


The new icons have same width/height so this one pushes the text to low.
Change the width of 118px to 100px in line 184 in metar_popup.php

   <td><img style="vertical-align: bottom; width : 118px;" rel="prefetch" src="'.$sky_icon.'" alt="'.$sky_desc.'"></td>

to

   <td><img style="vertical-align: bottom; width : 100px;" rel="prefetch" src="'.$sky_icon.'" alt="'.$sky_desc.'"></td>

Should do the trick.

Wim

Ok now I understand.
Thanks Wim!

I really like your template. Now that you have the new wunderground forecasting working it is perfect.

I am having one problem with the wunderground forecast. I like 4 days forecast but I am getting no precipitation chance percentage. When I run w34_module_test.php and run forecastWUblock.php the %'s are there but not on the main page.

My website is http://vertical.skisantafe.com/waptx/pwsTEST/. My data is from South Dakota in case your wondering.

Edit: I went to wunderground and got a new api key right after I setup this beta. I’ve now figured out that the forecast is Dark Sky not WU. I don’t know why I’m not getting WU.