cloudy cloudy

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

griffo42 and 1 Guest are viewing this topic.

Offline Martan

  • Posts: 7
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.80
Re: HWS-template (WD34) beta test July version
« Reply #15 on: June 08, 2019, 12:45:48 PM »
Hi,

Also did the upgrade to the beta version.
I do not see the option to refresh the data every xx seconds. (Nice for wind,uv,solar)

Also the metarbox is setup good, but on click nearby it gives "EBBR Brussels" and in the same windowbox earthquacke.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,191
  • 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 #16 on: June 08, 2019, 01:20:04 PM »
Hi,

Also did the upgrade to the beta version.
I do not see the option to refresh the data every xx seconds. (Nice for wind,uv,solar)

Also the metarbox is setup good, but on click nearby it gives "EBBR Brussels" and in the same windowbox earthquacke.

Without the URL to your website there is not much I can do to inspect those things.

Be aware that you use a beta version.  The whole purpose of a beta program is to find remaining errors.
Do not use this version for production as in a few weeks the official release version will be available.
 
All blocks  have different refresh-times. Those times are set in w34_blocks.php.  Example
Code: [Select]
$script = 'temp_c_block.php';
$blck_ttls[$script]     = lang('Temperature').' °'.$weather['temp_units'];
$blck_rfrs[$script]     = 110;
The temperature block is refreshed every 110 seconds.

===

The nearby metar airport code is set in easyweather-setup. You need also to set the API key for that nearly at the bottom.

Wim

Offline mldenison

  • Posts: 292
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 74.0.3729.169
    • York, Pennsylvania USA Weather
Re: HWS-template (WD34) beta test July version
« Reply #17 on: June 08, 2019, 01:23:56 PM »
I figured out the missing 'Menu - Settings' in the header.

I have an add-on that displays current selected stocks at the top of Chrome pages.  It pushes down the page.  In the April version, the pwsWD header is below the ticker bar.  In the July release, while the page is pushed below the ticker bar, the 'Menu - Settings' links remain under the ticker bar.  Here's with/without the ticker bar.

pwsWD: https://www.m82a1.us/pwstestWD/index.php



Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,191
  • 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 #18 on: June 08, 2019, 01:49:40 PM »
I figured out the missing 'Menu - Settings' in the header.

I have an add-on that displays current selected stocks at the top of Chrome pages.  It pushes down the page.  In the April version, the pwsWD header is below the ticker bar.  In the July release, while the page is pushed below the ticker bar, the 'Menu - Settings' links remain under the ticker bar.  Here's with/without the ticker bar.

pwsWD: https://www.m82a1.us/pwstestWD/index.php
I have no fast solution for that.
All 1276 lines of the page are correctly contained in the < body > tags
No html errors: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.m82a1.us%2FpwstestWD%2Findex.php

To test and see what is happening, I need to know what add-on you are using.

Wim

Offline R_o_B

  • Posts: 316
  • 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 #19 on: June 08, 2019, 02:18:57 PM »
Wim, just curious...

Why would my WXSIM forecast indicates that it is 'Offline' - the WXSIM forecasts are automatically produced every six (6) hours, thus, there is no reason for showing the WXSIM forecast as being offline.

Temporary web link: Tzouhalem-Maple Bay Weather
R_o_B
---
eMail: weather@tzweather.org

Offline niko

  • syzygy
  • Global Moderator
  • Posts: 28,041
  • Crystal Ball broken! Please post the URL.
  • Northern California, U.S.A.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 74.0.3729.169
Re: HWS-template (WD34) beta test July version
« Reply #20 on: June 08, 2019, 02:30:14 PM »
Wim, just curious...

Why would my WXSIM forecast indicates that it is 'Offline' - the WXSIM forecasts are automatically produced every six (6) hours, thus, there is no reason for showing the WXSIM forecast as being offline.

Temporary web link: Tzouhalem-Maple Bay Weather

I think that will be related to "$filemtime == == Wed, 31 Dec 1969 16:00:00 -0800", in other words it isn't correctly reading the timestamp of the file.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,191
  • 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 #21 on: June 08, 2019, 03:56:49 PM »
Wim, just curious...

Why would my WXSIM forecast indicates that it is 'Offline' - the WXSIM forecasts are automatically produced every six (6) hours, thus, there is no reason for showing the WXSIM forecast as being offline.

Temporary web link: Tzouhalem-Maple Bay Weather
I think that will be related to "$filemtime == == Wed, 31 Dec 1969 16:00:00 -0800", in other words it isn't correctly reading the timestamp of the file.
"Niko hit the nail on the top"

