cloudy cloudy

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

0 Members and 2 Guests are viewing this topic.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • 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 #30 on: January 03, 2019, 10:15:26 AM »
Sorry for bad link. I change that.

I think that should be

10 minute average wind direction  from clientraw [176]

clientraw [146] is "Hr Wind Dir 01" that is data for wind direction 60min ago
You are right. A minor problem is that [176] is available only in recent clientraw files.
I would prefer [117], that contains the same value. I check your clientraw at: http://www.weerstation-leuven.be/weather2/index.php?p=93-6
I will have to add code to check if [176] exists when using that one.
For now, you can change it in line 143 of w34_livedata.php and i will put the change in the intermediate update.

Thanks for spotting this error,
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 Boce

  • Posts: 46
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #31 on: January 03, 2019, 10:26:27 AM »
I change

Code: [Select]
$weather["wind_direction_avg"]  = $wd[117];
and

Code: [Select]
$weather["wind_run"]            = $wd[173];
I think that now work fine :)
« Last Edit: January 03, 2019, 10:55:11 AM by Boce »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • 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 #32 on: January 03, 2019, 10:39:28 AM »
I change
. . . shortened . . .
Code: [Select]
$weather["wind_run"]            = $wd[173];
I think that now work fine :)
The line for windrun should be
Code: [Select]
$weather["wind_run"]            = convert_speed ($wd[173],'km/h',$to);It would not translate to miles if a visitor switched to that on your site. Check the demo site
http://wd34.weather-template.com/pwsWD/?units=us  => 19.9 mi
http://wd34.weather-template.com/pwsWD/?units=metric => 32 km
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 Boce

  • Posts: 46
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #33 on: January 03, 2019, 10:45:46 AM »
The line for windrun should be
Code: [Select]
$weather["wind_run"]            = convert_speed ($wd[173],'km/h',$to);It would not translate to miles if a visitor switched to that on your site. Check the demo site
http://wd34.weather-template.com/pwsWD/?units=us  => 19.9 mi
http://wd34.weather-template.com/pwsWD/?units=metric => 32 km
Wim

but on http://wd34.weather-template.com/pwsWD/?units=scandinavia => 9 km


Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • 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 #34 on: January 03, 2019, 10:50:34 AM »
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 Boce

  • Posts: 46
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #35 on: January 03, 2019, 10:54:21 AM »
That should be 9 m/s
Thanks for spotting that bug.  :oops:
Wim

but can not convert km to m/s. Should be stay

19.9 mi for us
32 km for metric
32 km for scandinavia metric



This is my page http://vreme.in.rs/knjazevac/pwsWD/
I set Dark sky forecast and in main page work fine but in Extras Dark Sky forecast show for  Leuven-Sluispark.
And one more question. Is there a  (wide)16:9 version?

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • 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 #36 on: January 03, 2019, 11:08:45 AM »
but can not convert km to m/s. Should be stay
19.9 mi for us
32 km for metric
32 km for scandinavia metric
I tried to use "meter". Have to find a solution for this , as there is for now no distance setting.Will do that a.s.a.p.
Quote
I set Dark sky forecast and in main page work fine but in Extras Dark Sky forecast show for  Leuven-Sluispark.
That is an example of "extra pages " in the menu using an iframe. I used one of my own pages for that
Explained here: http://wd34.weather-template.com//documentation/WD34-questions.pdf
=> Menu options
=> Display Extra links in Menu (default false)
The supporting script is w34_frames.php where you setup the links to the extra page(s) you want to use.
Quote
And one more question. Is there a  (wide)16:9 version?
No, not as far as i know.
And  as the design is strictly BrianUnderdown (weather34 on this forum) you should ask him.
I am available for support  of the clientraw/WDapi 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/

Offline Boce

  • Posts: 46
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #37 on: January 03, 2019, 11:21:25 AM »
I tried to use "meter". Have to find a solution for this , as there is for now no distance setting.Will do that a.s.a.p.That is an example of "extra pages " in the menu using an iframe. I used one of my own pages for that
Explained here: http://wd34.weather-template.com//documentation/WD34-questions.pdf
=> Menu options
=> Display Extra links in Menu (default false)
The supporting script is w34_frames.php where you setup the links to the extra page(s) you want to use.No, not as far as i know.
And  as the design is strictly BrianUnderdown (weather34 on this forum) you should ask him.
I am available for support  of the clientraw/WDapi version.

