HWS-template (WD34) beta test topic

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.

You have to select in easyweathersetup that you want to use WU as forecaster. You could also select WXSIM if you have that product.

Wim


wu_select.jpg

I’m an idiot. I looked at that and just couldn’t see it.

Thanks

I was looking at the production version of w34_livedata.php and noticed that average and max wind speed are both defined using clientraw #158, which is “10-minute average wind speed (kts)”

$weather[“wind_speed_avg”] = convert_speed ($wd[158],$from,$to); and
$weather[“wind_speed_max”] = convert_speed ($wd[158],$from,$to);

I checked and it is still the same in beta. Maybe it doesn’t matter because we don’t show max wind speed anywhere, do we? Max gust shown uses CR#71.

But I would prefer the beta to make it clearer that the small “Average” value shown at top left of the Wind|Gust block is the 10-minute average, as is done in production.

Hi Wim,

There is still a probem with metar_load_function.php

regards

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


metar-error-april-beta.PNG

The airport uploaded a very short metar,

YSRI 042000Z AUTO 00000KT 9999 // OVC015 21/19 Q1017

but still no reason for the provider to miss some info.

I will add debugging code tomorrow and see if it happens again. It is fine that we still have full error reporting, otherwise this was not seen.

Wim