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

Try here. Thanks for looking.
http://www.maryweather.net.au/weather/pwsWD/

You used the wrong coordinates, this is from the DarkSky data which locates your station north of Hawai i in the ocean.

latitude":25.5225,"longitude":-152.692,

Maryborough AU coordinates are
-25.539595 = minus = south of the equator
152.6654131 = plus = right of Greenwhich.

DO NOT use the + or - before the coordinates as set in WD, but use the “official” + and -.

Wim
P.S. It will take about an hour before the changes of the coordinates take effect as the DarkSky data is cached.

I thought that I had tried all of them.
Again, tanks you very much.

Still having problems with the metar…


:oops:
forgot to update the pwsWD/ version also. Attached a new version of the script


metar_load_funct.php.zip (3.68 KB)

Good deal. Anxiously awaiting the April release…

You should test the latest beta fro March 1, is as good as the April release, but it still has all error reporting switched on.
http://wd34.weather-template.com/beta.php

Wim

Corrected on both points. All menu items are now translated. So "FIRST SETUP (protected) " can be translated also.
Check the latest beta at http://wd34.weather-template.com/pwsTEST/index.php?lang=nl

I will update the other language files before the end of March and will also move the english .php to a .txt file also.

Wim

In April release there is a “lightgrey” background-color.

<img src="http://www.weewx.com/weewx-logo-128x128.png" width="35" height="35" alt="Weewx" 
         style="background-color: lightgrey; padding: 2px;">

Looks good in Dark and Light I think.


weewx.jpg

Good job, Wim! (But the “FIRST SETUP” heading “Instellingen” is in cap and lower case?)

One can translate as one wants.
|FIRST SETUP|INSTELLINGEN|
of
|FIRST SETUP|Instellingen|
But it would be better to be more consistent, :oops:
I prefer lowercase as it reads easier. So I changed the language file for Dutch to have lowercase entries in the menu.
Wim

Should this code snippet be inserted into w34_index.php?

No this is strictly BETA.
In the beta/April release I moved the images from index.php and the frames.php to the settings. So that we can add and change it at one place without changing at multiple others.

Wim

w34_cron_stationcron.php is not executed. I can run it manually using _test.php?test=w34_cron_stationcron.php.

  1. [li]What is the URL?
    PLEASE understand that you are not the only one using these scripts and I have to support my own scripts also on four forums in multiple languages. I am not clairvoyant and can not remember every individual request[/li]
    [li]As you state that the cron-job runs from the browser, there seems to be no problem with the cronjob itself.
    So please tell me what your problem is.[/li]
    [li]Adding _test.php only adds the display of all debug info.
    Do not use that when running a job from WeatherDisplay or whatever cron-server-program you are using.
    Cron servers do not like to get large blobs of data from the jobs they start.[/li]
  2. http://wd34.weather-template.com/documentation/WDapi-stationcron-2019-01.pdf

Wim

Thank you!
Sorry to Wim that I forgot to include url :frowning:

My problem is that cron job is not executed.
I use WeeWX. WDapi is not possible with current setup.
http://weather.meisal.com

Cronjobs are started from somewhere else and only executed on your weather34/ website.
WeatherPrograms such as WeatherDisplay or Meteobridge are able to function as a cron-server themselves.
Small linux computers such as RaspBerry have built in cron-servers also.

Or you can use a free (or almost free) con-provider.
There are multiple discussions on the weather-fora about which providers can be used.
Sometimes your website provider has a free cron service also.
Some of the names I got when using Google Free cronjobs - from minutely to once a year. - cron-job.org https://www.cronjob.de/ https://www.setcron.com/

But this topic/discussion is not the right place and by hiding it here in this topic you will get far less answers than starting a topic such as" Which (free) cronjob server should I use?"

Wim

This states why the script is not executed when not using programs like WeatherDisplay.
It was not very clear anywhere that I need to create a cron job myself. At least could not find it anywhere.
With this knowledge I’m able to move forward.
Thank’s again for helping!