If you run http://24.108.124.18/weather34WDbeta/w34_module_test.php
And select middle top-row  => forecastWXSIMblock.php  => click "Test-it" the message reads:
Code: [Select]
Warning: filemtime() [function.filemtime.html: stat failed for ../plaintext.txt in E:\htdocs\weather34WDbeta\w34_util_wxsim.php on line 41The script can not get the filemtime = last-modified-time of the file.
This filemtime check is there so that we do not run the plaintext-parser.php multiple times when there is no new file during its 6 hour life.

The first thought, maybe windows using "\"  and the file starts with "../" ??.
Second thought:  running Kens script directly http://24.108.124.18/weather34WDbeta/wxsimPP/plaintext-parser.php  the correct date time is found.
That date time is coming from the plaintext.txt file

But I can not access that file to check, all links do not work 
http://tzwd34beta.ddns.net/../plaintext.txt
http://24.108.124.18/weather34WDbeta/../plaintext.txt
Have to study this. Problem is I do not have a windows website-server available.  Will take some time.

Wim

Adapted script to test with in next post!
« Last Edit: June 08, 2019, 04:54:12 PM by wvdkuil »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,191
  • 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 #22 on: June 08, 2019, 04:53:21 PM »
Wim, just curious...

Why would my WXSIM forecast indicates that it is 'Offline' - the WXSIM forecasts are automatically produced every six (6) hours, thus, there is no reason for showing the WXSIM forecast as being offline.

Temporary web link: Tzouhalem-Maple Bay Weather

OK, can you test this version?
It will use the date-time from the plaintext-file as parsed by Ken's script, only if the stat fails.

===
I also found the culprit, your plaintext.txt is on a other location then expected
Code: [Select]
$plaintextFile = '../../wxsim/plaintext.txt';       // location of the WXSIM plaintext.txt
Normally the file is in the webservers root.
That is why the file-name-location in the parser is "../../plaintext.txt"
And in the other scripts "../plaintext.txt"

Change   line 22 in w34_util_wxsim.php from
Code: [Select]
$plaintextFile  = '../plaintext.txt'; to
Code: [Select]
$plaintextFile  = '../wxsim/plaintext.txt';
Will add it to the documentation
Wim
« Last Edit: June 09, 2019, 07:40:44 AM by wvdkuil »

Offline mldenison

  • Posts: 292
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 74.0.3729.169
    • York, Pennsylvania USA Weather
Re: HWS-template (WD34) beta test July version
« Reply #23 on: June 08, 2019, 05:27:52 PM »
I have no fast solution for that.
All 1276 lines of the page are correctly contained in the < body > tags
No html errors: https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.m82a1.us%2FpwstestWD%2Findex.php

To test and see what is happening, I need to know what add-on you are using.

Wim

The author just released an update where sites could be blacklisted - so I now don't have it display on my m82a1.us sites.

It's strange that April and July menus are different...


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,191
  • 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 #24 on: June 08, 2019, 05:46:46 PM »
The author just released an update where sites could be blacklisted - so I now don't have it display on my m82a1.us sites.

It's strange that April and July menus are different...
Not strange at all, the original release contained hundreds of html "notices" / problems.
I removed them all, but had to rewrite 90% of the code.

I can probably change the code in such a way that you do not have to blacklist the template.  I already changed the code, but need the extension to test with.

But that is for 'one fo these days'  later next week.
Tomorrow it is "conformation" day for the grand children, to important for them and for me to miss that large  family gathering.

Wim

Offline oreitsma

  • Posts: 555
  • Assen, Netherlands
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.169
    • Weerstation Assen
Re: HWS-template (WD34) beta test July version
« Reply #25 on: June 09, 2019, 01:05:44 PM »
Hi Wim,

I see a problem with weather alerts.
It shows the distance of a discharge (Nexstorm).
Instead of 1509 km he gives an alarm because of a thunderstorm at 1,509 km.
See red blocks.

https://www.weerstation-assen.nl/actueel-weer2.php

Edit: After refresh alarm message is gone. See picture how it looked.

Furthermore, it looks great. Many thanks!

Brgds,
Oebel
« Last Edit: June 09, 2019, 01:09:18 PM by oreitsma »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,191
  • 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 #26 on: June 09, 2019, 01:22:28 PM »
Hi Wim,
I see a problem with weather alerts.
It shows the distance of a discharge (Nexstorm).
Instead of 1509 km he gives an alarm because of a thunderstorm at 1,509 km.
See red blocks.
https://www.weerstation-assen.nl/actueel-weer2.php
Edit: After refresh alarm message is gone. See picture how it looked.
Furthermore, it looks great. Many thanks!
Brgds, Oebel
Can you please PM me the link to the NSRealtime.txt file you are using? Then I can test / check.

The comma in the distance is a number_format error, I will check that.
The alert is always given if the "lightningtimeago" is less then 500 seconds.
Both the WeatherFlow or Boltek are used for that. Boltek has priority if both devices are available.

Wim



Offline oreitsma

  • Posts: 555
  • Assen, Netherlands
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.169
    • Weerstation Assen
Re: HWS-template (WD34) beta test July version
« Reply #27 on: June 09, 2019, 02:28:32 PM »
Can you please PM me the link to the NSRealtime.txt file you are using? Then I can test / check.

Wim

Hi Wim,

You have PM.

Brgds,
Oebel

Offline R_o_B

  • Posts: 316
  • 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 #28 on: June 09, 2019, 03:20:49 PM »
I also found the culprit, your plaintext.txt is on a other location then expected
Code: [Select]
$plaintextFile = '../../wxsim/plaintext.txt';       // location of the WXSIM plaintext.txt
Normally the file is in the webservers root.
That is why the file-name-location in the parser is "../../plaintext.txt"
And in the other scripts "../plaintext.txt"

Change   line 22 in w34_util_wxsim.php from
Code: [Select]
$plaintextFile  = '../plaintext.txt'; to
Code: [Select]
$plaintextFile  = '../wxsim/plaintext.txt';
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.

The WXSIM parser 'plaintext-parser.php' needs to be edited in order to provide the required information for its proper operation - the 'w34_util_wxsim.php' template should not have be edited.

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.
R_o_B
---
eMail: weather@tzweather.org

Offline weatherbee

  • Posts: 708
  • 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 #29 on: June 09, 2019, 05:51:39 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
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2