HWS-template (WD34) July version available

it is not that easy as those big numbers with their pixel positioning, were removed for the July release to make user changing of the scripts easier.
But i will take a look.
Wim

As requested and only of interest for those users running the PWS-Dashboard in an iFrame inside another template or website page:
==> test Leuven Home Weather Station (wf version)

Adding the stripall parameter to the URL removes the header, menu and footer.

Maybe also an option when using a spare iPad as an extra console.
But in that case you will loose the menu also.

Wim


w34_index2.php.zip (6.93 KB)

thanks for your interest, it’s not that important, I don’t want to waste your time, thanks anyway, bye

Questions are never waste of time. And all wishes can be added to the “wishlist” topic. :smiley:

Please test the attached version, after you make a copy of the current script.

Wim


uvsolarlux_c_block.php.zip (5.25 KB)

When there is no real weather-alert, most users get a forecast text (from WS or WU) in that alert-box.
There was a PM with the request for a WXSIM forecast text also.

Please for WXSIM users, test this version, after you make a copy of the current version.
The WXSIM forecast texts can be quite long, so the font-size is adjusted based on the length of the text.

Wim


advisory_c_small.php.zip (3.61 KB)

wxsim.jpg

Wim, the use of the WXSIM data seems to work well.

How difficult would it be to replace the ‘Weather alert’ header text with something more relevant to the text in the box, such as, possibly, ‘WXSIM Current Forecast’ (just a suggestion).

After replacing some distribution scripts with new scripts you have posted in previous messages, the date and time appearing on the top right corner border is pushed down by about 5-10 pixels.

Link: Tzouhalem-Maple Bay Weather

All these scripts are posted here as a pre-release-test.
As you can check at the screenshot in the message for the WXSIM forecast, the date/time script is also changed.
It now replaces the ?too heavy? “Weather Alert” text.
Another wish/request: “When using my smart phone the server date-time is not shown, can you . . .”

So it seemed better to move the alerts to the left and have the data time in the header of that box.
The content in the box will explain if it is a forecast or a warning or a alert.
Now the menu, and home button plus the C/F switch and clock are all together visible in the top left corner.
Please test this version of the clock script, after making a copy of the current script.

Wim


clock_c_small.php.zip (2.36 KB)

thank you so much Wim

I do not get Time and date in header bar

Because you are testing the WXSIM / forecast to the alert box. That WXSIM part seems to work OK but those texts are sometimes extremely long.
I have to check the EC forecast also.

All scripts including the adaptions for stripall, clock, alert box to the left a.s.o. which are tested now and in the coming days will be gathered in the next update.

Wim

I didn’t notice it get any easier :slight_smile:

Wim,
The WxSim advisory is working fine for me.
Tom

OK :smiley:
And you are a prime example for stripall , therefor change the link in your metotemplate to https://www.shermanctweather.org/pwsWD/index.php?stripall
I think you do not need the menu, header or footer hen running it in the meteotemplate.

If you also use the clockscript the alertbox will show the server time also.

Wim

Wim,
Thanks. I changed that and is looking good.
Tom

Wim, I did mind having the date/time in the top right corner of the header - I was just pointing out that it was displaying a bit too low with half in the header and the other half in the box below.

I have installed the modified ‘clock_c_small.php.zip’ and having the time/date at the top of the WXSIM forecast window/box is nice. Could you possible add a bit more distance between the time and the date or even add the ‘|’ character as you have between ‘Max Wind | Gust’.

When displaying the WXSIM forecast, you seem to be using the ‘text-justify’ property - since the WXSIM forecast can be long at time, it might be better if the text was not justified.

As for using the Environment Canada forecasts … they are usually very short … compared to the WXSIM forecasts which are more explicit.

By the way, thank you for all the modifications you have made and the modifications you will make… :wink:

I thought Wim had settled on the style shown in his demo site, using Lucida Sans and extra space as requested . . . but obviously not :?

Obviously tested to much versions at the same time :oops:

Wim


clock_c_small.php.zip (2.35 KB)

See previous post HWS-template (WD34) July version available - #237 by pwsdashboard - PWS Dashboard 2012 - Weather-Watch Forum

. . . shortened . . .
When displaying the WXSIM forecast, you seem to be using the ‘text-justify’ property - since the WXSIM forecast can be long at time, it might be better if the text was not justified.
. . . shortened . . .

All texts are “centred” as set by the HTML CSS. Changing to left justify will not create more area for the texts.

The font-size is already adjusted based on the length of the text. I will try to improve that there.
Wim

?stripall
When using that URL parameter, the menu is hidden.
But a small problem arose when testing it.
There are two type of pop-ups, the ones in a frame on top of the current page, works correct with ?stripall

The other one is a link to a new page.
Only used so far for a wind-forecast => htts://pwsdashboard.com/pws07/ wind-block =. forecast
And that does not work as “user-friendly” as it should with ?stripall
The menu, headers and footer are shown as it is a new-page, not a pop-up

So I changed the blocks file and added the windy.com pop-ups for temp, wind, rain and baro. => Leuven Home Weather Station (wf version)
Also removed the new-page for wind, it is still available in the menu.
One new script is added to display the new pop-up.

Wim


windy_FC.zip (4.41 KB)

Just noticed a problem in current conditions block: there is a point (full stop) after the windspeed units in “This hour” Wind-Gust forecast. Suggest deleting the point in w34_util_ccn.php - the last line shown here:


echo '</span> '.$windunit.PHP_EOL;
# rain
if (isset ($hourlyPrecipProb) )
     {  echo '.
';

Apologies: I have modified my original file so I can’t give line numbers, but I think it will be obvious.