cloudy cloudy

Author Topic: HWS-template (WD34) July version available  (Read 15249 times)

wvdkuil and 1 Guest are viewing this topic.

Offline R_o_B

  • Posts: 341
  • Maple Bay, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Tzouhalem-Maple Bay Weather
Re: HWS-template (WD34) July version available
« Reply #225 on: August 14, 2019, 12:29:00 PM »
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
R_o_B
---
eMail: weather@tzweather.org

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,352
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 76.0.3809.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #226 on: August 14, 2019, 01:12:45 PM »
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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline arnold72

  • Posts: 13
  • Italy
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.142
    • Lorenz
Re: HWS-template (WD34) July version available
« Reply #227 on: August 14, 2019, 01:13:53 PM »
thank you so much Wim

Offline blainec

  • Global Moderator
  • Posts: 438
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 68.0
    • Weather YYC
Re: HWS-template (WD34) July version available
« Reply #228 on: August 14, 2019, 01:59:00 PM »
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
I do not get Time and date in header bar

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,352
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 76.0.3809.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #229 on: August 14, 2019, 02:15:36 PM »
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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bitsostring

  • Posts: 989
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #230 on: August 14, 2019, 06:40:36 PM »
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.

I didn't notice it get any easier  :)
It's meant to be fun. . .

Offline weatherbee

  • Posts: 719
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.100
    • Sherman Ct. Weather
Re: HWS-template (WD34) July version available
« Reply #231 on: August 14, 2019, 07:43:53 PM »
Wim,
The WxSim  advisory is working fine for me.
Tom
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,352
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 76.0.3809.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #232 on: August 15, 2019, 10:24:42 AM »
Wim,
The WxSim  advisory is working fine for me.
Tom
OK  :D
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
« Last Edit: August 15, 2019, 10:26:35 AM by wvdkuil »
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline weatherbee

  • Posts: 719
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Sherman Ct. Weather
Re: HWS-template (WD34) July version available
« Reply #233 on: August 15, 2019, 02:09:34 PM »
Wim,
Thanks.  I changed that and is looking good.
Tom
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Offline R_o_B

  • Posts: 341
  • Maple Bay, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Tzouhalem-Maple Bay Weather
Re: HWS-template (WD34) July version available
« Reply #234 on: August 16, 2019, 04:29:11 PM »
Please test this version of the clock script, after making a copy of the current script.
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:
R_o_B
---
eMail: weather@tzweather.org

Offline bitsostring

  • Posts: 989
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #235 on: August 16, 2019, 05:22:51 PM »
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'.

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

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,352
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 76.0.3809.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #236 on: August 17, 2019, 07:04:43 AM »
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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,352
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 76.0.3809.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #237 on: August 17, 2019, 10:23:01 AM »
. . . shortened . . .
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
See previous post https://www.weather-watch.com/smf/index.php/topic,68132.msg549350/topicseen.html#msg549350
Quote
. . . 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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Online wvdkuil

  • Wim van der Kuil
  • Posts: 1,352
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 76.0.3809.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) July version available
« Reply #238 on: August 17, 2019, 10:44:18 AM »
?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 => http://pwsdashboard.weather-template.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. =>  https://pwsdashboard.com/pwsWD/
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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline bitsostring

  • Posts: 989
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 70.0.3538.102
    • Home Weather Station
Re: HWS-template (WD34) July version available
« Reply #239 on: August 17, 2019, 01:34:52 PM »
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:

Code: [Select]
echo '</span> '.$windunit.PHP_EOL;
# rain
if (isset ($hourlyPrecipProb) )
     {  echo '.<br />';

Apologies: I have modified my original file so I can't give line numbers, but I think it will be obvious.
« Last Edit: August 19, 2019, 10:06:08 PM by bitsostring »
It's meant to be fun. . .