cloudy cloudy

Author Topic: HWS-template (WD34) beta test July version  (Read 4683 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #30 on: June 09, 2019, 08:57:16 PM »
Hi Wim,
You have PM.
Brgds,
Oebel
Attached correct formatted distance number.
There is only an alert when the age is less then 600 seconds

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 wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #31 on: June 09, 2019, 09:14:49 PM »
Wim, when is the WXSIM parser 'plaintext-parser.php' run, meaning at which stage during the loading of all the other templates? Is the WXSIM parser 'plaintext-parser.php' run before the 'w34_util_wxsim.php'? If yes, then the value of the path to the 'plaintext.txt' data file set in 'plaintext-parser.php' template should be passed on to the 'w34_util_wxsim.php' template and not be fixed in the 'w34_util_wxsim.php' template, thus preventing the current situation, that is 'assuming' that a file/template is in the root directory when that file/template can/could be in a totally different directory.
w34_util_wxsim.php serrvices all wxsim blocks/popups,
it is loaded by all wxsim scripts as the first include
and it then
=> compares the age of plaintext.txt versus the age of the cache arrays
==> if a new file arrived
===> it loads the parser
===> and saves Ken True's arrays to the cache
==> if no new file arrived it loads the arrays from the cache
=> and  returns the arrays to the calling script
Then the normal scripts can print what they need.
Quote
The WXSIM parser 'plaintext-parser.php' needs to be edited in order to provide the required information for its proper operation -
Yes it should be edited as it is the exact copy of Ken True's script. I stopped making small changes in someone else scripts as it always resulted in large problems
Quote
the 'w34_util_wxsim.php' template should not have be edited.
As w34_util_wxsim.php starts before the parser they both should now the exact location to check the filetime and  to read the file
Quote
Note: On all the systems I have operating on my home/office server as well as my online server, no template, no data file is place in the root directory - for me, the root directory is 'sacred' and not to be used for any purposes except for an .htaccess routing file.
I agree with that 100%. That is why I have all my template/scripts in separate folders.

So I will make clear in the documentation that there are 2 locations to check.
As most wxsim users upload to the root, I leave the current relative addressing as is.

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 wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #32 on: June 09, 2019, 09:16:21 PM »
One thing I noticed with this beta on 12 hr. clock it doesn't change from am to pm till a screen refresh is done.
https://www.shermanctweather.org/pwsTEST/index.php
Tom
Thanks for finding that, it has been the same script form months.
The 24 hour clock can not have that problem. I will test tomorrow around noon.
If possible can you test this "enhanced" version.

Wim
« Last Edit: June 09, 2019, 09:33:25 PM 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 oreitsma

  • Posts: 559
  • Assen, Netherlands
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.169
    • Weerstation Assen
Re: HWS-template (WD34) beta test July version
« Reply #33 on: June 10, 2019, 08:38:39 AM »
Attached correct formatted distance number.
There is only an alert when the age is less then 600 seconds

Wim

Hi Wim,

The problem is not solved.
A storm warning is displayed when the distance is hundreds of kilometers.
https://www.weerstation-assen.nl/actueel-weer2.php

Brgds,
Oebel



Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #34 on: June 10, 2019, 09:04:07 AM »
Hi Wim,

The problem is not solved.
A storm warning is displayed when the distance is hundreds of kilometers.
https://www.weerstation-assen.nl/actueel-weer2.php

Brgds,
Oebel
I checked the scripts.
1.  advisory box displays a message when
1.1  the age of last-strike = less then 500 seconds
1.2 and there are no other more important messages

2. A notification is always shown when the age of last-strike = less then 700 seconds

On both cases the distance is shown but it is not used to filter the messages.
===
I only have a Weatherflow device and IMHO that device only signals strikes when they are close by
===
I received the scripts as is, no explanation.

I would be happy to alter the scripts if there is a description of the algorithm to use.

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 wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #35 on: June 10, 2019, 12:00:43 PM »
New beta version 2019_06_10 available at http://wd34.weather-template.com/beta.php

Includes all discussed changes.

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 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) beta test July version
« Reply #36 on: June 10, 2019, 02:30:09 PM »
So I will make clear in the documentation that there are 2 locations to check.
As most wxsim users upload to the root, I leave the current relative addressing as is.
Wim, rather than asking the user to check that the two locations be edited to point to the same location, could you not ask for the location of the 'plaintext.txt' data file in the main configuration template (as you ask for the path to the realtime data file) once the user has selected to use WXSIM when that product has been installed?
R_o_B
---
eMail: weather@tzweather.org

