cloudy cloudy

Author Topic: HWS-template (WD34 ) April release  (Read 8349 times)

0 Members and 1 Guest are viewing this topic.

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 / weather34) April release
« Reply #60 on: April 29, 2019, 10:57:10 PM »
No updated time stamp in Forecast block?
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.103
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #61 on: April 30, 2019, 06:40:20 AM »
No updated time stamp in Forecast block?
A few changes for the DarkSky forecast enclosed, for the latest release only.
Dutch users and I are playing with the scripts also, probably this will work better.

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: 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 / weather34) April release
« Reply #62 on: April 30, 2019, 10:01:13 AM »
A few changes for the DarkSky forecast enclosed, for the latest release only.

Thanks, Wim. But still no forecast update time? It was useful to check if you were looking at cached data. . .
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.103
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #63 on: April 30, 2019, 10:09:19 AM »
Thanks, Wim. But still no forecast update time? It was useful to check if you were looking at cached data. . .
Then try these ones  :oops:
First the folder
And then the single script, that has the forecast time again.

We were just playing around to get minor problems removed

Wim
« Last Edit: April 30, 2019, 10:14:20 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 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 / weather34) April release
« Reply #64 on: April 30, 2019, 10:45:00 AM »
Then try these ones  :oops:

That looks good, thanks Wim  :)

P.S. and the advisory alert (Expect rain showers this week) agrees with the original release!
« Last Edit: April 30, 2019, 10:50:17 AM by bitsostring »
It's meant to be fun. . .

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 / weather34) April release
« Reply #65 on: April 30, 2019, 01:25:19 PM »
Had a strange problem with Metar pop-up last night. April release stopped working (see below), but original release was working fine. An hour later the April release was working again but the original was not! Module_test gave a long list of illegal offsets, so presumably a corrupt metar.txt file?

All OK this morning.
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.103
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #66 on: April 30, 2019, 01:41:57 PM »
Had a strange problem with Metar pop-up last night. April release stopped working (see below), but original release was working fine. An hour later the April release was working again but the original was not! Module_test gave a long list of illegal offsets, so presumably a corrupt metar.txt file?

