HWS-template (WD34) July version available

Please test attached script.

P.S. I have already changed units “KMs” to “km” in the attached screenshots of my block.
. . . shortened . . .
If you changed the script for that: It is easier and more future-proof to use the translation files for that.

Wim


earthquake_c_block.php.zip (3.37 KB)

I’ve installed a webcam and downloaded the zip file and updated the website.

No longer is there a blank screen on the pop up when viewing with MS Edge or Chrome on a Windows PC but there’s still a blank page when using Safari or Chrome on an iPad or iPhone (and it’s not a cache issue if that’s relevant).
http://www.collapit.org.uk/pwsWD/

Thanks as ever for your hard work, Wim

This is not a PWS-dashboard problem, it is a http://collapit.ddns.net:8081/ problem.

Using an iPad: I tested with your site and with Leuven Home Weather Station (wf version) (also uses WU + webcam)

Your site does not display the webcam image most of the times as the image from http://collapit.ddns.net:8081/ never fully arrives, the browser is still trying to load data, even if the data is “almost” there.
I opened http://collapit.ddns.net:8081/ on the iPad it never shows the received data.
On a mac it shows the image but still tries to fetch more data.

===
I think you should change is in such a way that the camera should not be accessed for the image.
The image should be uploaded every so many minutes and then accessed from the website as a normal image.

Wim

That works ok, thanks Wim.

If you changed the script for that: It is easier and more future-proof to use the translation files for that.

I only changed the translation files!

=D>

Please test attached script

(But I haven’t worked out why max wind time was still showing 14.20.)
All OK this morning :slight_smile:
Around midnight there is a lot of housekeeping for a weather-program: min/max today, yesterday values, optional min/max month/year a.s.o.
So it is often that until some time ( 1/2 hour) not all values are initialized. The times will be correct after the first non-zero measurements.

Wim


wind_c_small.php.zip (2.31 KB)

Sorry, it’s not right when I really look at it: the depth is always reported and shown in km, so the depth units have to stay in km whether the distance is shown in miles or km.

:oops: This one should be correct, Wim


earthquake_c_block.php.zip (3.39 KB)

Done and thank you for the solution Wim

Seems to work OK, at least the gust does not disappear altogether. Screenshot wind.png taken at 0001.

Around midnight there is a lot of housekeeping for a weather-program: min/max today, yesterday values, optional min/max month/year a.s.o. So it is often that until some time ( 1/2 hour) not all values are initialized. The times will be correct after the first non-zero measurements.

I guessed as much when I said

It seems that neither %maxavgspdt% - "maximum average wind speed time" - nor clientraw [135] - "max gust today time" - is reset at midnight.

Waited until 0015 - wind15.png - but no change to times. It’s past my bedtime :slight_smile:


wind.png

wind15.png

Hi Wim

Under the Current conditions This Hour it has the temp at 30c but the actual temp is 10.7c, I am not sure where that temp is coming from.

http://www.mangawhaiweather.co.nz/pwsWD/index.php

Thanks
Tony

There are two parts: The top part is, in your case, the current conditions from WeatherDisplay.
The bottom part (with the 30C) is the current “this” hour forecast, from DarkSky.
Add a DarkSky key and that information will also be current,

Wim

There are two parts: The top part is, in your case, the current conditions from WeatherDisplay. The bottom part (with the 30C) is the current "this" hour forecast, from DarkSky. Add a DarkSky key and that information will also be current,

Wim

Thanks Wim.

Today I have sent the following to WU.
Exciting if there is a solution.

Hello

I have a weather station
IDKFREDE2
which sends data to WU.

I have found some mystifications.

When I want to get data for this year here
https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IDKFREDE2&graphspan=year&format=1
stops data by July 25.

If I want to get data for August here
https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IDKFREDE2&graphspan=month&format=1
I get a file with no data.

Data for July 25 as here
https://www.wunderground.com/dashboard/pws/IDKFREDE2/graph/2019-07-25/2019-07-25/daily
says there is no data. This is mysterious as both maximum and minimum values are present.

Year and month data should be used in this template
http://weather.inaogmogens.dk

Can you fix it so I can retrieve my data again?

(I know I have problems with correct temperature display, but shouldn’t that be the cause of these problems?)

Kind regards
Mogens

normally re uploading the data to WU would sort it
you do not say what weather station you have or what software you use

Data is present at WU - except for July 25.
See
https://www.wunderground.com/dashboard/pws/IDKFREDE2/graph/2019-08-4/2019-08-4/daily
Scroll down and click “Previous”
WU simply does not send data on request.

WU knows both weather station and software.
Click the round “i” next to “IDKFREDE2” at the top of the same page.

This is not a HWS or script problem on our side.
This is a problem on the WU/TWC site where the two databases, old-WU and new-TWC are not always correctly synchronised.

Check these and other discussions on the wx-forum:

and on the WU forum:
https://apicommunity.wunderground.com/weatherapi/topics/huge-amount-of-data-is-missing-on-pws-dashboard

I am 100% sure that they will solve the missing data for the API-json scripts corrected as they need that to populate the dashboard.

If hope they have time and resources enough to get the old .csv fully operational again.
But if we have to abandon the .csv, it is not a big deal for the HWS-template type scripts.
The .csv files are only used for the graphs and we should then use the 7 day API-json history and cache the data to obtain longer periods.

For now WU is slowly improving, we even have the decimals for our data back!
Wim

@ ONLY for WU - uploaders!
There were no problems during testing and WU itself is still using that “&numericPrecision=decimal” in their API-calls for the dashboard.
So I attach a folder, with the old version (just for safe keeping) and the current version of w34_load_files.php

Wim


wu_daily2.zip (18.6 KB)

I was looking at an American site today and could not help noticing that am/pm was treated differently in small temp and wind blocks?


am_pm.png

Wim, does WD34 interpret the barometer setting that comes from the Weewx Cumulus realtime.txt file. It always appears high compared to the reading on WU and on my Acurite display. I realize this is probably a Weewx problem, but wanted to see if anyone has experienced the same problem.

My weewx site is https://klephtic-math.000webhostapp.com/index.php and my WU site is https://pendulous-here.000webhostapp.com/