Offline weatherbee

  • Posts: 719
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Sherman Ct. Weather
Re: HWS-template (WD34) beta test July version
« Reply #37 on: June 10, 2019, 04:29:37 PM »
Wim,
I tried the new clock_c_small.php but now it stays am even after a screen refresh.
Seen at https://www.shermanctweather.org/pwsTEST/
Tom
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #38 on: June 10, 2019, 04:37:53 PM »
Wim,
I tried the new clock_c_small.php but now it stays am even after a screen refresh.
Seen at https://www.shermanctweather.org/pwsTEST/
Tom
This one should do.
I tested for midnight last night, not yet for noon.
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 weatherbee

  • Posts: 719
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Sherman Ct. Weather
Re: HWS-template (WD34) beta test July version
« Reply #39 on: June 10, 2019, 04:52:11 PM »
Wim,
That one works with a screen refresh.  I'll let you know tomorrow if it changes automatically.
Tom
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Offline Bunty

  • Posts: 212
  • Stillwater, OK
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Stillwater Weather
Re: HWS-template (WD34) beta test July version
« Reply #40 on: June 11, 2019, 06:40:05 AM »
It looks good from my end for the most part.  The only problem I find is that the nearby metar popup is not nearby.  It's Brussels.  https://stillwaterweather.com/pws/index.php
« Last Edit: June 11, 2019, 08:35:44 AM by Bunty »

Offline bitsostring

  • Posts: 977
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: HWS-template (WD34) beta test July version
« Reply #41 on: June 11, 2019, 08:33:16 AM »
The only problem I find is that the nearby metar is not nearby.  It's Brussels. 

Have you entered your nearby airport details in easyweathersetup, and your CheckWX API?
It's meant to be fun. . .

Offline Bunty

  • Posts: 212
  • Stillwater, OK
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
    • Stillwater Weather
Re: HWS-template (WD34) beta test July version
« Reply #42 on: June 11, 2019, 08:40:27 AM »
Have you entered your nearby airport details in easyweathersetup, and your CheckWX API?

Oops, I got down the metar code, but forgot I had a CheckAPI code.  It's good now.  Thanks.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #43 on: June 11, 2019, 08:43:20 AM »
It looks good from my end for the most part.  The only problem I find is that the nearby metar popup is not nearby.  It's Brussels.  https://stillwaterweather.com/pws/index.php
I can not check your settings but with the debug console one can check all data files => https://stillwaterweather.com/pws/w34_module_test.php

Your ./jsondata/metar34.txt  is not refreshed (an age of 12 hrs 16 min 14 seconds)  so you probably not set the api, as @bitsostring also indicated

===

Your data file is entered as  "https://stillwaterweather.com/wx/clientraw.txt"
That will result in multiple external file loads every minute.
Always try to use relative addressing for files on the same webserver.
You should change that to  "../wx/clientraw.txt", that will use less overhead.

===
I see a new problem, thanks for that.  #-o
The nws alerts do not nicely fit in the box.

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 wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #44 on: June 11, 2019, 08:51:48 AM »
@Bunty

Could you please test this version so I can make sure that the nws-box will fit now?
But always make a copy first of the current script first!

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/

 

cumulus