cloudy cloudy

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

hcorrin (+ 1 Hidden) and 1 Guest are viewing this topic.

Offline bitsostring

  • Posts: 610
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #15 on: January 02, 2019, 11:55:11 AM »
in the guide is written to set to WD "Home weather station" in Control Panel, but I do not have it, I have the latest version installed, why?

See reply #5, above.
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 971
  • 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 #16 on: January 02, 2019, 03:05:17 PM »
Hi everyone,
in the guide is written to set to WD "Home weather station" in Control Panel, but I do not have it, I have the latest version installed, why?
I am attaching the image
Thank you
http://wd34.weather-template.com/documentation/WDapi-upload-2019-01a.pdf
I adapted the sentence about the needed "unhide" file as it was overlooked easily.
Step 1
To use the api (lets call it WDapi for short) you first have to "unhide" the setup in WeatherDisplay.
Therefor you should create a file (can be empty) called
homeweatheron.txt in the same folder where WD is installed


Wim
« Last Edit: January 02, 2019, 03:07:01 PM by wvdkuil »

Offline bitsostring

  • Posts: 610
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #17 on: January 02, 2019, 03:14:46 PM »
Installed OK, but: Dark Sky API Forecast and Current Conditions not working (language is set to English); CheckWX API metar not working (for "nearby" EGPH); Sun, Moon & Space module not working; and no WU graphs. See http://swanston.maui.co.uk/pwsWD/

I have had server problems before with, e.g., the WU API in W34 setup, so I guess I'll speak to my service provider about that, but not sure about the missing module.
« Last Edit: January 02, 2019, 03:19:13 PM by bitsostring »
It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 971
  • 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 #18 on: January 02, 2019, 03:26:53 PM »
Installed OK, but: Dark Sky API Forecast and Current Conditions not working (language is set to English); CheckWX API metar not working (for "nearby" EGPH); Sun, Moon & Space module not working; and no WU graphs. See http://swanston.maui.co.uk/pwsWD/

I have had server problems before with, e.g., the WU API in W34 setup, so I guess I'll speak to my service provider about that, but not sure about the missing module.
It seems that you r website is not allowed to access files outside your server.
The scripts to load files from outside your server all time-out.
The sun script fails as a PHP function is not defined, first time I see that
Code: [Select]
Fatal error: Call to undefined function gregoriantojd() in /web/maui/swanston/htdocs/pwsWD/sun_block.php on line 7It is a standard PHP function for versions 4 to 7.2  but the provider should enable that (most do)
http://php.net/manual/en/calendar.installation.php
Quote
To get these functions to work, you have to compile PHP with --enable-calendar .
Wim
« Last Edit: January 02, 2019, 03:33:39 PM by wvdkuil »

Offline bitsostring

  • Posts: 610
  • Oregon Scientific WMR200
  • Edinburgh, UK
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
    • Home Weather Station
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #19 on: January 02, 2019, 04:19:41 PM »
It is a standard PHP function for versions 4 to 7.2  but the provider should enable that (most do)

Thanks, Wim, I'll pass that on when I ask about access to outside files. Does this lack of access explain the lack of pop-up d/m/y graphs?

If so, I'll ask my provider about that too, because the graphs on my old W34 version (at /pws, not /pwsWD) have recently stopped working as well.

It's meant to be fun. . .

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 971
  • 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 #20 on: January 02, 2019, 04:34:36 PM »
Thanks, Wim, I'll pass that on when I ask about access to outside files. Does this lack of access explain the lack of pop-up d/m/y graphs?

If so, I'll ask my provider about that too, because the graphs on my old W34 version (at /pws, not /pwsWD) have recently stopped working as well.
The scripts at pws/ work OK.The year 2019 just started so there is not that much data. Those scripts probably used "filegetcontents" to load the data

 pwsWD/ has no data at all, uses CURL to get the data.

So ask your provider what the problem with CURL is?  Maybe it has to be enabled for you?

Wim

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 971
  • 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 #21 on: January 02, 2019, 06:23:00 PM »
