cloudy cloudy

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

0 Members and 1 Guest are viewing this topic.

Offline bitsostring

  • Posts: 1,038
  • 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 #150 on: June 25, 2019, 06:01:14 PM »
Which part of the 'today's temperature graphic' did you miss...  :roll:

Ah! Most people call that a graph. . .

Looks like a conversion from F to C, but the original was actually in C.
« Last Edit: June 25, 2019, 06:26:45 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #151 on: June 25, 2019, 06:31:40 PM »
Win, I am having some problems with the 'today's temperature graphic'.

As you might remember from previous messages, I am using the option to save the data on my computer (I am not using the data from a database and I am not using the data from Weather Underground).

For some reasons, since I started saving the data, the temperature has gone negative and is displaying negative values that have no relationship with the current temperature readings.

The beta site can be access through this redirected link: 'http://tzwd34beta.ddns.net/'

I am also running another copy of the beta scripts/templates on another computer (not accessible from the Internet) using the same data and the temperature graphic is showing normally in relationship with the current temperature readings.
All depends  on which version of livedata is used.
I forgot to include the units for clientraw. And that file is in metric, with wind in kts to make it more difficult.

Here => https://www.weather-watch.com/smf/index.php/topic,68051.msg547736.html#msg547736  you find the livedata to solve it.

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: 347
  • 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 #152 on: June 25, 2019, 07:17:27 PM »
Ah! Most people call that a graph. . .
Well, I am not 'most people' and I call the display a 'graphic' (ie: computer-generated image).  :wink:

Win, thank you - 'w34_livedata.php' solved the problem.
R_o_B
---
eMail: [email protected]

Offline weatherbee

  • Posts: 726
  • Sherman, Ct.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.131
    • Sherman Ct. Weather
Re: HWS-template (WD34) beta test July version
« Reply #153 on: June 25, 2019, 08:22:31 PM »
Wim,
I noticed in w34_frames.php the CWOP address should be https around line 70.

That was a very nice addition to the menu selection.

Tom
« Last Edit: June 25, 2019, 08:24:22 PM by weatherbee »
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Offline medic29

  • Posts: 52
  • OS/Browser:
  • Win NT 10.0
  • Firefox 67.0
Re: HWS-template (WD34) beta test July version
« Reply #154 on: June 26, 2019, 10:04:40 PM »
...removed
It could be an upload error.  Modern FTP often upload a file as file.txtRNM  and when upload is finished they rename the file.txtRNM to file.txt
As far as I know you are the first one with this problem.

I   added some code to check for empty data before writing the data to the .CSV or .TXT files.
Please test the attached version for the pws07 release only!
Wim

@ALL

Running the same cron-jobs on different servers (provider / PHP 5 or 7) results in un-predictable behaviour.
There was another change needed also for users running webservers with a "strange" timezone setting.
That gave me ample time to test.

There are new versions of both cron-jobs, both should give identical results when run
  • from an outside cron-provider, either paid or free
  • using your own webhost cron-server
    • using the internal php version such as /usr/local/bin/php /home/. . ./public_html/pws07/w34_cron_addtoyear.php
    • or using the www version /usr/bin/GET http://- - -website- - -/pws07/w34_cron_addtoyear.php
If you find the time to test the new versions in your setup, future users and I say "Thank you"

Wim
P.S.
I did not discover why the previous versions of the station-cron always worked correctly and the addtoyear  cron only when running via http.

Wim,

In the first quote you had modified the w34-cron-stationcron.php file adding lines to the code looking for empty data and I had absolutely no problems after uploading and using this file.

In the second quote you had resolved the issue with the cron jobs running from inside the web server and via http, after uploading and using that file it worked, but...see the txt file attachment from yesterday, I had lines in the file with empty data.

