HWS-template (WD34) July version available

Thanks, Wim.

position 1-4 are included to speed up loading of the page. The alertsblock is normally loaded [b]last[/b] via jquery_GET in a separate PHP process as it can take considarable time to get the alarms.

I should have known there was a reason. . . sorry.

There are 4 blocks + 1 special for the alerts. You can put the alerts in another place in w34_index2.php

Thanks again :slight_smile:

I don’t seem to be picking up the yellow warning for UK004 any more - even using Menu/Extras/Alerts.

Problem at EU or on your webserver?

<div id="positionlast"><!-- $wrn_lang=en  --><!-- module wrnWarningEU.php = version: 0.00 2019-05-12 -->
<!-- warnings and other info goes here  -->
<!-- 
Severe weatherdata (./jsondata/warningUK004) cache times:
        cache time   = 2019-07-10T14:19:51+01:00 from unix time 1562764791
        current time = 2019-07-10T15:39:44+01:00 from unix time 1562769584 
        difference   = 4793 (seconds)
        diff allowed = 900 (seconds) -->
<!-- Severe weatherdata loaded from http://www.meteoalarm.eu/en_UK/0/0/UK004.html  -->
<!-- ERROR Severe weatherdata empty,(http://www.meteoalarm.eu/en_UK/0/0/UK004.html)  could not be loaded  -->
<!-- upped cachetime from 900 to 1800 as no valid data was retrieved -->
<!-- 
Severe weatherdata (./jsondata/warningUK004) cache times:
        cache time   = 2019-07-10T14:19:51+01:00 from unix time 1562764791
        current time = 2019-07-10T15:40:14+01:00 from unix time 1562769614 
        difference   = 4823 (seconds)
        diff allowed = 1800 (seconds) -->
<!-- ERROR no warnings  retrieved, script ends -->
<!-- ERROR no warnings  retrieved, script ends -->
<!-- $darkskydayIcon=rain -->
<div style="padding: 4px;">
Light rain starting this evening.</div>
</div>

So i added it to my test-site http://wd34.weather-template.com/pws07/ and it displays without delay.

I attach a smal test script to see if it is in the script or in the webserver.
Unzip it and run it like http://swanston.maui.co.uk/test_curl.php
It will retrieve the data in a frame (using your browser) and by using curl on your webserver, I attach a screenshot how it should look.
Wim


test_curl.php.zip (2.2 KB)

Wim, I’m so sorry - I forgot that I need to add CURLOPT_PROXY to the script, as discussed back in April #-o

That was such a long time ago. . . :?

Oh, those good old times, I vaguely remember them,
Have fun,
Wim

I believe you’re correct. I manually edited the data file (realtime.txt), and all values look correct on display.
now to find a way to get WeatherCat to report the times without the space or in 24 hour format.

I’ll continue to look as well…

Thanks!

Ken

I changed the script and tested it with your data, all look OK.
Please check this post HWS-template (WD34) July version available - #113 by pwsdashboard - PWS Dashboard 2012 - Weather-Watch Forum

There are more weather-programs which can do “am pm time” or using a “comma” as a decimal.
So the livedata script will be adapted every time we find something new. But your “am pm”-problem should be gone when you use the livedata from that message.
Please test it,

Wim

Earthquake magnitudes to 2 decimal places are not centred. . .

I’ve replaced $magnitude with round($magnitude,1) in line 144 of earthquake_c_block.php, think that should work.


earthquake.png

Working fine now, and working even better since I changed the timezone in line 47 from Europe/Brussels to Europe/London. Now the alarms come in BST instead of CET :slight_smile:

You got a PM
Wim

YES!!! It works! Thanks for the quick fix… sorry I was delayed in getting it up and running.

Ken

Hello
I have the latest July version running at https://vancamweather.com/pwsWD/
All seems well except the current conditions block.
The sky conditions are current with KPDX metar however, I can’t figure out where the other data
within the block comes from and how to correct it.
Thanks
Larry

That pwsWD is not the July release. Seems to be the April release.
Always do a full install for the new releases, at least until the December release.

All seems well except the current conditions block. The sky conditions are current with KPDX metar however, I can't figure out where the other data within the block comes from and how to correct it. Thanks Larry
The current conditions you selected are from your METAR. The other part of the information comes from [b]the 1 hour DarkSky forecast [/b] As there is no API key the old cached information is shown. And that is in Dutch. Start easyweather-settings. Enter a DarkSky API-key Set the DarkSky language to your language And the DarkSky forecast will be available for the current conditions block.

If all is OK:
Download the latest version from http://wd34.weather-template.com/
Rename your current pwsWD website folder to pwsOLD
Upload the newly unzipped pwsWD folder
Copy the w34-settings1.php from pwsOLD to pwsWD
First run pwsWD/easyweathersetup.php and check all default values, they are blue

Succes, Wim

Wim
Thanks for the help.
Updated to current version.
2 minor issues.
When I click on “nearby” under current conditions, it shows
EBBR instead of KPDX.
When I click on webcam, the larger display is blank.
Thanks
Larry
https://vancamweather.com/pwsWD/index.php

Showing KPDX now. . . maybe EBBR was cached.

I attach a working version , it stretches the image to use the whole area.
You can customise to either stretch the image or keep height/width ratio

Wim


webcam_popup.php.zip (1.87 KB)

Hello,
I noticed this problem with the UV block, with the translation coming out of the rectangle, can something be done?
Thank you
site: https://stazione.meteosantangelo.it/pws07/


UV.jpg

Although the problems are minimized in this version, there will always be translation texts which do not fit. Weather-texts are often more compact in English then in other languages. In this block the room for that text is nearly at its maximum.

If you do not want to change the php script yourself, you should change the translated text and remove the word solare
It is for the visitor clear what the values are anyway.

Wim


largetext.jpg

I have installed this fine template.
My weather station is a WS-1001 clone that sends the data to WU every 16 seconds without using a computer. I have a new API key from WU and get live data from there.
w34_cron_stationcron.php runs every 5 minutes.

But I have some mystifications.

  • The current data is displayed correctly, but the max and min values ​​for both wind and temperature look mysterious.
    It appears that it is always the minimum value displayed for both max and min for temperature. What numbers are displayed for max and minimum wind I cannot figure out.

  • I selected 1 decimal for temperature display. I also get 1 decimal, but the temperature is always rounded to the nearest whole number, so the decimal always shows zero. (If I switch to Fahrenheit, a decimal will be displayed correctly).

  • If I use Chrome browser, pop-ups for displaying e.g. “Wind today” fills the whole screen and the close button does not work, so I can only go back to the main screen with the browser’s left arrow. When I use Firefox, it works normally.

Is that something that can be arranged?
There is no rush. The weather is the same, no matter what my weather station reports.

Link to template
http://weather.inaogmogens.dk

The template can not display more information than WU gives us.
Please check the debug-console here => "weather.inaogmogens.dk"
Second row shows the file-contents as loaded from WU at the left dropdown-box:
“./jsondata/wucom.txt” => last measurement =>current temp = 20 degrees
“./jsondata/wucom_day.txt” => todays high-lows
As you can see the three temp fields contain the same data, 16 degrees

You can check all the (recalculated) values we use in the template right dropdown-box: “Live data values”
I assume there is a small hick-up in the WU data as other stations are reporting normal values at the moment

- I selected 1 decimal for temperature display. I also get 1 decimal, but the temperature is always rounded to the nearest whole number, so the decimal always shows zero. (If I switch to Fahrenheit, a decimal will be displayed correctly).
The temperature WU gives us is without any decimals. That is a huge problem for all users. Also their new dashboard has the same problem. When you use the F button the template scripts do the recalculation and round it to the 1 decimal you want. But when loading the data from WU you should better use no decimals for temp.
- If I use Chrome browser, pop-ups for displaying e.g. "Wind today" fills the whole screen and the close button does not work, so I can only go back to the main screen with the browser's left arrow. When I use Firefox, it works normally. Is that something that can be arranged?
I can not reproduce that using Chrome on your website. I myself use Chrome 95% of the time and do all development and testing with it. All graphs should work the same way as they are using the same script and the same pop-up code. I attach a screenshot of the "Today" graph using Chrome. QUESTION: Is it the daily-graph or the forecast (4th pop-up) by wind?
There is no rush. The weather is the same, no matter what my weather station reports. Link to templatehttp://weather.inaogmogens.dk
Thanks for using the template, and i will check a few times why your min-max temp values are all equal.

Wim

P.S. comparing your weather-values in the WU-uploads with those on your WU-dashboard there are more errors in the upload, also the pressure min-max are both equal to the min value