All OK this morning.
Yes, they  returned strings as comments  and encoded quotes 
Code: [Select]
"{\"results\":1,\"data\ . . . }" and it should be 
Code: [Select]
{"results":1,"data . . . }But "any garbage between quotes" is valid JSON
The script checks if it is valid JSON and then fails as all garbage should be encoded also.
Now it has to check if it is real data or garbage and clean all back-slashes.
Lets wait a few days and wonder why they are doing this with a production site.
Wim

P.S. You can always check all uploaded/downloaded files, also the metar.txt, by using
 /w34_module_test.php
=> select "./jsondata/metar34.txt" in the left/bottom dropdown
==> and click "List contents.

It should look like
Code: [Select]
{"results":1,"data":[{"wind":{"degrees":360,"Than the "Expand as json" can do its job.
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: 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 / weather34) April release
« Reply #67 on: May 01, 2019, 09:25:51 PM »
OK, I changed the [advisory_small.php] script to use for your test-site.
I forgot to adapt the script for different forecasts (WU/DS/EC)  which are used in this release, so the advisory did not get a correct "xxdayIcon".
 
Please compare the alert boxes and warn me if there is a difference?

Alert boxes only agree if both Jan and April versions use the DS forecast, not if I use DS for Jan (/pws/) and WU for April (/pwsnew/). Is that right?

And WU forecast has no update time.
« Last Edit: May 01, 2019, 09:28:43 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.103
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #68 on: May 02, 2019, 12:15:19 PM »
Alert boxes only agree if both Jan and April versions use the DS forecast, not if I use DS for Jan (/pws/) and WU for April (/pwsnew/). Is that right?
And WU forecast has no update time.
Different versions can only agree when different forecasts supply more or less the same data.
I think there are other more important items,  such as forecasted temp and wind which also are different.

I will check the WU-forecast and make sure it is updated in the following release.
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: 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 / weather34) April release
« Reply #69 on: May 02, 2019, 12:37:43 PM »
Different versions can only agree when different forecasts supply more or less the same data.

Understood.

Quote
I think there are other more important items,  such as forecasted temp and wind which also are different.

That is why I was running both, so I could compare them. I'm leaning towards Dark Sky at the moment  :)

Quote
I will check the WU-forecast and make sure it is updated in the following release.

Thanks.
It's meant to be fun. . .

Offline ktuley

  • Posts: 8
  • Albuquerque, NM USA
  • OS/Browser:
  • Mac OS X 10.14.5
  • Safari 12.1.1
    • Tuley Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #70 on: May 03, 2019, 01:41:22 PM »
It appears that WU PWS pages are all reporting a invalid date..... could this be the issue for data not coming to my site?  I'm just setting up a new site, to pull from WU and it's not getting any data...

Thanks for this template.

my new site is tuley.online/pwsWD/index.php

Ken

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.103
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #71 on: May 03, 2019, 02:01:27 PM »
It appears that WU PWS pages are all reporting a invalid date..... could this be the issue for data not coming to my site?  I'm just setting up a new site, to pull from WU and it's not getting any data...

Thanks for this template.

my new site is tuley.online/pwsWD/index.php

Ken
Nothing to do with WU or their invalid dates:
Your webserver does not allow the use of CURL to load files.

You can check yourself  with the debug console: http://tuley.online/pwsWD/w34_module_test.php
Click on button "Load files" at the bottom. In the large box below that button  all CURL activity is displayed, 1 example:
Code: [Select]
w34_load_files.php (266) time spent: 0.017 -  CURL OK for https://api.checkwx.com/metar/KABQ/decoded
w34_load_files.php (271) time spent: 0.017 -  empty data for https://api.checkwx.com/metar/KABQ/decoded Old data will be used jsondata/metar34.txtrnm

All downloaded files are empty, from all suppliers. Therefor the scripts will use previous data  (which is my testdata)  if those data sets are available.
Contact your web-hosters support and ask how you can allow the use of CURL for your site.

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 ktuley

  • Posts: 8
  • Albuquerque, NM USA
  • OS/Browser:
  • Mac OS X 10.14.5
  • Safari 12.1.1
    • Tuley Weather
Re: HWS-template (WD34 / weather34) April release
« Reply #72 on: May 03, 2019, 04:11:10 PM »
Thanks...
It took an upgrade of the hosting plan  :roll: and a little "update wait" but now seems to be working.

I had looked at that test module last night, but didn't understand the empty line.

Appreciate the quick and solid response!

Ken

Nothing to do with WU or their invalid dates:
Your webserver does not allow the use of CURL to load files.

You can check yourself  with the debug console: http://tuley.online/pwsWD/w34_module_test.php
Click on button "Load files" at the bottom. In the large box below that button  all CURL activity is displayed, 1 example:
Code: [Select]
w34_load_files.php (266) time spent: 0.017 -  CURL OK for https://api.checkwx.com/metar/KABQ/decoded
w34_load_files.php (271) time spent: 0.017 -  empty data for https://api.checkwx.com/metar/KABQ/decoded Old data will be used jsondata/metar34.txtrnm

All downloaded files are empty, from all suppliers. Therefor the scripts will use previous data  (which is my testdata)  if those data sets are available.
Contact your web-hosters support and ask how you can allow the use of CURL for your site.

Wim

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 / weather34) April release
« Reply #73 on: May 04, 2019, 04:10:37 PM »
my new site is tuley.online/pwsWD/index.php

Couldn't help noticing a little problem with the new 12-hr clock (in Chrome). . . Wim?
« Last Edit: May 04, 2019, 04:12:55 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,348
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 73.0.3683.103
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #74 on: May 04, 2019, 04:23:05 PM »
Couldn't help noticing a little problem with the new 12-hr clock (in Chrome). . . Wim?
Attached new version where the text will fit also after 9:59
Check here: http://wd34.weather-template.com/pwsTEST/?theme=dark

A screenshot of the beta version where the text is coloured, better solution i think.

Wim
« Last Edit: May 04, 2019, 04:34:10 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/