I took some time today and compared the two files.  I combined the changes you had made into one file, see attached.  I am using this file on my website for the July release (http://www.rrogers.us/pws07)

Regards,
Rick

Offline weatherbee

  • Posts: 726
  • 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 #155 on: June 27, 2019, 12:17:42 AM »
Wim,
I noticed with the latest update the weather alert from NWS doesn't pop up to warning page when clicked.
https://www.shermanctweather.org/pws07/index.php
Tom
« Last Edit: June 27, 2019, 12:26:28 AM by weatherbee »
Sony Pentium 4, 1.6 GHZ,512 MB Ram, Windows XP Pro, SP2


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #156 on: June 27, 2019, 05:52:50 AM »
Wim,
I noticed with the latest update the weather alert from NWS doesn't pop up to warning page when clicked.
https://www.shermanctweather.org/pws07/index.php
Tom
A think this is a known issue and solved in the official July version.
This happens when there is pop-up notification  at the right which overlaps the button in the alert box. As in your case as you are using the wide format, and in an iframe also.
Although the notification becomes invisible after a few seconds, it still overlaps the alert-box and  is"hiding" the (I) symbol for your mouse.

I moved the notification lower to not overlap the alertbox.
Change in pws07/w34_index2.php line 226 from
Code: [Select]
        top:    40px;to
Code: [Select]
        top:    120px;Wim

« Last Edit: June 27, 2019, 11:32:57 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 a55bruce

  • Posts: 7
  • W. Pa. USA
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.169
Re: HWS-template (WD34) beta test July version
« Reply #157 on: June 27, 2019, 10:07:15 AM »
I noticed that my pop-up graphs for 2019 are blank, the JUNE and TODAY graphs are OK. This did work in the beta_06_10 version.

https://beacon-rd.000webhostapp.com/pws07beta0620/index.php

Beta_06_10
https://beacon-rd.000webhostapp.com/pws07beta0610/index.php

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #158 on: June 27, 2019, 10:43:06 AM »
I noticed that my pop-up graphs for 2019 are blank, the JUNE and TODAY graphs are OK. This did work in the beta_06_10 version.

https://beacon-rd.000webhostapp.com/pws07beta0620/index.php

Beta_06_10
https://beacon-rd.000webhostapp.com/pws07beta0610/index.php
That is caused by the problems at WU
The same  URL is used in all versions
https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KPARENFR7&graphspan=year&year&format=1
In the 0620 version it returned no-data, only the header line. Other times it will return data.
File:   ./chartswudata/KPARENFR7Y.txt  Filetime (UTC): 2019-06-27T05:21:25+00:00 which an age of 5 hrs 16 min 58 seconds
The file will remain in cache for 12 hours. If you delete the file, the next run of station-cron or the next visit to your site will try to load the file again.
You can chack how old the files are with:  https://beacon-rd.000webhostapp.com/pws07beta0620/w34_load_files.php?test

Nobody knows if and when the retrieval from WU will work correctly, and for how long. 
There are numerous discussions about this on the WX forum as a lot of other scripts also suffer from it

I decided to wait until it is clear if we can access our historical data and how. For now even the API to retrieve the data is inconsistent.

Wim
« Last Edit: June 27, 2019, 11:34:14 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 a55bruce

  • Posts: 7
  • W. Pa. USA
  • OS/Browser:
  • Win NT 10.0
  • Chrome 74.0.3729.169
Re: HWS-template (WD34) beta test July version
« Reply #159 on: June 27, 2019, 02:47:22 PM »
That is caused by the problems at WU
The same  URL is used in all versions
https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KPARENFR7&graphspan=year&year&format=1
In the 0620 version it returned no-data, only the header line. Other times it will return data.
File:   ./chartswudata/KPARENFR7Y.txt  Filetime (UTC): 2019-06-27T05:21:25+00:00 which an age of 5 hrs 16 min 58 seconds
The file will remain in cache for 12 hours. If you delete the file, the next run of station-cron or the next visit to your site will try to load the file again.
You can chack how old the files are with:  https://beacon-rd.000webhostapp.com/pws07beta0620/w34_load_files.php?test

Nobody knows if and when the retrieval from WU will work correctly, and for how long. 
There are numerous discussions about this on the WX forum as a lot of other scripts also suffer from it

I decided to wait until it is clear if we can access our historical data and how. For now even the API to retrieve the data is inconsistent.

Wim
I deleted the ./chartswudata/KPARENFR7Y.txt, did a refresh of the site.
The ./chartswudata/KPARENFR7Y.txt is now populated with data. 
:D Graphs are NOW working.  :D

Thanks again!

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #160 on: June 27, 2019, 02:53:54 PM »
I deleted the ./chartswudata/KPARENFR7Y.txt, did a refresh of the site.
The ./chartswudata/KPARENFR7Y.txt is now populated with data. 
:D Graphs are NOW working.  :D

Thanks again!
Keeps your fingers crossed for tomorrow  :D
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 Tlowe

  • Posts: 157
  • Minneapolis, MN, US
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.100
Re: HWS-template (WD34) beta test July version
« Reply #161 on: June 27, 2019, 03:37:24 PM »
Wim,
I noticed with the latest update the weather alert from NWS doesn't pop up to warning page when clicked.
https://www.shermanctweather.org/pws07/index.php
Tom

On my my mobile and PC the pop-up works if you click exactly on the circle with the exclamation point in the center.

Offline Tlowe

  • Posts: 157
  • Minneapolis, MN, US
  • OS/Browser:
  • Win NT 10.0
  • Chrome 75.0.3770.100
Re: HWS-template (WD34) beta test July version
« Reply #162 on: June 27, 2019, 03:42:19 PM »
Wim,

Just a heads up.

On my mobile, Samsung S8 these pop-ups are not displaying correctly.

Meteors
Latest Earthquakes worldwide (text cut off)
Forecast > Details (text cut off)

Thanks!

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #163 on: June 27, 2019, 03:46:22 PM »
Wim,

Just a heads up.

On my mobile, Samsung S8 these pop-ups are not displaying correctly.

Meteors
Latest Earthquakes worldwide (text cut off)
Forecast > Details (text cut off)

Thanks!
Yes I know, but that is not possible to change, those can not be made smaller or stacked.
The phone will make scrollbars but that is all the systems can do.  To not display them is even worse.

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,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34) beta test July version
« Reply #164 on: June 27, 2019, 03:47:27 PM »
I think we better lock this topic as the new release is now available.  Another dozen or so changes, especially in the pop-ups and extra menu-pages are in the new release.

So, IMHO you should not use the pws07 version but switch to the normal release version.

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