Very nice Wim...excellent work..

translated Spanish

http://www.meteotorrelavega.com/pwsWD/index.php?lang=nl
Please mail me  a zip of the Spanish language file. And I will add it for others.

Wim

Offline Boce

  • Posts: 38
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #22 on: January 02, 2019, 07:47:08 PM »
Great work and thanks for script at a begining of New year!
This is my page http://vreme.in.rs/knjazevac/pwsWD/
I have a problem to set Metar data from LYNI in Serbia. I set LYNI in EasyweatherSetup for WD but on main page I have data from EBBR Brussels.
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?
« Last Edit: January 02, 2019, 07:48:49 PM by Boce »

Offline eb3bvb

  • Posts: 152
  • Torrelavega, Cantabria
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • meteotorrelavega
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #23 on: January 02, 2019, 08:08:59 PM »
Very nice Wim...excellent work..

translated Spanish

http://www.meteotorrelavega.com/pwsWD/index.php?lang=sp

Offline johnmac78

  • Posts: 60
  • Westminster, Massachusetts USA
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Chrome 71.0.3578.98
    • Village at Old Mill - Weather
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #24 on: January 03, 2019, 01:26:07 AM »
Sorry, I did not write it clear enough in the settings script.
You set the link to  "../webcam/image.jpg" which is 100% correct
The scripts add a timestamp to the static image link to bypass old images in the browser cache.
If you change it in the settings to "../webcam/image.jpg?" (so add an ? to the link) it will function as it should.

Wim

Thanks Wim, that did the trick

John
John
scannorthcounty.net

Offline Boce

  • Posts: 38
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #25 on: January 03, 2019, 08:02:53 AM »
Wind run from clientraw [173] should not be converted from kts to m/s or km/h.
This data show "daily wind run (km)"

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 971
  • 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 #26 on: January 03, 2019, 09:05:24 AM »
Wind run from clientraw [173] should not be converted from kts to m/s or km/h.
This data show "daily wind run (km)"
OK, I was told that all wind measurements in the clientraw are in kts and assumed the same for windrun.
Should have checked that one as it is undefined (numeric)  in my  own clientraw checker
I will check with Brian and report back here.

Wim

Offline Boce

  • Posts: 38
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #27 on: January 03, 2019, 09:14:14 AM »
Can I get an explanation for the data that I rounded up on the picture that I attached?

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 971
  • 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 #28 on: January 03, 2019, 09:34:43 AM »
Can I get an explanation for the data that I rounded up on the picture that I attached?
The avatar on the left of your posts, points to an invalid website: http://www.knjazevac.co.yu/Meteo/wxindex.php

I checked your previous posts: is this the site you are discussing about: http://vreme.in.rs/knjazevac/pwsWD/  ?
You can check any module and the most recent data form WeatherDisplay as used by the template here
http://vreme.in.rs/knjazevac/pwsWD/w34_module_test.php
Click on "live data values" and they are displayed in the large box below. Those are the "recalculated" values from your upload file = clientraw
If they are uploaded by WDapi there is a button to display the raw WDapi values also
Code: [Select]
    [wind_direction] => 83
    [wind_direction_avg] => 259
wind_direction comes from clientraw [3]
wind_direction_avg from  clientraw [146]
===
For how the graphs are drawn and on which values they are based, I have to check with BrianUnderdown.

Wim

Offline Boce

  • Posts: 38
  • Knjazevac, Serbia
  • OS/Browser:
  • Win NT 10.0
  • Firefox 64.0
    • Meteo Knjazevac
Re: weather34 for WeatherDisplay (clientraw and WDapi)
« Reply #29 on: January 03, 2019, 09:59:50 AM »
The avatar on the left of your posts, points to an invalid website: http://www.knjazevac.co.yu/Meteo/wxindex.php

Sorry for bad link. I change that.


Code: [Select]
    [wind_direction] => 83
    [wind_direction_avg] => 259

wind_direction comes from clientraw [3]
wind_direction_avg from  clientraw [146]
===


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

 

cumulus