cloudy cloudy

Author Topic: weather34 for WeatherDisplay (clientraw and WDapi)  (Read 15612 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #345 on: February 13, 2019, 02:34:24 PM »
I notice that the Menu in all versions still says "SELECT LANGAUGE" instead of "SELECT LANGUAGE".

I couldn't work out how to correct this in the language file, as you suggested in #78 above, I just edited line 137 of w34_menu.php
As most English language words/word-groups  do not have to be translated there is no new translation-file for en.
The old structure is used in . . /languages/lang.en.php
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.

Typing errors for the English words should be handled by the language files.
If you changes  texts  in the scripts as you did, the language files for the other languages will not find the correctly spelled words.

Wim

Offline bitsostring

  • Posts: 733
  • 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 #346 on: February 13, 2019, 02:59:46 PM »
You should remove the typo by adding this to the end of the file:
Code: [Select]
$lang['Select langauge'] = 'Select language';

Thanks, Wim. I obviously didn't read your earlier instructions properly. . . all OK now.
« Last Edit: February 18, 2019, 10:43:51 AM by bitsostring »
It's meant to be fun. . .

Offline bertsp

  • Posts: 23
  • KPRC
  • OS/Browser:
  • Win NT 10.0
  • Firefox 65.0
    • Dreamland Ranch-Sundown Acres Wx
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #347 on: February 13, 2019, 04:01:17 PM »
Can you please unzip and replace attached script?
After a fresh upload of plaintext.txt it should show the UV ICON,  the decimal-point in the rain values and the windunit.
All units are the ones from  the plaintext file.  The WXSIM units are not recalculated when switching from imperial to ISO units or vice-versa.
Wim

Wim,
Thanks, that did it. Great work.
BertSP
Ambient WS-1200-IP
WeatherHawk 916

Offline TSL

  • Posts: 7
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 60.0
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #348 on: February 14, 2019, 02:01:04 AM »
Hi Wim,

Just installed your BETA test code that includes Cumulus support.

You can see my site here... http://weather.skybase.net/pwsTEST/index.php

Everything is working except for METAR retrieval. Clicking on Current conditions -> "Nearby" produces the errors below ...

Code: [Select]
Warning: Illegal string offset 'observed' in /var/www/html/pwsTEST/metar_load_funct.php on line 50

Warning: Illegal string offset 'raw_text' in /var/www/html/pwsTEST/metar_load_funct.php on line 51

Warning: Illegal string offset 'icao' in /var/www/html/pwsTEST/metar_load_funct.php on line 52

Warning: Illegal string offset 'name' in /var/www/html/pwsTEST/metar_load_funct.php on line 53

Warning: Illegal string offset 'barometer' in /var/www/html/pwsTEST/metar_load_funct.php on line 54

Warning: Illegal string offset 'hg' in /var/www/html/pwsTEST/metar_load_funct.php on line 54

Warning: Illegal string offset 'barometer' in /var/www/html/pwsTEST/metar_load_funct.php on line 55

Warning: Illegal string offset 'mb' in /var/www/html/pwsTEST/metar_load_funct.php on line 55

Warning: array_key_exists() expects parameter 2 to be array, string given in /var/www/html/pwsTEST/metar_load_funct.php on line 78

Warning: Illegal string offset 'clouds' in /var/www/html/pwsTEST/metar_load_funct.php on line 88

Warning: Illegal string offset 'code' in /var/www/html/pwsTEST/metar_load_funct.php on line 88

Warning: Illegal string offset 'clouds' in /var/www/html/pwsTEST/metar_load_funct.php on line 89

Warning: Illegal string offset 'text' in /var/www/html/pwsTEST/metar_load_funct.php on line 89

Warning: Illegal string offset 'dewpoint' in /var/www/html/pwsTEST/metar_load_funct.php on line 91

Warning: Illegal string offset 'celsius' in /var/www/html/pwsTEST/metar_load_funct.php on line 91

Warning: Illegal string offset 'dewpoint' in /var/www/html/pwsTEST/metar_load_funct.php on line 92

Warning: Illegal string offset 'fahrenheit' in /var/www/html/pwsTEST/metar_load_funct.php on line 92

Warning: Illegal string offset 'temperature' in /var/www/html/pwsTEST/metar_load_funct.php on line 93

Warning: Illegal string offset 'celsius' in /var/www/html/pwsTEST/metar_load_funct.php on line 93

Warning: Illegal string offset 'temperature' in /var/www/html/pwsTEST/metar_load_funct.php on line 94

Warning: Illegal string offset 'fahrenheit' in /var/www/html/pwsTEST/metar_load_funct.php on line 94

Warning: Illegal string offset 'humidity_percent' in /var/www/html/pwsTEST/metar_load_funct.php on line 95

Warning: Illegal string offset 'visibility' in /var/www/html/pwsTEST/metar_load_funct.php on line 96

Warning: Illegal string offset 'meters' in /var/www/html/pwsTEST/metar_load_funct.php on line 96

Warning: Illegal string offset 'wind' in /var/www/html/pwsTEST/metar_load_funct.php on line 97

Warning: Illegal string offset 'degrees' in /var/www/html/pwsTEST/metar_load_funct.php on line 97
YC Temp
'.PHP_EOL;
YC Dewpoint
Y% Humidity
Temperature
0 KM/H
0 MPH
0 KTS
Calm
Due North

Wind
Data Offline
Pressure Y (hPa)- Y (in)
Visibility 0 (mi) - 0 (km)

Current Conditions
Y
Location Y 14(km)
Metar:
Y

Notice: Undefined offset: 1 in /var/www/html/pwsTEST/metar_popup.php on line 285

Notice: Undefined offset: 1 in /var/www/html/pwsTEST/metar_popup.php on line 286

Notice: Undefined offset: 2 in /var/www/html/pwsTEST/metar_popup.php on line 286

Notice: Undefined offset: 1 in /var/www/html/pwsTEST/metar_popup.php on line 287

Warning: gmmktime() expects parameter 1 to be integer, string given in /var/www/html/pwsTEST/metar_popup.php on line 288
Thu 1st January 10:00 am

Airport
  Metar Aviation API Data Provided by https://www.checkwx.com/ Icons created by weather34.com


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #349 on: February 14, 2019, 06:32:23 AM »
Hi Wim,
Just installed your BETA test code that includes Cumulus support.
You can see my site here... http://weather.skybase.net/pwsTEST/index.php
Everything is working except for METAR retrieval. Clicking on Current conditions -> "Nearby" produces the errors below ...
Code: [Select]
Warning: Illegal string offset 'observed' in /var/www/html/pwsTEST/metar_load_funct.php on line 50
. . . shortened . . .
Airport
  Metar Aviation API Data Provided by https://www.checkwx.com/ Icons created by weather34.com
The data retrieved for your airport
Code: [Select]
{"results":1,"data":["YRSI Invalid Station ICAO"]}You entered  at question "Enter your nearest airport code (XXXX)  . . . "  an invalid code  YRSI
That airport does not exist: https://en.wikipedia.org/wiki/List_of_airports_by_ICAO_code:_Y#YR

Wim
« Last Edit: February 14, 2019, 06:34:04 AM by wvdkuil »

Offline TSL

  • Posts: 7
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 60.0
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #350 on: February 14, 2019, 08:30:38 PM »
Doh!
 I had a dyslexic moment, it should be YSRI. :oops:

 I looked at that maybe ten times and didn't see the problem :x

thanks

Tim
« Last Edit: February 15, 2019, 12:06:44 AM by TSL »

Offline TSL

  • Posts: 7
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 60.0
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #351 on: February 15, 2019, 12:41:21 AM »
Hi Wim,

Now that I've had a little more time to do some testing I have found the following...

In the Moon phase pop-up the text is not fitting into the boxes, bottom box edges are across the text

The acknowledgement "Design based on weather34.com" on the bottom right is off the page

The site wont run on older Safari versions i.e.

 "GET /pwsTEST/index.php HTTP/1.1" 200 5870 "-" "Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1"

We get an error on the iPad - see pic


Serbian flag is missing from language selection

Temperature for today pop up is not showing data, nor is any of the others. see pics

 **** This appears to be intermittent since I've just checked it 4 hours later and there is graphs now!! ***


Today's forecast( Friday 15th) is showing the wrong icon, should be the same icon as Saturday. It picked the right icon at 11:10am today


RFE...

Password should not be stored in cleartext in settings file, see...
http://php.net/manual/en/faq.passwords.php


Contact info popup should only show enabled methods i.e. don't show twitter if account not configured.

Extras menu should only show configured options.

Extras menu items need config section in setup

When setting light theme, top bar stays dark.

the Fahrenheit indicator needs to move down a bit so it doesn't crowd the menu on iPhone

Site loads tested on the following platforms ...

Windows 7...
Firefox  60.5.1 ESR
Chrome 71.0.3578.98 (Official Build) (64-bit)

Linux RH7.6
Firefox 60.5.0 ESR
Chrome 3.0.3683.10 (Official Build) dev (64-bit)

iPhone 5S
iPhone OS 12_1_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1

ipad V2
iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1"

Nexus 7 tablet
Android 6.0.1 Chrome/70.0.3538.80


regards

Tim
http://weather.skybase.net/pwsTEST/index.php


« Last Edit: February 15, 2019, 04:07:39 AM by TSL »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #352 on: February 15, 2019, 07:31:54 AM »
@all beta-test  

Wim
« Last Edit: February 15, 2019, 04:50:01 PM by wvdkuil »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 71.0.3578.98
    • My PWS at Leuven Belgium Europe
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #353 on: February 15, 2019, 12:28:37 PM »
Hi Wim,
Now that I've had a little more time to do some testing I have found the following...
. . . shortened . . . The site wont run on older Safari versions i.e.
. . . Password should not be stored in cleartext in settings file, see...
. . . Contact info popup should only show enabled methods i.e. don't show twitter if account not configured.
. . . When setting light theme, top bar stays dark.
. . . the Fahrenheit indicator needs to move down a bit so it doesn't crowd the menu on iPhone
. . . Tim
I think you misunderstood the definition of "beta" test or,  English is not my native language, it was me who misunderstood it.

I can only assume that your current weather-website has all these errors already solved?
But when I checked, the same remarks are there also.  It would be more polite to  post "wishes" in the  wish-list topic.

This WD34 April version includes 3  weather-alarms, WXSIM is back, Canadian text forecast are included and about 40% of the html errors are removed. And one former WD, now WC user, wanted to continue to use so the Cumulus/WC/Weewx users can now choose between 2 versions.

For every new release of this "WD" version, all user remarks will get sorted and according to my available time, they will be implemented.

Therefor, please try to help this programmer find the errors and omissions,  do not waste my time with large lists of  discussion points.

Wim

P.S.  :oops:  #-o  :oops:
Sometimes my words sound to harsh. Sorry, So as an example, it took 4 hours to modify the contact-popup (bio-popup) .
It now hides twitter if there is no twitter-account (took approx. 5 minutes).

But it also has no html errors anymore, that took 80% of the time and as I hate unnecessary info, you can remove the links also from the pop-up and that plus testing took the remaining time.

https://validator.w3.org/nu/?doc=http://weather.skybase.net/pwsTEST/bio_popup.php  => checking ends with fatal after 8 errors

https://validator.w3.org/nu/?doc=http://wd34.weather-template.com/pwsTEST/bio_popup.php no html errors

There are still numerous CSS errors but they will be removed in the June release.
Demo: the pwsTEST/ version has the links visible.  The pwsWD/ version shows no links, still the areas are clickable.

Shouldn't  there be a facebook account added also?
« Last Edit: February 15, 2019, 03:21:31 PM by wvdkuil »

Offline TSL

  • Posts: 7
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 60.0
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #354 on: February 15, 2019, 07:59:15 PM »
I think you misunderstood the definition of "beta" test or,  English is not my native language, it was me who misunderstood it.

I can only assume that your current weather-website has all these errors already solved?
But when I checked, the same remarks are there also.  It would be more polite to  post "wishes" in the  wish-list topic.


My appologies, I didn't know about the "wishes" list - I will post future RFE's there. :)



