***closed*** weather34 for WeatherDisplay (clientraw and WDapi)

Brian,
Thanks - I should have RFTM. :oops: :oops: :oops: I will have play later.

Chris

I do not see the W34 logo in the WD version 10,37s85
what to do
Thank you

see Brian’s reply above

Chris

Having an issue setting up my webcam with Weather 34 for Weather Display.

Weather 34 is in the pwsWD directory (Public_html/pwsWD/)

The webcam is at (public_html/webcam/image.jpg) in the settings page I have tried all the following - (./webcam/image.jpg ) (…/webcam/image.jpg) I also tried adding the public_html/webcam/image.html.

Any suggestions would be greatly appreciated.

Thank you, John

$webcam_img = ‘…/webcam/jpgwebcam.jpg’;

Works for me here…

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

This is normal, to do the translation
is in lang_extra.txt

days

                         |Fri |Fri |
                       [color=red]   |Mon|Mon|
                         |Mon |Mon [/color]|
                         |Sat |Sat |
                         |Sun |Sun |
                        |Thur |Thur |
                         |Tue |Tue |
                         |Wed |Wed |

The re are a lot of scripts with a lot of words which should be translated
If you want to make your own translation, as an example to Spanish, translate only the right part.
So


                              |Mon|Lun|
                             |Mon |Lun |

If that is not your question, please clarify what you want to ask. Leave a space in the translation as that is probably needed to keep the words apart.
Wim

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


See reply #5, above.

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

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

Fatal error: Call to undefined function gregoriantojd() in /web/maui/swanston/htdocs/pwsWD/sun_block.php on line 7

It 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

To get these functions to work, you have to compile PHP with --enable-calendar .
Wim

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

Please mail me a zip of the Spanish language file. And I will add it for others.

Wim

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?

Very nice Wim…excellent work…

translated Spanish

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

Thanks Wim, that did the trick

John

Wind run from clientraw [173] should not be converted from kts to m/s or km/h.
This data show “daily wind run (km)”