cloudy cloudy

Author Topic: ***closed*** weather34 for WeatherDisplay (clientraw and WDapi)  (Read 23437 times)

0 Members and 1 Guest are viewing this topic.

Offline bitsostring

  • Posts: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #360 on: February 17, 2019, 11:52:49 AM »
First make a copy of the current script and please test this version

New version shows the wrong time: 00:20 am  instead of 1120Z (UTC).

. . . and later 00:50 am instead of 1150Z.
« Last Edit: February 17, 2019, 12:24:09 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,346
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #361 on: February 17, 2019, 12:57:44 PM »
New version shows the wrong time: 00:20 am  instead of 1120Z (UTC).

. . . and later 00:50 am instead of 1150Z.
Yes the invalid data is still there, so the time fields are more or less valid.
The "garbage in"  results in "garbage out" for the time field, but without large error messages.
The unexpected values are still there, but shorter
Code: [Select]
"observed":"17-02-2019 @<\/span> 12:00Z"
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,346
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #362 on: February 18, 2019, 01:02:49 PM »
Second beta version April release ready for download.
Read more at and download from http://wd34.weather-template.com/beta.php

Comments welcome at https://www.weather-watch.com/smf/index.php/topic,67675.0.html

Do not update the beta releases, just remove old folder and test the new one from scratch, thanks
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: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #363 on: February 18, 2019, 02:04:09 PM »
Yes the invalid data is still there, so the time fields are more or less valid.
The "garbage in"  results in "garbage out" for the time field, but without large error messages.
The unexpected values are still there, but shorter
Code: [Select]
"observed":"17-02-2019 @<\/span> 12:00Z"

So there is nothing I can do about it?
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,346
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #364 on: February 18, 2019, 02:08:58 PM »
So there is nothing I can do about it?
i assume it will go away, but I modified the script a bit and see if this removes the extra unneeded characters.

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: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #365 on: February 18, 2019, 02:17:00 PM »
I assume it will go away, but I modified the script a bit and see if this removes the extra unneeded characters.

That's looking good. Thanks, Wim.
It's meant to be fun. . .

Offline bitsostring

  • Posts: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #366 on: February 18, 2019, 09:20:25 PM »
I assume it will go away

Thought I'd contact CheckWX anyway, here's their reply:

"Thanks for bringing this issue to our attention.  It has been corrected.
I apologize for the inconvenience and thank you for using CheckWX"
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,346
  • Leuven Belgium CET
  • OS/Browser:
  • iOS 12.0.1
  • Safari 12.0
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #367 on: February 18, 2019, 09:24:39 PM »
Thought I'd contact CheckWX anyway, here's their reply:

"Thanks for bringing this issue to our attention.  It has been corrected.
I apologize for the inconvenience and thank you for using CheckWX"
Thanks  :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 bitsostring

  • Posts: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #368 on: February 21, 2019, 06:27:14 PM »
You should remove the typo by adding this to the end of the file:
Code: [Select]
$lang['Select langauge'] = 'Select language';
In all other language files  (f.i. Dutch) it is
Code: [Select]
|Select langauge|Selecteer een taal|On the left always the words from the scripts, on the right the translation.

It may be that Dutch is the only language file with that phrase, it doesn't appear, e.g., in the current French or German language files. . . I haven't checked them all. In French and German the entries are just |language|choisir... or |language|sprache… - with language spelled correctly.

Basically, the Menu headings are not always translated.
« Last Edit: February 21, 2019, 07:40:57 PM by bitsostring »
It's meant to be fun. . .

Offline hcorrin

  • Posts: 1,257
  • Ballaugh Isle of Man GB
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Ballaugh Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #369 on: February 21, 2019, 08:09:05 PM »
Looks like the metar34.txt has changed again the popup gives error 500 in IE11 and edge says something about humidity and line 103 in the metar_load_funct.php it was ok early this morning
http://www.hc-iom.co.uk/pwsWD/index.php

{"results":1,"data":[{"icao":"EGNS","name":"Isle of Man","observed":"21-02-2019 @ 16:50Z","raw_text":"EGNS 211650Z 15009KT 9000 FEW006 10\/08 Q1023 NOSIG","barometer":{"mb":1022.92,"hg":30.21,"kpa":102.29},"clouds":[{"code":"FEW","base_feet_agl":600,"base_meters_agl":600,"text":"Few"}],"dewpoint":{"celsius":8,"fahrenheit":46},"elevation":{"feet":55.77,"meters":17},"flight_category":"VFR","humidity":{"percent":88},"temperature":{"celsius":10,"fahrenheit":50},"visibility":{"miles":"559","miles_float":5.59,"meters":"8,996","meters_float":8996.23},"wind":{"degrees":150,"speed_kts":9,"speed_mph":10,"speed_mps":5}}]}


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,346
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #370 on: February 21, 2019, 08:18:27 PM »
Looks like the metar34.txt has changed again the popup gives error 500 in IE11 and edge says something about humidity and line 103 in the metar_load_funct.php it was ok early this morning http://www.hc-iom.co.uk/pwsWD/index.php
Yes they changed the API and the humidity was a string "humidity": 88, is now an array: "humidity":{"percent":88}

Attached new version of script for the normal release pwsWD! Do not for beta test pwsTEST.

Wim
« Last Edit: February 21, 2019, 08:26:20 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 bitsostring

  • Posts: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #371 on: February 21, 2019, 08:22:41 PM »
Looks like the metar34.txt has changed again the popup gives error 500 in IE11 and edge says something about humidity and line 103 in the metar_load_funct.php it was ok early this morning

Metar pop-up working OK here in Chrome, Edge and IE11.

No, it's not! Pop-up is working, humidity isn't. . . Sorry  #-o
« Last Edit: February 21, 2019, 10:24:13 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,346
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 72.0.3626.109
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #372 on: February 21, 2019, 08:25:20 PM »
Metar pop-up working OK here in Chrome, Edge and IE11.
Not anymore at 21:25 CET,
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 hcorrin

  • Posts: 1,257
  • Ballaugh Isle of Man GB
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
    • Ballaugh Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #373 on: February 21, 2019, 09:19:29 PM »
Thanks Wim that sorted it, why they keep changing it is another question

Offline bitsostring

  • Posts: 976
  • Oregon Scientific WMR200
  • Edinburgh, U.K.
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #374 on: February 21, 2019, 10:24:57 PM »
It's meant to be fun. . .

 

cumulus