P.S.  :oops:  #-o  :oops:
Sometimes my words sound to harsh. Sorry, So as an example, it took 4 hours to modify the contact-popup (bio-popup) .


Thats Ok, we all appreciate the effort you are doing to create this template and understand that it can be frustrating at times.

regards

Tim




Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • 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 #355 on: February 16, 2019, 08:39:06 AM »
Just a little off-topic  :wink:

@TSL  and all users of abbreviations in their posts

The WW forum caters for an international public with a lot of  Dutch, Spanish, Italian, Korean a.s.o visitors.
Maybe English is "spoken" all over the world when one is on vacation, but please refrain from using abbreviations such as RFE  as for over ?50%? of the forum visitors English is NOT their native language. 

All those non-native speakers often use  translate.google.com But that tool only knows that "RFE" is not English but it  uses" Translate from: Haitian Creole"  So when I read your post, I assumed it was a typo and ignored it, because my brain knows what it stands for. But my brain got it wrong, it was essential information and it seemed to mean  for @TSL and maybe other native english speaking software professionals: "Request for Enhancements"

For me, as an older European person, it definitely stands for  RadioFreeEurope,  for immigrants to the US => Request For Evidence (RFE)
The other meanings for RFE => https://en.wikipedia.org/wiki/RFE

A search for RFE on this forum yield 33 results of the rfe letters as (part of) a word  in posts. Only  the last one, the only one with the rfe as a separate  word is this topic.

