cloudy cloudy

Author Topic: HWS-template (WD34) beta test topic  (Read 7713 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
HWS-template (WD34) beta test topic
« on: February 15, 2019, 07:30:27 AM »
If you, the future users, want me to continue to enhance this template for WD users, follow these few guidelines.
  • Post all remarks for the April beta test version in this topic only. Lets not swamp the normal end-user topic
  • If you are not familiar with weather34 or one off its spin-offs, do not download or test the beta version
  • Always check the running version of the beta test before posting remarks,  most remarks are probably found by others and already taken care off
  • There is no extra documentation yet, some features need it
  • Please do not discuss the common features or the design itself.  If it is in all versions a discussion should not be in the beta topic
  • AND PLEASE do not use the beta for production. Especially do not rename it as pws/ or pwsWD/
« Last Edit: February 15, 2019, 04:50:28 PM by wvdkuil »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test topic
« Reply #1 on: February 15, 2019, 08:33:05 AM »
This is the list of known problems and their current status as of 2019-02-19 14:00  UTC

SOLVED
  • In the Moon phase pop-up the text is not fitting into the boxes, bottom box edges are across the text
  • Wrong (WC and not WD) or two icons in footer on the left
  • The acknowledgement "Design based on weather34.com" on the bottom right is off the page caused by two icons on the left
  • Serbian flag is missing from language selection permission problem on the server, one has to manually correct that
  • Graphs for today pop up is not showing data also Graphs are not showing data
    WU returns empty file. After cache invalidates (= to old) the data is often correctly loaded
  • Its hard to see the complete error message use LIGHT theme when posting messages
  • UV images not found scripts used uv 0-13, adapted to use 00 -> 013,
    adapted scripts https://www.weather-watch.com/smf/index.php/topic,67468.msg543491.html#msg543491
  • Contact info popup should only show enabled methods i.e. don't show twitter if account not configured.
    adapted scripts https://www.weather-watch.com/smf/index.php/topic,67468.msg543554.html#msg543554
  • When setting light theme, top bar stays dark. Adapted for topbar and the menu. But for now the pop-ups stay dark. Need more testing
  • Added support for Weewx, Cumulus and  Weathercat using the same realtime-file  layout. Also Weatherlink.com is added using the API-v2. All supported weather-programs show the icon and link in the forter
  • Footer adjusted so all data is aligned correctly.
OPEN
  • Graphs are not showing data
    WU sometimes has problems and returns empty file, with only the heading. The scripts check if a file is retuned otherwise the old one is used. But WU returns a correct file, only the data is missing. Needs some extra code to get that corrected
  • wxsim forecast not working.Missing documentation.
    You need to setup the saratoga PP parser: ...pwsTEST/wxsimPP/plaintext-parser.php
    First make sure that the original parser works ,example  http://wd34.weather-template.com/pwsTEST/wxsimPP/plaintext-parser.php
    The  pwsTEST scripts will read the output and process it for display
  • wxsim forecast: Its hard to see the complete error message
    Could not reproduce this. The normal error message is the first line from theSaratoga script and a second red line from the pws script.  Those other errors should not occur.

WILL NOT IMPLEMENT / SOLVE
  • The site wont run on older Safari versions 
  • Today's forecast( Friday 15th) is showing the wrong icon, should be the same icon as Saturday.
    All forecast data is cached (3600 seconds), also after first install. So the first hour there will be no correct data.  If this problem persists I need more information
  • Password should not be stored in cleartext in settings file,
    It is not in a "cleartext" file. It is in an PHP file which can only be accessed when one hast that password. Or by FTP userid/password or by cPabnel userid/password.  There are no passwords  for  visitors.  If you want to discuss this, please use another topic as all templates work this way.
  • Extras menu should only show configured options. Extras menu items need config section in setup
    Setting for (non)-display of extra menu items is already in easyweather. The list of extra menu items is in a separate file with explanations.   
« Last Edit: February 26, 2019, 10:07:27 AM by wvdkuil »

Offline meteosa

  • Posts: 51
  • Italy
  • OS/Browser:
  • Win NT 10.0
  • Firefox 65.0
    • MeteoSantAngelo.it
Re: HWS-template (WD34) beta test topic
« Reply #2 on: February 16, 2019, 07:03:19 PM »
Hello,
i have a problem with wxsim, if i put english language it works but with the italian language we do not see the temperature numbers.
https://stazione.meteosantangelo.it/pwsTEST/

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test topic
« Reply #3 on: February 16, 2019, 09:00:24 PM »
Hello,
i have a problem with wxsim, if i put english language it works but with the italian language we do not see the temperature numbers.
https://stazione.meteosantangelo.it/pwsTEST/
Very strange. 
  • As with the release version I do it step for step. So there is no Italian language file in the wxsimPP folder of the BETA-download
  • But I see Italian language for  wxsim at your site, screenshot meteosantangelo.jpg. And indeed the temps are missing
  • I added the Italian language also,  Italian words although not quite the same but no missing temps, screenshot wxsim_it.jpg
         http://wd34.weather-template.com/pwsTEST/index.php?lang=it
  • Downloaded your plaintext.txt but that is correct English and produces the same Italian words and correct temps
Beta testing is about helping the developer to find errors with the beta-test scripts. To make sure that the release version is as good as it can be.

I can only assume that the missing temps you have are caused by your own Italian language files with which you tested. Therefor I wait to further investigate as long as you use your own files.  Upload "the original" Italian language file as attached without changing it or opening it . 
When the results are correct with the official language file we can close this problem.

And when the April release arrives (or even now) you can change the Italian language file as much as you want. Or you can use your file.
BUT  all language files should be encoded as  UTF-8. So do not save it after changing with another character-encoding.

Wim

P.S.
I found the problem with your file:
Code: [Select]
langlookup|High:|T°Max|
langlookup|Low:|T°Min|
That added degree symbol in the high low strings  results in two degree symbols in the resulting parser output.
Code: [Select]
Other languages
Low: 2C
Minimum 2C

Default Italian
Min: 2C

Your file
TMin 2C
<span style="color: blue">T&deg;Min 1&deg;C</span></td>
The HWS-wxsim script has to find the temp in the parser output and expects the temp to be before the degree symbol.  If you adapt your translation file to "T Max" and "T min" it should work.

Wim
« Last Edit: February 17, 2019, 08:02:28 AM by wvdkuil »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test topic
« Reply #4 on: February 18, 2019, 01:03:51 PM »
Second beta version April release ready for download.
Read more at and download from http://wd34.weather-template.com/beta.php

Do not update the beta releases, just remove old folder and test the new one from scratch, thanks
Wim

Offline blainec

  • Global Moderator
  • Posts: 431
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 65.0
    • Weather YYC
Re: HWS-template (WD34) beta test topic
« Reply #5 on: February 18, 2019, 04:07:02 PM »
I just installed the second beta.
I came across this error in forecastWXSIMdaily_popup.php


https://weatheryyc.com/pwsTEST

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test topic
« Reply #6 on: February 18, 2019, 04:44:45 PM »
I just installed the second beta.
I came across this error in forecastWXSIMdaily_popup.php


https://weatheryyc.com/pwsTEST
Thanks, I do not have any test-files with low temperatures.
Can you give me the link to your plaintext.txt so I can copy a few to test with?

Attached an updated script,
Wim
 

Offline blainec

  • Global Moderator
  • Posts: 431
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 65.0
    • Weather YYC
Re: HWS-template (WD34) beta test topic
« Reply #7 on: February 18, 2019, 04:50:01 PM »
Thanks, I do not have any test-files with low temperatures.
Can you give me the link to your plaintext.txt so I can copy a few to test with?

Attached an updated script,
Wim
Thanks

https://weatheryyc.com/meteotemplate/wdUpload/plaintext.txt

Offline blainec

  • Global Moderator
  • Posts: 431
  • Calgary, Ab.
  • OS/Browser:
  • Win NT 10.0
  • Firefox 65.0
    • Weather YYC
Re: HWS-template (WD34) beta test topic
« Reply #8 on: February 18, 2019, 04:52:37 PM »
Thanks, I do not have any test-files with low temperatures.
Can you give me the link to your plaintext.txt so I can copy a few to test with?

Attached an updated script,
Wim
The new script seems to work

Offline meteosa

  • Posts: 51
  • Italy
  • OS/Browser:
  • Win NT 10.0
  • Firefox 65.0
    • MeteoSantAngelo.it
Re: HWS-template (WD34) beta test topic
« Reply #9 on: February 18, 2019, 07:53:02 PM »
Very strange. 
  • As with the release version I do it step for step. So there is no Italian language file in the wxsimPP folder of the BETA-download
  • But I see Italian language for  wxsim at your site, screenshot meteosantangelo.jpg. And indeed the temps are missing
  • I added the Italian language also,  Italian words although not quite the same but no missing temps, screenshot wxsim_it.jpg
         http://wd34.weather-template.com/pwsTEST/index.php?lang=it
  • Downloaded your plaintext.txt but that is correct English and produces the same Italian words and correct temps
Beta testing is about helping the developer to find errors with the beta-test scripts. To make sure that the release version is as good as it can be.

I can only assume that the missing temps you have are caused by your own Italian language files with which you tested. Therefor I wait to further investigate as long as you use your own files.  Upload "the original" Italian language file as attached without changing it or opening it . 
When the results are correct with the official language file we can close this problem.

And when the April release arrives (or even now) you can change the Italian language file as much as you want. Or you can use your file.
BUT  all language files should be encoded as  UTF-8. So do not save it after changing with another character-encoding.

Wim

Thanks Wim, it works.
Also installed the second beta and everything works.

Offline R_o_B

  • Posts: 326
  • Maple Bay, British Columbia, Canada
  • OS/Browser:
  • Win NT 10.0
  • Firefox 52.0
    • Tzouhalem-Maple Bay Weather
Re: HWS-template (WD34) beta test topic
« Reply #10 on: February 19, 2019, 02:00:11 PM »
Wim, one question and one comment - for the latest released beat version of the templates.

The question: Why is there a white 'X' on the left site of the web cam image - that would be the <span> at line 41 of the 'webcam_popup.php' script.

The comment: If I try to run the 'webcam_popup.php' without a link to the web cam, the 'uninitialized' variable '$webcam_img' at line 3 will produce 'Undefined variable...' notice. May I suggest to prevent such notice that the 'include 'w34_settings.php' at line 25 be moved before line 3.

Just trying to make the code of the templates as error free as possible ... even when those errors are/might be hidden behind another screen or image...  :wink:

Oh, another comment: Why can some pop-up screens be close by just clicking outside those pop-up screens whereas some newer pop-up screens need to be clicked on the ' X  Close' on the top left corner. Should there not be a consistency/sameness/uniformity on how the pop-up screens are closed!  :?
« Last Edit: February 19, 2019, 02:06:31 PM by R_o_B »
R_o_B
---
eMail: weather@tzweather.org

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test topic
« Reply #11 on: February 19, 2019, 02:13:33 PM »
Wim, one question and one comment - for the latest released beat version of the templates.
The question: Why is there a white 'X' on the left site of the web cam image - that would be the <span> at line 41 of the 'webcam_popup.php' script.
The large X (and the word "close') are added bacause a few commented that there should always be a "X close" type message.
I thought that everybody knew that clicking outside a pop-up would remove it, but . . .
Quote
The comment: If I try to run the 'webcam_popup.php' without a link to the web cam, the 'uninitialized' variable '$webcam_img' at line 3 will produce 'Undefined variable...' notice. May I suggest to prevent such notice that the 'include 'w34_settings.php' at line 25 be moved before line 3.
I changed that already, please try this version.
Quote
Just trying to make the code of the templates as error free as possible ... even when those errors are/might be hidden behind another screen or image...  :wink:
Oh, another comment: Why can some pop-up screens be close by just clicking outside those pop-up screens whereas some newer pop-up screens need to be clicked on the ' X  Close' on the top left corner. Should there not be a consistency/sameness/uniformity on how the pop-up screens are closed!  :?
All pop-ups can always be closed by clicking outside the pop-up.  No code change there.
The 2017's pop-up use the "URL-look and feel", some 2016 used the X at the left or right.
I tried to have a consistent look and feel, all have a X on the left.
Thanks, Wim

@all always check the latest version on http://wd34.weather-template.com/pwsTEST/
You can also check the source of (nearly) any script by adding ?sce=view
http://wd34.weather-template.com/pwsTEST/webcam_popup.php?sce=view
« Last Edit: February 19, 2019, 02:38:33 PM by wvdkuil »

Offline blainec

  • Global Moderator
  • Posts: 431
  • Calgary, Ab.
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 65.0
    • Weather YYC
Re: HWS-template (WD34) beta test topic
« Reply #12 on: February 19, 2019, 10:19:05 PM »
Current conditions says "Mostly Cloudy" but icon shows rain

Offline weatherbee

  • Posts: 716
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Sherman Ct. Weather
Re: HWS-template (WD34) beta test topic
« Reply #13 on: February 19, 2019, 11:16:31 PM »
I have been running the beta for two days now.
The WxSim forecast works on the 5 and 11 AM forecasts but hasn't worked on the 5 PM forecast.  I get the message 'wxsim file not ready'. When I use the wxsimPP/_test.php I do get the WxSim forecast.
 
Also it doesn't show the graphs using the database (it does in the non-beta version).  It will graph using WU.
Can be seen here: 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,292
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test topic
« Reply #14 on: February 19, 2019, 11:34:59 PM »
I have been running the beta for two days now.
The WxSim forecast works on the 5 and 11 AM forecasts but hasn't worked on the 5 PM forecast.  I get the message 'wxsim file not ready'. When I use the wxsimPP/_test.php I do get the WxSim forecast.
 
Also it doesn't show the graphs using the database (it does in the non-beta version).  It will graph using WU.
Can be seen here: https://www.shermanctweather.org/pwsTEST/
Tom
#-o  The converted plaintext.txt  /jsondata/wxsimpp_en.arr  has only 7 day-parts is that correct or is the file incomplete?
The scripts check if there are at least 8 dayparts.
If your files have only 7day- in the same wayparts,  change line 39 in forecastWXSIMblock.php  to
if (!isset ($arr_pp) || count ($arr_pp) < 6 ) {echo '<b style="color: red;"><small>wxsim file not ready</small></b>'; return;}

The pop-ups should also be changed, but that is for tomorrow as i live in CET
Wim
« Last Edit: February 19, 2019, 11:38:28 PM by wvdkuil »