Wim

Thank you for help!
I set DarkSky and EWN forecast to my town Knjazevac in w34_frames.php :)

Offline eb3bvb

  • Posts: 157
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • meteotorrelavega
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #38 on: January 03, 2019, 11:38:03 AM »
Hello, when I do Test / Update for the api I get this:
any suggestions
Thank you

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • 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 #39 on: January 03, 2019, 12:16:24 PM »
Hello, when I do Test / Update for the api I get this:
any suggestions
Thank you
The script works at your site.
http://www.meteotorrelavega.com/pwsWD/w34_WDapi.php?test&d=1
Returns correctly the error message.
Your screenshot shows more like a "page not found" type error.
Check the spelling as we can not see what is in the URL box, should be  w34_WDapi.php  without any spaces after it.
===
It does not upload yet as the data on your site is still the original download test-data
http://www.meteotorrelavega.com/pwsWD/w34_module_test.php => click on "Show WDapi values"
or use http://www.meteotorrelavega.com/pwsWD/jsondata/WDapi.txt

 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 Boce

  • Posts: 46
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #40 on: January 03, 2019, 01:16:45 PM »
Should there be something else to be changed in the script, except for the translation of lang_extra.txt
I make lang_sr.txt with some part of serbian translation and upload on my server but http://vreme.in.rs/knjazevac/pwsWD/index.php?lang=sr have not serbian translate.

Offline eb3bvb

  • Posts: 157
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • meteotorrelavega
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #41 on: January 03, 2019, 01:18:46 PM »
thanks, a spelling error

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,344
  • 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 #42 on: January 03, 2019, 01:25:38 PM »
Should there be something else to be changed in the script, except for the translation of lang_extra.txt
I make lang_sr.txt with some part of serbian translation and upload on my server but http://vreme.in.rs/knjazevac/pwsWD/index.php?lang=sr have not serbian translate.
Yes, it needs more as the scripts do not know about the 'sr' language. It is on the f
There are only 4 languages in the download.
  • If you want to add your own language, make a copy of pwsWD/languages/lang_extra.txt and do the translations.
  • You then rename the current pwsWD/languages/lang_nl.txt to lang_xxxx.txt . And the adapted copy to lang_nl.txt
    By selecting "dutch (=nl)" as the language in the menu you can test every block to check the translations.
  • Often you have to trim them till they fit. So carefully check all blocks!
  • When you are satisfied with the result, sent me a mail from the weather-watch forum with the zipped language file
  • I will test and install the language for an intermediate update and next release.
We already did three languages that way.

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 eb3bvb

  • Posts: 157
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • meteotorrelavega
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #43 on: January 03, 2019, 01:53:01 PM »
I had to deactivate line 261 of:
w34 livedata.php
because it gives me error
// $ weather ["lux"] = number_format ($ wd [41] /0.0079*0.95299*1.0012,0, '.', '');
any suggestions
Thank you #-o #-o

Offline GW400

  • Posts: 83
  • Klepp, Norway
  • OS/Browser:
  • Win NT 10.0
  • Chrome 71.0.3578.98
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #44 on: January 03, 2019, 01:56:40 PM »
There  has been other discussions about support for WeatherDisplay in the "weather34" template as designed and developed by BrianUnderdown.
BrianUnderdown now fully supports the Meteobridge version at his template-site.
You can check there (scroll down to Notice Please Read) which other versions are supported by which person and where to find those versions.

As from today,  the first release of "weather34 version for WeatherDisplay" is available for download at  http://wd34.weather-template.com/index.php
  • This version supports FTP-upload of clientraw.txt and HTTP-upload using the WDapi.
  • The current conditions can be from WD-clientraw, DarkSky (needs an API-key) or METAR  (needs an API-key).
  • Forecast data only from DarkSky (+API-key)  for this version, probably wxsim and met.no will be available in the next release
  • Next release (April) will also use the latest css I just received from Brian Underdown
  • Graphs can be generated from your WU-data or from a SQL-table which is relative easy to setup
Please use this  post for comments and questions for the WD-version so we keep them separated from the discussions about the other versions.

Wim

What is the recommended install procedure for installing on Ubuntu 18.10?
I tried to follow this https://weather34.com/homeweatherstation/guides/setupubuntu.html, but ended up having this issue:
502 Bad Gateway
nginx/1.14.2
Regards G400