IMHO IWBW NTU abbreviations when we want to make our point.
Wim

Offline Weather Display

  • Posts: 86,485
  • Davis VP2
  • New Zealand
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
    • Weather Display
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #356 on: February 16, 2019, 06:21:17 PM »
keep up the good work Wim
we all appreciate your dedication  :D

Offline TSL

  • Posts: 7
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Firefox 60.0
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #357 on: February 17, 2019, 12:53:26 AM »


IMHO IWBW NTU abbreviations when we want to make our point.
Wim

My apologies again !  #-o

As for myself, I work for one of the top computer companies in the world with 135,000+ employees in over 300 countries and the term RFE ( Request for Enhancement ) has always been understood in any conversation I've had with anyone anywhere and is considered universal.

That being said ... I shall refrain from using any abbreviations in future outside of the work environment in this forum  :D

regards

Tim

Offline bitsostring

  • Posts: 733
  • 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 #358 on: February 17, 2019, 11:06:39 AM »
Something funny in the Nearby metar pop-up this morning. . . Is this a CheckWX problem?
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,066
  • 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 #359 on: February 17, 2019, 11:25:56 AM »
Something funny in the Nearby metar pop-up this morning. . . Is this a CheckWX problem?
Suddenly all metar pop-ups, old or new, show a date of 1-1-1970 UTC and an error message when error reporting is on.
And you are the first to notice it?   Thanks  :D 
First make a copy of the current script and please test this version,
Wim

P.S.  "Is this a CheckWX problem" => yes
The date field in the json file now contains something more then the expected string:
Code: [Select]
"observed":"17-02-2019 <span class=\"tx-light tx-12\">@<\/span> 11:00Z",
« Last Edit: February 17, 2019, 11:35:06 AM by wvdkuil »