Weather-Watch.com

Weather and the Internet => Creating Weather Web Sites => Custom Templates and Scripts => Topic started by: wvdkuil on April 11, 2019, 12:39:28 PM

Title: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 11, 2019, 12:39:28 PM
Please post all remarks and questions about the normal April release in this topic.
For ideas about new functionality, use this "wish-list topic"  (https://www.weather-watch.com/smf/index.php/topic=67497.new)

Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 11, 2019, 07:31:21 PM
Installed the April release, saved easyweathersetup and got the expected message: "Unable to open w34_settings1.php file check file permissions !"

With every version I have had to alter the permission for this file on my server, but this time there is no file called w34_settings1.php?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 11, 2019, 08:08:40 PM
Installed the April release, saved easyweathersetup and got the expected message: "Unable to open w34_settings1.php file check file permissions !"

With every version I have had to alter the permission for this file on my server, but this time there is no file called w34_settings1.php?
You should definitely not copy scripts from one version to another. Never, until the December version.

Only after the basic scripts all work, you can copy your own scripts to the new version.

The fresh install will start index.php => detect there is no settings1 and will start the easyweather setup.
There is no settings1 file as there are new  / rearranged and renamed settings which need their default values.
If that not works, please post the URL so that i can take a look.

Wim


Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 11, 2019, 09:00:25 PM
You should definitely not copy scripts from one version to another. Never, until the December version.

I did not copy anything, I just uploaded the whole new unzipped pwsWD directory and went to /pwsWD/index.php.

Quote
The fresh install will start index.php => detect there is no settings1 and will start the easyweather setup.

It did start easyweather. I filled in a few things and tried to save the configuration, which is when I got the error message shown. That is the only reason I was looking for w34_settings1.php.

Quote
There is no settings1 file as there are new  / rearranged and renamed settings which need their default values.

That's what saving the easyweather settings is supposed to do, but I can't save it until I can change the permissions. Catch 22.

Quote
If that not works, please post the URL so that i can take a look.

I'll try again tomorrow and let you know.

EDIT: OK, couldn't wait so I tried again, same result. For URL, go to my existing web page (left) and change /pws to /pwsWD.

Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 12, 2019, 07:01:09 AM
I did not copy anything, I just uploaded the whole new unzipped pwsWD directory and went to /pwsWD/index.php.

It did start easyweather. I filled in a few things and tried to save the configuration, which is when I got the error message shown. That is the only reason I was looking for w34_settings1.php.

That's what saving the easyweather settings is supposed to do, but I can't save it until I can change the permissions. Catch 22.

I'll try again tomorrow and let you know.

EDIT: OK, couldn't wait so I tried again, same result. For URL, go to my existing web page (left) and change /pws to /pwsWD.
OK, I tried, same result.

Very strange webserver which does not allow Apache to write new files. I wonder if the caching of forecast files will work?
Code: [Select]
        $fp = fopen($sttngs_fl, "w") or die("Unable to open w34_settings1.php file check file permissions !"); https://www.php.net/manual/en/function.fopen.php
Quote
'w'   Open for writing only; place the file pointer at the beginning of the file and truncate the file to zero length. If the file does not exist, attempt to create it.
I attach an un-used w34_settings1.php
Can you please test:
1. Unzip => upload to server/pwsWD/
2. check with your ftp program what the permissions are, and make a note of it
3. go to http://swanston.maui.co.uk/pwsWD/_test.php , this will start the main screen => go to settings use default password
4. do not change anything, only go to the green box and save.

If that not work, make a note of the permissions again and reset the permissions of w34_settings1.php  to 755

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 12, 2019, 08:45:18 AM
OK, I tried, same result.

I attach an un-used w34_settings1.php

No attachment?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 12, 2019, 08:57:45 AM
No attachment?
:oops:
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 12, 2019, 09:10:32 AM
:oops:

Thanks. I doubt if the first test will work because the server is not allowed to write to any file that I upload until the permissions are changed. . . but I will follow instructions and report back  :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 12, 2019, 09:12:50 AM
Thanks. I doubt if the first test will work because the server is not allowed to write to any file that I upload until the permissions are changed. . . but I will follow instructions and report back  :)
Sorry, but what kind of server is that?
Who is your provider?

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 12, 2019, 11:12:41 AM
Who is your provider?

He's family, and I have to do what I'm told  :)

Anyway, first test failed as expected so I have changed the permissions for w34_settings1.php and that seems fine. Now I just have to add a curlopt_proxy line to w34_load_files.php and I should be good to go.

Do I need to check anything re forecast caches?

Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 12, 2019, 11:21:16 AM
He's family, and I have to do what I'm told  :)

Anyway, first test failed as expected so I have changed the permissions for w34_settings1.php and that seems fine. Now I just have to add a curlopt_proxy line to w34_load_files.php and I should be good to go.

Do I need to check anything re forecast caches?
All retrieved data from WU (graphs) Darksky (forecast)  metoalarm (weatheralarms) and so on are stored in the jsondata/ and charswudata/ folder.
It is not known on forehand what the filenames are as sometimes a code or a language is inside the name of the file.
Examples: wufct_en_s.txt   warningNL014 

With normal providers one can give the "folder and its contents" the permission "to be written".

succes, Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 12, 2019, 06:20:20 PM
Now I just have to add a curlopt_proxy line to w34_load_files.php and I should be good to go.

Well, that didn't work: none of the outside files are being loaded. Guess I'll have to ask my provider again. . .

EDIT: But changing the permissions for /chartswudata and /jsondata did  :D

Files were loaded but couldn't be saved. All seems OK now. Thanks for the advice, Wim.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: SandhurstWX on April 12, 2019, 09:00:21 PM
All working okay for me, https://www.sandhurstweather.org.uk/pwsWD/index.php.

Thanks Win.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: drparker151 on April 13, 2019, 05:48:50 AM
Wow I love this thanks for putting together.

I've got one question and wonder what I'm doing wrong.  I get a 24 hour clock displayed even though I've picked 12 hour in the display and set times to g:i:s a.

In the attached screen shot you can see 24 hour time in the clock box, however the temp box is picking up the correct format.

Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 13, 2019, 09:43:32 AM
I get a 24 hour clock displayed even though I've picked 12 hour in the display and set times to g:i:s a.

See here: https://www.weather-watch.com/smf/index.php/topic,67675.msg544892.html#msg544892
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 13, 2019, 12:36:04 PM
Wow I love this thanks for putting together.
I've got one question and wonder what I'm doing wrong.  I get a 24 hour clock displayed even though I've picked 12 hour in the display and set times to g:i:s a.
In the attached screen shot you can see 24 hour time in the clock box, however the temp box is picking up the correct format.
@bitsostring already pointed you to the previous discussion.
Did not find enough time to test the 12 < > 24 hour clock.
Please make a copy of your current clock_small.php script and replace with this test version.
When the setting is for 24 hrs no changes.
When easyweather is set to 12 hr clock it will display the format as in the attached screenshot. 

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: drparker151 on April 13, 2019, 12:55:33 PM
Excellent, that works great. :D

thanks,
Drew
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 13, 2019, 01:22:49 PM
I see Celcius is still spelled wrongly in the small balloon on Temp block. . .

Line 216 of temperature_block.php:

Code: [Select]
215 else {  $tmp2   = $tmp;
216         $txt    = 'Celcius';
217         $extra  = '';}
Title: Re: HWS-template (WD34 / weather34) April release
Post by: johnmac78 on April 13, 2019, 01:49:27 PM
I believe this was discussed previously, but I cannot find any info - Is there any way to speed the refresh rate on the forecast block and current conditions block? They are showing old data and both blocks are useless if you are just opening weather34 for a short time, otherwise great program.

Thanks,

John
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 13, 2019, 02:53:09 PM
I believe this was discussed previously, but I cannot find any info - Is there any way to speed the refresh rate on the forecast block and current conditions block? They are showing old data and both blocks are useless if you are just opening weather34 for a short time, otherwise great program.
Thanks,
John

When using the 5 minute cron-job  => all data is always recent. If not, there is a problem.
So I assume, based on your question,  that you are NOT running a 5 or 10 minute cron-job?

Please always type the URL to the template so i can check if there is a problem.

The weather34/ based template works as follows:
1. A person (you) visits the site.
2. The index.php draws the blocks on the screen without any data inside the blocks
3. The index.php loads updater.php which sends a bunch of small javascript-functions to the browser
3.1 First javascript-function starts a server-side "load_files" php-script which re-loads all external data files if they are to old
3.2 The other javascript-functions will each start (and refresh) a server-side php-script to fill one block with data.

All blocks, including the forecast block, when started by their javascript-function, process the available data, recent or old does not matter to a block script
The forecast blocks are refreshed every 5-6 minutes and will process the then available data.

===
Reloading external data:
The darkSky and WU api have a maximum number of allowed free accesses / day.
The forecast and CCN (=current conditions)-data is fetched by the "load_files" script based on the age of the data
DarkSky and WU-forecast max-age 1800 seconds = 0.5 hour
METAR default max-age 900 seconds

Without the cron-job,  if the data is old,  one has to wait 1 or 2 seconds and do a page-refresh. The recent data will be shown

===

A 5 minute  cron-job will also load the same "load_files" script but the allowed age  reduced with 20%.
This makes sure that all visitors will always get the recent data.

Wim

Title: Re: HWS-template (WD34 / weather34) April release
Post by: drparker151 on April 13, 2019, 10:08:23 PM
Just spotted something else.  When you pick short time = "g:i:s a" in easysetup it only saves "g:i:s" in w34_settings1.php.  I have manually edited w34_settings to add the a and that works. However if I go back into easysetup it reverts to just "g:i:a" and I have to do another manual edit.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: johnmac78 on April 13, 2019, 11:39:06 PM
When using the 5 minute cron-job  => all data is always recent. If not, there is a problem.
So I assume, based on your question,  that you are NOT running a 5 or 10 minute cron-job?

Please always type the URL to the template so i can check if there is a problem.

The weather34/ based template works as follows:
1. A person (you) visits the site.
2. The index.php draws the blocks on the screen without any data inside the blocks
3. The index.php loads updater.php which sends a bunch of small javascript-functions to the browser
3.1 First javascript-function starts a server-side "load_files" php-script which re-loads all external data files if they are to old
3.2 The other javascript-functions will each start (and refresh) a server-side php-script to fill one block with data.

All blocks, including the forecast block, when started by their javascript-function, process the available data, recent or old does not matter to a block script
The forecast blocks are refreshed every 5-6 minutes and will process the then available data.

===
Reloading external data:
The darkSky and WU api have a maximum number of allowed free accesses / day.
The forecast and CCN (=current conditions)-data is fetched by the "load_files" script based on the age of the data
DarkSky and WU-forecast max-age 1800 seconds = 0.5 hour
METAR default max-age 900 seconds

Without the cron-job,  if the data is old,  one has to wait 1 or 2 seconds and do a page-refresh. The recent data will be shown

===

A 5 minute  cron-job will also load the same "load_files" script but the allowed age  reduced with 20%.
This makes sure that all visitors will always get the recent data.

Wim

Wim,

Thanks for the detailed explanations. Where do I find info on these cron-jobs, are they part of WD or Weather34? I have not seen any discussion about these cron-jobs, but I do see a tab in WD for Weather34 with no explanation.

Thanks,

John
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Weather Display on April 13, 2019, 11:45:50 PM
you can set the cron jobs up in WD under control panel, webfiles/web page setup, custom web page setup
Title: Re: HWS-template (WD34 / weather34) April release
Post by: johnmac78 on April 14, 2019, 02:27:41 AM
you can set the cron jobs up in WD under control panel, webfiles/web page setup, custom web page setup

I am using the Darksky forecast, can I update that from WD?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 14, 2019, 07:07:36 AM
I am using the Darksky forecast, can I update that from WD?
Who to use to run the cron-job
As the cron-job runs on your website, the website itself can not start the cron-job.
Your website provider probably has a cron-job facility and there are other free or paid-for cron-job-providers
But WD is already running 24/7 and has al cron-job services built in.  No need to use another way.

How does it work:
WD will start the cron-job with a http call to your website => that is the only thing WD has to do
The "cron-job" will be run on your webserver as it is a normal PHP script
The "cron-job" will load the  server-side "load_files" php-script which re-loads all external data files if they are to old, but this time with 80% of the allowed age

Some documentation
http://wd34.weather-template.com/ => Documentation => http://wd34.weather-template.com/documentation/WDapi-stationcron-2019-01.pdf

PLEASE ALWAYS SUPPLY THE URL TO YOUR WEBSITE
Sometimes a small problem or a provider-setting inhibits loading the external data.
Only with the link  the poeple who try to help you, can check if there is another problem

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Torjan on April 14, 2019, 11:38:17 AM
Hi!
For you who use the new language section xx, just a tip.

Should you use WXsim do not forget and create plaintext-parser-lang-xx.txt to get the right language in the weather forecast.

Torjan.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 15, 2019, 05:25:38 PM
Personal opinion: I have to say I do not like the new style of pop-up, with a really black background. (For comparison, the "Meteors" pop-up still has the original format.)

I have one (Moon info) in my original version setup, too. Tried to change the background colour today but the moonphase "myMoonlight" object has a black background as well. . .

Didn't really notice this at all in beta: I think I've only just realised what my "problem" is.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 16, 2019, 04:23:44 PM
Personal opinion: I have to say I do not like the new style of pop-up, with a really black background. (For comparison, the "Meteors" pop-up still has the original format.)

I have one (Moon info) in my original version setup, too. Tried to change the background colour today but the moonphase "myMoonlight" object has a black background as well. . .

Didn't really notice this at all in beta: I think I've only just realised what my "problem" is.
This will all be solved in the new css.
This version has a slight "off-black" #1A1C20 back-ground which is used for the fill of the moon back-ground also.
You can adapt it at line 221
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 16, 2019, 06:33:24 PM
This version has a slight "off-black" #1A1C20 back-ground which is used for the fill of the moon back-ground also.

Thanks, Wim. Looks much better alongside the other pop-ups in the original release  :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: NorCal Dan on April 16, 2019, 11:51:49 PM
Very nice, I like it!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: GW400 on April 25, 2019, 05:15:13 AM
Who to use to run the cron-job
As the cron-job runs on your website, the website itself can not start the cron-job.
Your website provider probably has a cron-job facility and there are other free or paid-for cron-job-providers
But WD is already running 24/7 and has al cron-job services built in.  No need to use another way.

How does it work:
WD will start the cron-job with a http call to your website => that is the only thing WD has to do
The "cron-job" will be run on your webserver as it is a normal PHP script
The "cron-job" will load the  server-side "load_files" php-script which re-loads all external data files if they are to old, but this time with 80% of the allowed age

Some documentation
http://wd34.weather-template.com/ => Documentation => http://wd34.weather-template.com/documentation/WDapi-stationcron-2019-01.pdf

PLEASE ALWAYS SUPPLY THE URL TO YOUR WEBSITE
Sometimes a small problem or a provider-setting inhibits loading the external data.
Only with the link  the poeple who try to help you, can check if there is another problem

Wim
I'm using WeeWx and can't use WD to run the cron jobs.
Is it then recommended to manually define cron jobs running the same .py scripts as when using WD?
My website is at weather.meisal.com and I have created three jobs (os i Ubuntu 18.04) running the mentioned scripts. ...stationcron is running fine as scheduled (every 5 min), but the ..empty and ...addtoyear jobs does not work.
G400
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 25, 2019, 10:54:30 AM
I'm using WeeWx and can't use WD to run the cron jobs.
Is it then recommended to manually define cron jobs running the same .py scripts as when using WD?
My website is at weather.meisal.com and I have created three jobs (os i Ubuntu 18.04) running the mentioned scripts. ...stationcron is running fine as scheduled (every 5 min), but the ..empty and ...addtoyear jobs does not work.
G400
Running the station-cron as test in the browser returns:
Quote
w34_cron_stationcron.php (28) version =>w34_cron_stationcron.php|00|2018-12-29|
. . . shorted all load data messages . . .
w34_load_files.php (129) purplair sensor not defined
w34_load_files.php (236) File not old enough (910/2880 seconds)https://api.waqi.info/feed/geo:59.014728;6.902158/?token=_API_SETTING_

No loading of DB needed
. . . shortened , removed trace . . . 
success files loaded +to day file

Running the add-to-year-cron http://weather.meisal.com/_test.php?test=w34_cron_addtoyear.php as test in the browser returns:
Quote
No database usage allowed according to the settings

Please check your settings, you do not allow a database to be used.
When you are uploading to WeatherUnderground this is the correct setting.

When not uploading to WU you should let the stationcron upload to an sql table.
Then the two other cron-jobs can convert the sql-data to month and year files

Please replace current version of station-cron with attached one so that I know which version you use.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: GW400 on April 25, 2019, 09:23:09 PM
Running the station-cron as test in the browser returns:
Running the add-to-year-cron http://weather.meisal.com/_test.php?test=w34_cron_addtoyear.php as test in the browser returns:
Please check your settings, you do not allow a database to be used.
When you are uploading to WeatherUnderground this is the correct setting.

When not uploading to WU you should let the stationcron upload to an sql table.
Then the two other cron-jobs can convert the sql-data to month and year files

Please replace current version of station-cron with attached one so that I know which version you use.

Wim

Inserted w34_cron_stationcron.php you attached to last message and also enabled the option "Database uses standard PHP connection..." in settings.

Manually executed all cron jobs:

http://weather.meisal.com/_test.php?test=w34_cron_stationcron.php
w34_cron_stationcron.php (28) version =>w34_cron_stationcron.php|00|2019-04-25|
w34_load_files.php(23) loaded  =>w34_load_files.php|00|2019-04-10|
....
w34_settings.php (218) $units =scandinavia $windunit=m/s $tempunit=C $rainunit=mm $pressureunit=hPa $distanceunit=km $wu_unit=m
w34_load_files.php (32) include  =>w34_common.php
w34_common.php (26) version =>w34_common.php|00|2019-01-03|
......
w34_cron_stationcron.php (80) data correctly loaded to database
w34_cron_stationcron.php (89) include_once =>w34_livedata.php
w34_cron_stationcron.php (99) Data saved to chartsmysql/result.csv
success files loaded +to db +to day file

http://weather.meisal.com/_test.php?test=w34_cron_addtoyear.php
object(mysqli_result)#2 (5) {
  ["current_field"]=>
  int(0)
  ["field_count"]=>
  int(12)
  ["lengths"]=>
  NULL
  ["num_rows"]=>
  int(1)
  ["type"]=>
  int(0)
}
string(170) "MAX_timestamp,MAX_outsideTemp,MIN_outsideTemp,MAX_dewpoint,MIN_dewpoint,MAX_raintoday,MAX_windgust,MAX_windSpeed,MAX_radiation,MAX_barometer,MIN_barometer,SUM_lightning,
"
string(74) "2019-04-25 22:31:33,9.3,0.0,5.80,-1.80,0.00,64.4,51.5,0.00,1015.10,0.00,0,"
success
w34_cron_addtoyear.php (28) version =>w34_cron_addtoyear.php|00|2018-12-29|
w34_cron_addtoyear.php (31) include_once =>w34_settings.php
w34_settings.php (25) version =>w34_settings.php|00|2019-04-10|
w34_settings.php (28) include =>w34_settings1.php
w34_settings1.php (4) version =>w34_settings1.php|00|2019-04-25|
w34_settings.php (218) $units =scandinavia $windunit=m/s $tempunit=C $rainunit=mm $pressureunit=hPa $distanceunit=km $wu_unit=m

http://weather.meisal.com/_test.php?test=w34_cron_empty.php
success 1

bool(true)
-2

All three script jobs seems to work when run manually.

Added to the following jobs within the context of the user running WD34:
su <user>
crontab -e

Then added the following:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * php -q /path/w34_cron_stationcron.php
58 23 * * * php -q /path/w34_cron_addtoyear.php
0 0 * * *   php -q /path/w34_cron_empty.php

Note: "path" is not the real path

I will let it run until tomorrow and check again, but to me it seems unlikely it will not work when run as cron jobs when executed manually through browser works
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 25, 2019, 09:46:04 PM
Quick question: where do I find the meteoalarm.eu "Europe: code for your area, example BE004" mentioned in easyweathersetup?

I have only entered "UK" so far. . .
Title: Re: HWS-template (WD34 / weather34) April release
Post by: hcorrin on April 25, 2019, 10:04:54 PM
Try UK004
Title: Re: HWS-template (WD34 / weather34) April release
Post by: GW400 on April 26, 2019, 06:17:02 AM
Inserted w34_cron_stationcron.php you attached to last message and also enabled the option "Database uses standard PHP connection..." in settings.

Manually executed all cron jobs:

http://weather.meisal.com/_test.php?test=w34_cron_stationcron.php
w34_cron_stationcron.php (28) version =>w34_cron_stationcron.php|00|2019-04-25|
w34_load_files.php(23) loaded  =>w34_load_files.php|00|2019-04-10|
... the rest in previous port...
I will let it run until tomorrow and check again, but to me it seems unlikely it will not work when run as cron jobs when executed manually through browser works

w34_cron_addtoyear.php is failing when run as cron job, but running in browser did work:
Error message when run as cron job: Couldn not write headers to chartsmysql/2019_04.csv
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 26, 2019, 07:08:21 AM
w34_cron_addtoyear.php is failing when run as cron job, but running in browser did work:
Error message when run as cron job: Couldn not write headers to chartsmysql/2019_04.csv

The error message tells us that the cron-job when run form within the server is not allowed to write to the file and or folder.

So set the permissions (using your FTP-program or cpanel) to either 755 or 777 for the folder and the folder-contents.

Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 26, 2019, 07:20:05 AM
Quick question: where do I find the meteoalarm.eu "Europe: code for your area, example BE004" mentioned in easyweathersetup?

I have only entered "UK" so far. . .

@all
Visit http://www.meteoalarm.eu/en_US/0/0/EU-Europe.html
On the map on the left, click on your country, UK for this example http://www.meteoalarm.eu/en_US/0/0/UK-United%20Kingdom.html
On the country-map ,click on the area for your location

Now the addresline / URL changes to something like
Code: [Select]
http://www.meteoalarm.eu/en_US/0/0/UK004-Lothian%20&%20Borders.htmlThe meteoalarm code we need is UK004, it is always something like AA1111, 2 letters for your country,  3 digits for the area.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: richardcr on April 26, 2019, 09:09:51 AM
Super job, Wim
I just have one niggle. I'm not getting any monthly or annual rainfall totals either at the top of the page or in the almanac. Curiously, the rainfall graphs show historical data which tends to bear out that I've correctly entered my Weather Underground station ID. My weather data is downloaded from the WU API as my PWS uploads direct to WU without a computer. My site is at www.collapit.org.uk/pwsWD/index.php
Have I missed an essential step?
Richard
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 26, 2019, 09:27:21 AM
Super job, Wim
I just have one niggle. I'm not getting any monthly or annual rainfall totals either at the top of the page or in the almanac. Curiously, the rainfall graphs show historical data which tends to bear out that I've correctly entered my Weather Underground station ID. My weather data is downloaded from the WU API as my PWS uploads direct to WU without a computer. My site is at www.collapit.org.uk/pwsWD/index.php
Have I missed an essential step?
Richard
Thank you for testing with the WU-version.
Not all  rain values are available with the new API / json files.
Yes, there are values in the .csv but we then have to calculate those values ourselves.

More data-sources have some values missing.
I am working on the next release and those  "not always available" fields will become optional and will not be shown.
I will also add calculations for the year / month values to the cron-job scripts in the near future,

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: richardcr on April 26, 2019, 10:25:52 AM
Thanks for the prompt reply, Wim. I've also just noticed that the Almanac figure for yesterday's rainfall total is in fact today's but I guess that's part of the same issue. No need to reply to this.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 26, 2019, 10:45:50 AM
Try UK004

Thanks, Harold.

The meteoalarm code we need is UK004

Thanks, Wim. I have crawled all over their website and never noticed the code change in URL  :oops:

But just as a test I entered UK001 (South-West), where a yellow warning for high winds has been in force for over 24 hours, and I still get "No Current Weather Alerts": see http://swanston.maui.co.uk/pwsnew/

Does it know I'm telling lies?  :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 26, 2019, 12:17:20 PM
. . . shortened . . .
But just as a test I entered UK001 (South-West), where a yellow warning for high winds has been in force for over 24 hours, and I still get "No Current Weather Alerts": see http://swanston.maui.co.uk/pwsnew/
. . .

These are the error-messages from the script
Code: [Select]
<!-- $wrn_lang=en  -->
<!-- module wrnWarningEU.php = version: 0.00 2019-01-22 -->
<!-- warnings and other info goes here  -->
<!-- Severe weatherdata (./jsondata/warningUK001) not found in cache -->
There is no cached file for UK001 => that is correct as first it should load the warnings and cache them
Code: [Select]
<!-- Severe weatherdata loaded from http://www.meteoalarm.eu/en_UK/0/0/UK001.html  -->
<!-- ERROR Severe weatherdata empty,(http://www.meteoalarm.eu/en_UK/0/0/UK001.html)  could not be loaded  -->
This should not happen ! Wwhen I test http://www.meteoalarm.eu/en_UK/0/0/UK001.html (http://www.meteoalarm.eu/en_UK/0/0/UK001.html)  in the browse and in some test-sites correct data is loaded.
Code: [Select]
<!-- upped cachetime from 900 to 1800 as no valid data was retrieved -->
When there is a temporary problem there is a validity check of 30 minutes for the cached data
Code: [Select]
<!-- Severe weatherdata (./jsondata/warningUK001) not found in cache -->
<!-- ERROR no warnings  retrieved, script ends -->
<!-- ERROR no warnings  retrieved, script ends -->

So I think the script is not allowed to access the outside world?
The CURL statements are at line 711 and further in wrnWarningEU.php

Success, Wim


Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 26, 2019, 01:07:53 PM
So I think the script is not allowed to access the outside world?
The CURL statements are at line 711 and further in wrnWarningEU.php

Ah! If you remember, I had to add a curlopt_proxy line to w34_load_files.php to get those scripts to access the outside world (Reply #9 above). I'll check wrnWarningEU.php now: any more CURLs I have to worry about?  :)

EDIT: That's it fixed now! Test over, now I know it's working I'll go back to UK004.

Many thanks, Wim.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 26, 2019, 01:57:30 PM
. . .  shortened . . .
 any more CURLs I have to worry about?  :)
. . .
As long as you do not move to Canada or the USA, there are no other CURLs.

All weather34 CURL-requests are in  w34_load_files.php
But the three warning-scripts are external / other authors scripts and better maintained by not changing to much.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 26, 2019, 03:57:55 PM
There are no current EU meteoalarms for my area UK004, so the default message "No Current Weather Alerts" is showing (at /pwsnew/).

But my original version of w34WD (as left) is showing "Expect Rain Showers This Week".

Does the new release only show EU meteoalarms (if selected) and none of the older alerts?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 26, 2019, 04:34:40 PM
There are no current EU meteoalarms for my area UK004, so the default message "No Current Weather Alerts" is showing (at /pwsnew/).

But my original version of w34WD (as left) is showing "Expect Rain Showers This Week".

Does the new release only show EU meteoalarms (if selected) and none of the older alerts?
|There now three possible 'warning-sources:

The advisory-scripts from different versions gather the data and will display most of the time "No Current Weather Alerts"

"Expect Rain Showers This Week" message can be displayed if   condition "$darkskydayIcon == 'rain'"  is met.

As you display the WU forecastI, I can not easily check with the pwsnew version if the DS first day forecast-icon  "rain" is there.

But for pwsnew the ./jsondata/darksky.txt  from (2019-04-26T16:24:39+00:00) has  [icon] => fog
For the pws version the ./jsondata/darksky.txt  from  (2019-04-26T16:01:35+00:00) has [icon] => rain

All you data can be checked easily with the debug tool: http://swanston.maui.co.uk/pws/w34_module_test.php or http://swanston.maui.co.uk/pwsnew/w34_module_test.php

The data is cached so it can differ for half an hour or so.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 26, 2019, 04:58:00 PM
3. The meteoalarm script which will replace the box from point 2 ONLY when there is an official weather warning.

Thanks, Wim. . . . again  :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Clarkey on April 27, 2019, 03:55:27 AM
The error message tells us that the cron-job when run form within the server is not allowed to write to the file and or folder.

So set the permissions (using your FTP-program or cpanel) to either 755 or 777 for the folder and the folder-contents.

Hi Wim et al,

I have the same issue when trying to have my server execute the "w34_cron_addtoyear.php" and "w34_cron_empty.php" scripts ... "w34_cron_stationcron.php" executes perfectly.
I have set both folder and file permissions to "777" as suggested but still get the following error ... "Couldn not write headers to chartsmysql/2019_04.csv" ... not urgent, but does anyone have any ideas???

I really do appreciate all of your hard work ... thank you

Best Regards,
Scott (Clarkey)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 27, 2019, 05:06:27 AM
Hi Wim et al,

I have the same issue when trying to have my server execute the "w34_cron_addtoyear.php" and "w34_cron_empty.php" scripts ... "w34_cron_stationcron.php" executes perfectly.
I have set both folder and file permissions to "777" as suggested but still get the following error ... "Couldn not write headers to chartsmysql/2019_04.csv" ... not urgent, but does anyone have any ideas???

I really do appreciate all of your hard work ... thank you

Best Regards,
Scott (Clarkey)
Hello Scott,

PLEASE always supply the URL to your site, so I can run in test-mode and check if there are messages when running the cron via the browser.

When the cron-jobs work in  the browser, they should work in an external cron-server such as https://cron-job.org/en/   or https://www.cronjob.de/

But to get it working with a providers cron-server can be tricky.  Different providers use different settings / INI files a.s.o.
If it are not the permissions of the file / folder, and the cron-jobs work in the browser, I can not  help you further.

1. Ask your providers technical support what can cause the error-message
2. Copy the exact error-message and try a Google search

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: GW400 on April 27, 2019, 07:52:36 AM
The error message tells us that the cron-job when run form within the server is not allowed to write to the file and or folder.

So set the permissions (using your FTP-program or cpanel) to either 755 or 777 for the folder and the folder-contents.
(weather.meisal.com)
Tried changing permissions as you suggested chmod 755 -R ./chartsmysql, but I still got the same error message.
After some testing (running code from CLI as WD34 user) I found that w34_cron_addtoyear.php and w34_cron_empty.php fails to update .csv files when executed outside main WD34 directory.
When changing directory to WD34 folder (where .php files resides) running from command line did work.
I have now changed cron job to change to this directory before running the WD34 cron jobs.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: drparker151 on April 27, 2019, 12:49:07 PM
check file ownership. when I run into write issue I change ownership and rights.  change Owner to the same user that owns apache2, for me that is www-data.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: GW400 on April 27, 2019, 04:55:48 PM
check file ownership. when I run into write issue I change ownership and rights.  change Owner to the same user that owns apache2, for me that is www-data.
The cron jobs are not running in the context of my web server, they are running in a different name space.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 27, 2019, 06:55:45 PM
"Expect Rain Showers This Week" message can be displayed if condition "$darkskydayIcon == 'rain'"  is met.

Still getting different alert messages in pws/pwsnew. What is so special about $darkskydayIcon? How often does it change?

Quote
As you display the WU forecast, I can not easily check with the pwsnew version if the DS first day forecast-icon  "rain" is there.

Changed to DS forecast today, to see if that made any difference. It did not.

Quote
But for pwsnew the ./jsondata/darksky.txt  from (2019-04-26T16:24:39+00:00) has  [icon] => fog
For the pws version the ./jsondata/darksky.txt  from  (2019-04-26T16:01:35+00:00) has [icon] => rain

I would expect the current conditions icon to change in that time. But if DSdayIcon is valid for a longer period - a whole day? - why do I get different alert messages?

EDIT: same message (No Current Weather Alerts) this morning, at last!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bdtripps on April 28, 2019, 10:52:31 PM
See screenshot, Notification is reporting temp in celsius with Fahrenheit scale. See http://southwestweather.com/pwsWD/index.php (http://southwestweather.com/pwsWD/index.php)

Thanks
BTrip

Title: Re: HWS-template (WD34 / weather34) April release
Post by: Clarkey on April 29, 2019, 01:44:28 AM
(weather.meisal.com)
Tried changing permissions as you suggested chmod 755 -R ./chartsmysql, but I still got the same error message.
After some testing (running code from CLI as WD34 user) I found that w34_cron_addtoyear.php and w34_cron_empty.php fails to update .csv files when executed outside main WD34 directory.
When changing directory to WD34 folder (where .php files resides) running from command line did work.
I have now changed cron job to change to this directory before running the WD34 cron jobs.

Hi Wim / GW400,

Thank you for your super fast responses gentlemen, I really appreciate your ideas/support
I played around as you suggested GW400, and I found the same as you did...odd but whatever it takes...thank you for the fix

Best Regards,
Scott (Clarkey)  (w34.scottclarke.com)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 29, 2019, 07:48:46 AM
See screenshot, Notification is reporting temp in celsius with Fahrenheit scale. See http://southwestweather.com/pwsWD/index.php (http://southwestweather.com/pwsWD/index.php)
Thanks
BTrip
Thank you for bringing this to my attention.
The notifications are generated by the rainfall script, attached a corrected version of that script.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 29, 2019, 09:15:21 AM
==================
@ALL HWS users of the nws-alerts as distributed in the latest download

There seems to be a coding-error in this script if you use  a cron-job to do the download  the alerts.
Please change line 172 in pws??/nws-alerts-142/nws-alerts.php  from
Code: [Select]
$updateCache = true;  // update cache file(s)
to
Code: [Select]
$updateCache = false;  // update cache file(s)==================

Without this change the script will load all data with every call of the script.
And that is the opposite of what  the scripts should as only the cron should read the data.

I will ask Ken True if my change is correct.
He distributes these fine scripts at http://saratoga-weather.org/scripts-legacy.php#curly

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 29, 2019, 03:50:08 PM
Still getting different alert messages in pws/pwsnew. What is so special about $darkskydayIcon? How often does it change?

Changed to DS forecast today, to see if that made any difference. It did not.

I would expect the current conditions icon to change in that time. But if DSdayIcon is valid for a longer period - a whole day? - why do I get different alert messages?

EDIT: same message (No Current Weather Alerts) this morning, at last!
OK, I changed the script to use for your test-site.
I forgot to adapt the script for different forecasts (WU/DS/EC)  which are used in this release, so the advisory did not get a correct "xxdayIcon".
 
Please compare the alert boxes and warn me if there is a difference?
Thanks for helping to improve the scripts. In the near future this script and the notification-script need to be redone and integrated.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 29, 2019, 04:53:37 PM
OK, I changed the [advisory_small.php] script to use for your test-site.

Thanks, Wim  :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 29, 2019, 10:57:10 PM
No updated time stamp in Forecast block?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 30, 2019, 06:40:20 AM
No updated time stamp in Forecast block?
A few changes for the DarkSky forecast enclosed, for the latest release only.
Dutch users and I are playing with the scripts also, probably this will work better.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 30, 2019, 10:01:13 AM
A few changes for the DarkSky forecast enclosed, for the latest release only.

Thanks, Wim. But still no forecast update time? It was useful to check if you were looking at cached data. . .
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 30, 2019, 10:09:19 AM
Thanks, Wim. But still no forecast update time? It was useful to check if you were looking at cached data. . .
Then try these ones  :oops:
First the folder
And then the single script, that has the forecast time again.

We were just playing around to get minor problems removed

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 30, 2019, 10:45:00 AM
Then try these ones  :oops:

That looks good, thanks Wim  :)

P.S. and the advisory alert (Expect rain showers this week) agrees with the original release!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on April 30, 2019, 01:25:19 PM
Had a strange problem with Metar pop-up last night. April release stopped working (see below), but original release was working fine. An hour later the April release was working again but the original was not! Module_test gave a long list of illegal offsets, so presumably a corrupt metar.txt file?

All OK this morning.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on April 30, 2019, 01:41:57 PM
Had a strange problem with Metar pop-up last night. April release stopped working (see below), but original release was working fine. An hour later the April release was working again but the original was not! Module_test gave a long list of illegal offsets, so presumably a corrupt metar.txt file?

All OK this morning.
Yes, they  returned strings as comments  and encoded quotes 
Code: [Select]
"{\"results\":1,\"data\ . . . }" and it should be 
Code: [Select]
{"results":1,"data . . . }But "any garbage between quotes" is valid JSON
The script checks if it is valid JSON and then fails as all garbage should be encoded also.
Now it has to check if it is real data or garbage and clean all back-slashes.
Lets wait a few days and wonder why they are doing this with a production site.
Wim

P.S. You can always check all uploaded/downloaded files, also the metar.txt, by using
 /w34_module_test.php
=> select "./jsondata/metar34.txt" in the left/bottom dropdown
==> and click "List contents.

It should look like
Code: [Select]
{"results":1,"data":[{"wind":{"degrees":360,"Than the "Expand as json" can do its job.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 01, 2019, 09:25:51 PM
OK, I changed the [advisory_small.php] script to use for your test-site.
I forgot to adapt the script for different forecasts (WU/DS/EC)  which are used in this release, so the advisory did not get a correct "xxdayIcon".
 
Please compare the alert boxes and warn me if there is a difference?

Alert boxes only agree if both Jan and April versions use the DS forecast, not if I use DS for Jan (/pws/) and WU for April (/pwsnew/). Is that right?

And WU forecast has no update time.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 02, 2019, 12:15:19 PM
Alert boxes only agree if both Jan and April versions use the DS forecast, not if I use DS for Jan (/pws/) and WU for April (/pwsnew/). Is that right?
And WU forecast has no update time.
Different versions can only agree when different forecasts supply more or less the same data.
I think there are other more important items,  such as forecasted temp and wind which also are different.

I will check the WU-forecast and make sure it is updated in the following release.
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 02, 2019, 12:37:43 PM
Different versions can only agree when different forecasts supply more or less the same data.

Understood.

Quote
I think there are other more important items,  such as forecasted temp and wind which also are different.

That is why I was running both, so I could compare them. I'm leaning towards Dark Sky at the moment  :)

Quote
I will check the WU-forecast and make sure it is updated in the following release.

Thanks.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ktuley on May 03, 2019, 01:41:22 PM
It appears that WU PWS pages are all reporting a invalid date..... could this be the issue for data not coming to my site?  I'm just setting up a new site, to pull from WU and it's not getting any data...

Thanks for this template.

my new site is tuley.online/pwsWD/index.php

Ken
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 03, 2019, 02:01:27 PM
It appears that WU PWS pages are all reporting a invalid date..... could this be the issue for data not coming to my site?  I'm just setting up a new site, to pull from WU and it's not getting any data...

Thanks for this template.

my new site is tuley.online/pwsWD/index.php

Ken
Nothing to do with WU or their invalid dates:
Your webserver does not allow the use of CURL to load files.

You can check yourself  with the debug console: http://tuley.online/pwsWD/w34_module_test.php (http://tuley.online/pwsWD/w34_module_test.php)
Click on button "Load files" at the bottom. In the large box below that button  all CURL activity is displayed, 1 example:
Code: [Select]
w34_load_files.php (266) time spent: 0.017 -  CURL OK for https://api.checkwx.com/metar/KABQ/decoded
w34_load_files.php (271) time spent: 0.017 -  empty data for https://api.checkwx.com/metar/KABQ/decoded Old data will be used jsondata/metar34.txtrnm

All downloaded files are empty, from all suppliers. Therefor the scripts will use previous data  (which is my testdata)  if those data sets are available.
Contact your web-hosters support and ask how you can allow the use of CURL for your site.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ktuley on May 03, 2019, 04:11:10 PM
Thanks...
It took an upgrade of the hosting plan  :roll: and a little "update wait" but now seems to be working.

I had looked at that test module last night, but didn't understand the empty line.

Appreciate the quick and solid response!

Ken

Nothing to do with WU or their invalid dates:
Your webserver does not allow the use of CURL to load files.

You can check yourself  with the debug console: http://tuley.online/pwsWD/w34_module_test.php (http://tuley.online/pwsWD/w34_module_test.php)
Click on button "Load files" at the bottom. In the large box below that button  all CURL activity is displayed, 1 example:
Code: [Select]
w34_load_files.php (266) time spent: 0.017 -  CURL OK for https://api.checkwx.com/metar/KABQ/decoded
w34_load_files.php (271) time spent: 0.017 -  empty data for https://api.checkwx.com/metar/KABQ/decoded Old data will be used jsondata/metar34.txtrnm

All downloaded files are empty, from all suppliers. Therefor the scripts will use previous data  (which is my testdata)  if those data sets are available.
Contact your web-hosters support and ask how you can allow the use of CURL for your site.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 04, 2019, 04:10:37 PM
my new site is tuley.online/pwsWD/index.php

Couldn't help noticing a little problem with the new 12-hr clock (in Chrome). . . Wim?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 04, 2019, 04:23:05 PM
Couldn't help noticing a little problem with the new 12-hr clock (in Chrome). . . Wim?
Attached new version where the text will fit also after 9:59
Check here: http://wd34.weather-template.com/pwsTEST/?theme=dark

A screenshot of the beta version where the text is coloured, better solution i think.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 04, 2019, 05:55:44 PM
But the three warning-scripts are external / other authors scripts and better maintained by not changing too much.

That word "external" made me think that I could port them over to my January release. . . but it's not that simple, is it  :?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ktuley on May 05, 2019, 05:41:05 PM
Thanks bitsostring for noticing the clock issue...a
and double thanks to Wim for the quick fix...

appreciate you both!!!!

Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 08, 2019, 02:04:15 PM
As posted in Wish List:

Quote
I know we get to choose the rain rate units, but I still think the units should be shown in the Rainfall block. Please. . .

It actually doesn't matter what you choose in easyweather, because you always get mm/hr. Rain rate from clientraw #10 is converted in w34_livedata.php as:

Code: [Select]
$num                            = $wd[10]*60;            //  mm/min to mm/hr
$weather["rain_rate"]           = convert_precip ($num,$from,$to);

and is used unchanged in rainfall_block.php no matter what is shown in w34_settings1.php  :?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 08, 2019, 02:47:54 PM
As posted in Wish List:
It actually doesn't matter what you choose in easyweather, because you always get mm/hr. Rain rate from clientraw #10 is converted in w34_livedata.php as:
Code: [Select]
$num                            = $wd[10]*60;            //  mm/min to mm/hr
$weather["rain_rate"]           = convert_precip ($num,$from,$to);
and is used unchanged in rainfall_block.php no matter what is shown in w34_settings1.php  :?
http://wd34.weather-template.com/pws07/
Rainrate is shown in rain block with either 3 decimals for unit / hour  or 4 decimals for unit / minute.
The translated-period is shown after the translated word for "rate"

I can not find data yet with a correct value for rain-rate
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 08, 2019, 02:56:07 PM
rainrate is shown in rain block with either 3 decimals for unit / hour  or 4 decimals for unit / minute.
The translated-period is shown after the translated word for "rate"

I can not find data yet with a correct value for rain-rate
Wim

Sorry, Wim, I meant the Jan and April releases.

(And, presumably, the beta at http://wd34.weather-template.com/pwsTEST/)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 08, 2019, 03:04:51 PM
Sorry, Wim, I meant the Jan and April releases.

(And, presumably, the beta at http://wd34.weather-template.com/pwsTEST/)
Nor in any of the other weather-versions, I think. 

The beta is identical to the April release as there is no new beta, yet.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: richardcr on May 09, 2019, 10:58:54 AM
Not sure if this is a WU thing or not but if you visit my site at http://www.collapit.org.uk/pwsWD/index.php (http://www.collapit.org.uk/pwsWD/index.php), blocks displaying weather station data are first shown as offline (even though the station is online). Refresh the page and every block is updated. Do nothing and after 30 seconds or so the temperature block will update and then one by one the other blocks will gradually update. It is several minutes though before the barometer updates by itself.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 09, 2019, 11:50:34 AM
if you visit my site at http://www.collapit.org.uk/pwsWD/index.php (http://www.collapit.org.uk/pwsWD/index.php)

Looks OK here?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 09, 2019, 12:05:33 PM
Not sure if this is a WU thing or not but if you visit my site at http://www.collapit.org.uk/pwsWD/index.php (http://www.collapit.org.uk/pwsWD/index.php), blocks displaying weather station data are first shown as offline (even though the station is online). Refresh the page and every block is updated. Do nothing and after 30 seconds or so the temperature block will update and then one by one the other blocks will gradually update. It is several minutes though before the barometer updates by itself.
That behavior is "by design". The HWS-template expects that a weather-program uploads the weather-data. When the template is started all blocks are loaded and display the available data.  Together with the block-scripts a check-the-data script (w34_load_files.php) is started  to check if the other data-sets which should be loaded from external websites (f.i. forecast) are up-to-date and loads those data sets if they are to old.

A visitor arrives at your site:
=> index.php draws the empty boxes, menu a.s.o.
=> index.php starts all block-scripts
===> those block-scripts display the available data
===> and as long as the visitor remains at your site
=====>  those scripts are "restarted" every so many seconds to display the most recent data

=> index.php also starts w34_load_files.php
===> which checks the  age of the external data and loads the "to old" data-sets
===> and as long as the visitor remains at your site
=====>  w34_load_files.php is "restarted" every 5 minutes to check if the external data is recent

As long as there is at least 1 visitor the data remains valid and the "on-line" times are displayed.

The problem:
After a period, f.i. 1 hour,  of inactivity at your site, the next start will always detect old weather-data .
The blocks which need external data display "off-line".  Within  few minutes the correct data is retrieved by the w34_load_files.php script. Every block when it refreshes itself,  will find new data available and switches to "on-line times"

As WU does not upload the data to your website, the w34_load_files.php script grabs the necessary data from the WU-website, when it is active. When there is no visitor the WU data can not be loaded.

The solution is the use of a cron-job to continue the loading of data even when there are no visiors.

That cron-job should execute http://www.collapit.org.uk/pwsWD/w34_cron_stationcron.php  every 5 minutes or so.
You can use your providers cron-server or a free/paid external cron-server.

Wim



Title: Incorrect wind speed
Post by: GW400 on May 09, 2019, 09:03:01 PM
I use WeeWx to download data generated by Davis Vantage Pro2 using Davis Weather Envoy to read the data via USB port.
Data is made available to WD34 in realtime.txt file using Cumulus Real-Time service extension crt.

Somehow WD34 is interpreting wind speed data from realtime.txt incorrectly:
                        Time         Gust  Wind
WeeWx      08:35   9,02   6,46
WD34      08:35   33,8   29,0
WD34/WeeWx                   3,74   2,49

WD34 gust/WeeWx gust is close to 3,6 which led me to think about conversion error (wind speed x 3,6 m/s is wind speed in km/hour), but WD34 wind/WeeWx wind is down to 2,5 which might indicate this is not the case.
See also the two charts, one from Belchertown Skin and one from WD34
Urls: weather.meisal.com (WD34) and iwdl.meisal.com (Belchertown)
Title: Re: Incorrect wind speed
Post by: wvdkuil on May 10, 2019, 08:07:34 AM
I use WeeWx to download data generated by Davis Vantage Pro2 using Davis Weather Envoy to read the data via USB port.
Data is made available to WD34 in realtime.txt file using Cumulus Real-Time service extension crt.

Somehow WD34 is interpreting wind speed data from realtime.txt incorrectly:
           Time     Gust   Wind
WeeWx      08:35    9,02   6,46
WD34       08:35    33,8   29,0
WD34/WeeWx          3,74   2,49

WD34 gust/WeeWx gust is close to 3,6 which led me to think about conversion error (wind speed x 3,6 m/s is wind speed in km/hour), but WD34 wind/WeeWx wind is down to 2,5 which might indicate this is not the case.
See also the two charts, one from Belchertown Skin and one from WD34
Urls: weather.meisal.com (WD34) and iwdl.meisal.com (Belchertown)
Your realtime.txt uploaded file  /nfs/weather/realtime.txt changes every 2 seconds.
You can check at http://weather.meisal.com/w34_module_test.php, just click on "List contents" button on the left.
Inside the uploaded file the wind values are the ones to change nearly every click.

So it is very difficult to pinpoint if there is a problem and what it could be.
This is the data retrieval PHP-code fin w34_livedata.php for weewx/realtime.txt
Code: [Select]
$weather["wind_units"]         = $data_wind = $cu[13];
$weather["wind_speed"]         = convert_speed ($cu[6],$from,$to);
$weather["wind_speed_avg"]     = convert_speed ($cu[5],$from,$to);
$weather["wind_gust_speed"]    = convert_speed ($cu[40],$from,$to);
$weather["wind_speed_max"]     = convert_speed ($cu[30],$from,$to);
$weather["wind_gust_speed_max"]= convert_speed ($cu[32],$from,$to);
I copied multiple times a realtime.txt file from the w34_module_test.php display,  and did some testing. 
The uploaded values in realtime.txt  from 09:09:07 are
Code: [Select]
    [13] => km/h
    [6] => 3.2
    [5] => 0.7
    [40] => 4.8
    [30] => 11.3
    [32] => 20.9
When the wd34-test-site is in km/h the displayed values are identical to those from the upload.
Code: [Select]
    [wind_speed] => 3.2
    [wind_speed_avg] => 0.7
    [wind_gust_speed] => 4.8
    [wind_speed_max] => 11.3
    [wind_gust_speed_max] => 20.9
When switching to Nordic units, the calculated values seem correct
Code: [Select]
    [wind_speed] => 0.9
    [wind_speed_avg] => 0.2
    [wind_gust_speed] => 1.3
    [wind_speed_max] => 3.1
    [wind_gust_speed_max] => 5.8


It is extremely difficult to compare different templates. Especially when they paint the window using different upload files.
I also have no idea what the two rows for WD34 are referring to, there is only 1 link to a WD34 website.
WD34       08:35    33,8   29,0
WD34/WeeWx          3,74   2,49


The internal WD34 upload filename is /nfs/weather/realtime.txt If you have the external URL of the realtime.txt file I can do some more tests.

====

The graphs:
I think i did find a problem with the graphs when not using WU for that. Please unzip attachment.
After making copy of the two scripts, replace the scripts on your webserver.
Can you please PM me when you have done so, I want to check if the graphs are correct.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: richardcr on May 10, 2019, 08:15:54 AM
That behavior is "by design". The HWS-template expects that a weather-program uploads the weather-data. When the template is started all blocks are loaded and display the available data.  Together with the block-scripts a check-the-data script (w34_load_files.php) is started  to check if the other data-sets which should be loaded from external websites (f.i. forecast) are up-to-date and loads those data sets if they are to old.

A visitor arrives at your site:
=> index.php draws the empty boxes, menu a.s.o.
=> index.php starts all block-scripts
===> those block-scripts display the available data
===> and as long as the visitor remains at your site
=====>  those scripts are "restarted" every so many seconds to display the most recent data

=> index.php also starts w34_load_files.php
===> which checks the  age of the external data and loads the "to old" data-sets
===> and as long as the visitor remains at your site
=====>  w34_load_files.php is "restarted" every 5 minutes to check if the external data is recent

As long as there is at least 1 visitor the data remains valid and the "on-line" times are displayed.

The problem:
After a period, f.i. 1 hour,  of inactivity at your site, the next start will always detect old weather-data .
The blocks which need external data display "off-line".  Within  few minutes the correct data is retrieved by the w34_load_files.php script. Every block when it refreshes itself,  will find new data available and switches to "on-line times"

As WU does not upload the data to your website, the w34_load_files.php script grabs the necessary data from the WU-website, when it is active. When there is no visitor the WU data can not be loaded.

The solution is the use of a cron-job to continue the loading of data even when there are no visiors.

That cron-job should execute http://www.collapit.org.uk/pwsWD/w34_cron_stationcron.php  every 5 minutes or so.
You can use your providers cron-server or a free/paid external cron-server.

Wim

Thanks Wim. Issue resolved.
I'm new to cron-jobs and so this is a good learning experience. The solution you suggested was easy for me to achieve by opening an account with cron-job.org and scheduling a job.
Is it worth mentioning this in the installation instructions?
Richard
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 10, 2019, 08:24:03 AM
Thanks Wim. Issue resolved.
I'm new to cron-jobs and so this is a good learning experience. The solution you suggested was easy for me to achieve by opening an account with cron-job.org and scheduling a job.
Is it worth mentioning this in the installation instructions?
Richard
AFAIK (as far as i know) you are a very rare species, using WU.
So you are the first one to encounter this.

But yes, it should be in the documentation and it will be for sure when i am finished with the final WD34 release somewhere in October-December.
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: meteosa on May 10, 2019, 07:00:59 PM
Hello,
I can't translate the phrase: "This hour:" in the "Current Conditions" block of WD, I added the sentence in the language file but it does not translate it, why?
Thank you

site: https://stazione.meteosantangelo.it/pwsWD/
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 10, 2019, 07:23:22 PM
Hello,
I can't translate the phrase: "This hour:" in the "Current Conditions" block of WD, I added the sentence in the language file but it does not translate it, why?
Thank you

site: https://stazione.meteosantangelo.it/pwsWD/
@ALL
If you have untranslated words for a block  => in this case in the currentconditionsWD_block.php
1. Use the debug script w34_module_test.php => https://stazione.meteosantangelo.it/pwsWD/w34_module_test.php
2. Select the block in the top-row selection boxes and press "Test it"
3. The unformatted information is displayed iincluding
3.1 Error messages if there are any
3.2 Missing translation strings
Code: [Select]
  |Notte|Notte|
 |Asciutto|Asciutto|
 |snow|snow|
 |This hour|This hour|
 |Precipitation|Precipitation|
In this case there are 5 missing translations. The first two are caused by Italian words from WD and DarkSky, so they are correct Italian Language..
Then 3 translations which should be added.
The easy way, copy the missing translations, in this case the bottom 3, and add them to the bottom of the language file /pwsWD/languages/lang_it.txt
If meteosa checks that file, he will see that the language entry he added in the file also has the : character
Code: [Select]
|This hour:|Quest ora:|
It is best to always use the debug console and not copy the words from the pwsWD/index.php screen/blocks. As in this case it was the : character.
Sometimes the missing translations are composed of more then 1 translation.

Hopes this helps others also with these problems.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: meteosa on May 11, 2019, 12:38:12 PM
@ALL
If you have untranslated words for a block  => in this case in the currentconditionsWD_block.php
1. Use the debug script w34_module_test.php => https://stazione.meteosantangelo.it/pwsWD/w34_module_test.php
2. Select the block in the top-row selection boxes and press "Test it"
3. The unformatted information is displayed iincluding
3.1 Error messages if there are any
3.2 Missing translation strings
Code: [Select]
  |Notte|Notte|
 |Asciutto|Asciutto|
 |snow|snow|
 |This hour|This hour|
 |Precipitation|Precipitation|
In this case there are 5 missing translations. The first two are caused by Italian words from WD and DarkSky, so they are correct Italian Language..
Then 3 translations which should be added.
The easy way, copy the missing translations, in this case the bottom 3, and add them to the bottom of the language file /pwsWD/languages/lang_it.txt
If meteosa checks that file, he will see that the language entry he added in the file also has the : character
Code: [Select]
|This hour:|Quest ora:|
It is best to always use the debug console and not copy the words from the pwsWD/index.php screen/blocks. As in this case it was the : character.
Sometimes the missing translations are composed of more then 1 translation.

Hopes this helps others also with these problems.

Wim

I have already done so but it does not translate the same. In fact if I check the language file there is this sentence but it is not translated. I don't understand why .. Thanks
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 11, 2019, 12:42:56 PM
I have already done so but it does not translate the same. In fact if I check the language file there is this sentence but it is not translated. I don't understand why .. Thanks
PLEASE check your file at the bottom it has a line with:
Code: [Select]
   |This hour:|Quest ora:|That is an error as the debug-console says it should be
Code: [Select]
  |This hour|Quest ora|WITHOUT the : character

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: meteosa on May 11, 2019, 02:33:30 PM
PLEASE check your file at the bottom it has a line with:
Code: [Select]
   |This hour:|Quest ora:|That is an error as the debug-console says it should be
Code: [Select]
  |This hour|Quest ora|WITHOUT the : character

Wim

Ok now I understand. Thanks a lot!  :D
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 18, 2019, 12:09:26 PM
WD clientraw users can display max-min times in the small max-min temperature block by adding two lines to the relevant section of w34_livedata.php:

Code: [Select]
$weather["maxtemptime"] = $wd[174];
$weather["lowtemptime"] = $wd[175];

For WD api use $wd[23] and $wd[25] respectively. Works for the January release too.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 18, 2019, 02:30:30 PM
@all
I am off for a 2 weeks vacation trip without decent internet. Just my phone/iPad for use in some hotels.
So answering posts will be minimal and in the evening (UTC+3) only .
Alpha/Beta release
The final beta July release is running at https://www.weerstation-herent.be/pws07/
Loading of the main window is far quicker and the scripts should run fair enough on smaller webservers also.
Availability second week of June.
Missing fields
The livedata script => https://www.weerstation-herent.be/pws07/w34_livedata.php?sce=view 
Attached a pdf of used fields in the july release, not all weather-programs deliver all fields, the "n/a" is used instead. All  the ones on the pdf are supported / used.
Fields names are changed to be more consistent, temp-field-names will change.
Extra fields
Extra-temp/hum and soil-temp/moist will need an extra upload file using FTP, this will be finalised when I am back home on June3.
An example from a Cumulus fileformat:  | HWS-field-name | field-type | tag for weather-program
Code: [Select]
|tempActExtra1|temp|<#ExtraTemp1>|!
|tempActExtra2|temp|<#ExtraTemp2>|!
|humiActExtra1|hum|<#ExtraHum1>|!
|humiActExtra2|hum|<#ExtraHum2>|!
All normal weather-field-types and also text, logic, data-time will be supported.
So users can add their own fields, use them in extra scripts, use the translation files for the descriptive texts.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ktuley on May 19, 2019, 08:56:50 PM
AFAIK (as far as i know) you are a very rare species, using WU.
So you are the first one to encounter this.

But yes, it should be in the documentation and it will be for sure when i am finished with the final WD34 release somewhere in October-December.
Wim

I'll using WU as well....til I figure out how to get my station data to my hosting site... Had the same issue with long times for offline to be "online".

Appreciate the explanation and cron solution.  Just set cron up....

Thanks!

Ken
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 19, 2019, 09:15:24 PM
I'll using WU as well....til I figure out how to get my station data to my hosting site.

Looks like you are using WeatherCat too, so can you not just create a realtime.txt file on the server that can be used as the data source for w34?

(I'm no expert on WeatherCat!)

Title: Re: HWS-template (WD34 / weather34) April release
Post by: ktuley on May 19, 2019, 09:19:45 PM
Looks like you are using WeatherCat too, so can you not just create a realtime.txt file on the server that can be used as the data source for w34?

(I'm no expert on WeatherCat!)

Just need some time to figure out how to do it. I think it's via the cgi in WeatherCat???? got "instructions"???

Thanks

Ken
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 19, 2019, 11:55:20 PM
I reinstalled my installation on my weather station dedicated laptop bc W10 seemed to be getting buggy and needed a fresh install.

Now the laptop is running great and wdisplay is up and running great also. I have one problem.

When I click on any graph from within W34 I get this error, which I can't figure out, any ideas? Worked fine yesterday, after the new install, but on my second day on new install I get this error.

It looks like some file is not getting uploaded anymore.

Quote
No valid data file found, script ends

DEBUGw34_graph_xx.php(23) loaded =>w34_graph_bw.php|00|2019-03-03| w34_graph_xx.php (27) include_once =>./w34_livedata.php w34_livedata.php (25) version =>w34_livedata.php|00|2019-01-22| => include_once from =>w34_graph_xx.php (28) w34_livedata.php (28) include_once =>w34_settings.php w34_settings.php (25) version =>w34_settings.php|00|2019-04-10| w34_settings.php (28) include =>w34_settings1.php w34_settings1.php (4) version =>w34_settings1.php|00|2019-05-19| w34_settings.php (218) $units =us $windunit=mph $tempunit=F $rainunit=in $pressureunit=inHg $distanceunit=mi $wu_unit=m w34_livedata.php (32) include_once =>w34_shared.php w34_shared.php (22) version =>w34_shared.php|00|2019-03-03| w34_graph_xx.php (31) include_once =>./w34_common.php w34_common.php (26) version =>w34_common.php|00|2019-01-03| w34_common.php (29) include_once =>w34_settings1.php w34_graph_xx.php (43) period set to day from request day w34_graph_xx.php (50) type set to wind from request wind w34_graph_xx.php (69) loading =>./chartswudata/KMNLONGL5YMD.txt w34_graph_xx.php (96)Line-names contains
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 20, 2019, 03:49:15 AM
The WU site for historical data is down. Nobody knows if it is on purpose or an error.
That is why the graphic do not work.

Ken True had a discussion about this problem  on the wxforum, check there.

As woon as there is more informatieontsluiting we know what to do.
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 20, 2019, 04:32:48 AM
Just need some time to figure out how to do it. I think it's via the cgi in WeatherCat???? got "instructions"???

Thanks

Ken
The weathercat realtime.txt file discussion can be found here
https://athena.trixology.com/index.php?topic=2926.msg28455#msg28455

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: saratogaWX on May 20, 2019, 03:20:53 PM
I received word from Victoria Gardner that the old query for the CSV data is now dead (removed from wunderground site functionality).

As such, any scripts (like WU-History, etc) and the Home Weather Station templates that relied on that data are now broken (and not soon to be fixed).

The PWS WU/TMC API does NOT provide the equivalent functionality (no 'year' or 'month' queries, only one-day/5-minute intervals or last 7 days/hourly)

We have some coding challenges ahead.  Sigh.   It would have been kind for them to announce it before pulling the plug.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 20, 2019, 03:28:27 PM
I have no problem creating a MySQL database for my station. Is there some documentation available for setting up the database correctly, in the wdisplay documentation. And then I would like to upload a couple of years of data.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 20, 2019, 03:40:04 PM
I have no problem creating a MySQL database for my station. Is there some documentation available for setting up the database correctly, in the wdisplay documentation. And then I would like to upload a couple of years of data.
For the current year the description can be found at http://wd34.weather-template.com
But it is not a database, just 1 table to store todayís data in.
Every night the min-max values are calculated using SQL and store in the .CSV And that is all the database is used for.
Todayís data is also in an .csv file
===
As I am on vacation until June 3, With an iPad only, there is not much I can do before June.
All ideas are welcome.

Wim
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 20, 2019, 03:52:55 PM
Thanks Wim!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 20, 2019, 03:59:37 PM
Sorry 1 quick question, should I not be using the MySQL wdmysql.exe program built into Wdisplay? Or do I just skip that?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 20, 2019, 04:05:12 PM
Sorry 1 quick question, should I not be using the MySQL wdmysql.exe program built into Wdisplay? Or do I just skip that?
I think you should ask these kind of questions in an other, separate topic. I am not familiar with that feature, I write the scripts for the website part.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 21, 2019, 11:14:46 AM
The WU site for historical data is down. Nobody knows if it is on purpose or an error.
That is why the graphs do not work.

Working again today. . .  :?

Title: Re: HWS-template (WD34 / weather34) April release
Post by: Weather Display on May 21, 2019, 06:29:43 PM
WU CSV download was working but its broke again
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 21, 2019, 06:37:08 PM
WU CSV download was working but its broke again

Still OK here. . . :?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Weather Display on May 21, 2019, 06:44:42 PM
its working again just now
its very flaky
(and also you might be seeing cached data at times)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 21, 2019, 07:06:17 PM
UPDATE: Of course after posting, I did get charts. I've been using chrome developer mode with Hard Reloads, so it wasn't a cache on my side.

I have been keeping an eye on this. I can't get any charts from WU and still get errors, loaded dozens of different times.

Have also set up WD database on my server but, after reading every thread on connecting WD to database, no luck. Will not connect.

So at this point no charts on W34 for me.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on May 21, 2019, 07:10:17 PM
WU CSV download was working but its broke again

They are trying to make it work for the owner of the station/ the uploader.
http://www.wxforum.net/index.php?topic=36954.msg380531;topicseen#msg380531

That will take some time I guess as they need to add some api-key checking to the url.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Weather Display on May 21, 2019, 07:11:08 PM
its working again currently...
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 21, 2019, 07:13:14 PM
They are trying to make it work for the owner of the station/ the uploader.
http://www.wxforum.net/index.php?topic=36954.msg380531;topicseen#msg380531

That will take some time I guess as they need to add some api-key checking to the url.

Wim

Yes, been monitoring this thread. Good source for update info.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on May 22, 2019, 01:35:26 PM
As of this morning, Today's chart throws an error, but Monthly & Yearly still work. Crazy.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: drew on May 28, 2019, 03:49:56 PM
Can someone tell me where to find the setting to change the temp in the heat index notification pop up from Celsius to Fahrenheit? I have this running here: http://shoalsweather.net/cvff
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on May 28, 2019, 05:19:10 PM
Can someone tell me where to find the setting to change the temp in the heat index notification pop up from Celsius to Fahrenheit? I have this running here: http://shoalsweather.net/cvff

I think these pop-ups are at the end of rainfall_block.php, if you want to take a look.

Wim is currently on vacation, but I'm sure he'll look at it as soon as possible.

Note: original post deleted by mistake while I was trying to correct it  #-o  I had been looking at a script from the original release, not the April release.


Title: Re: HWS-template (WD34 / weather34) April release
Post by: drew on May 29, 2019, 06:00:35 AM
I think these pop-ups are at the end of rainfall_block.php, if you want to take a look.

Wim is currently on vacation, but I'm sure he'll look at it as soon as possible.

Note: original post deleted by mistake while I was trying to correct it  #-o  I had been looking at a script from the original release, not the April release.
Thank you! That was it!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: nolatron on June 03, 2019, 03:33:35 PM
Hello,

Was checking out the template and noticed this on the forecast popup, with the text longer than the window and wrapping over the forecast.

Just wanted to mention it.

Title: Re: HWS-template (WD34 / weather34) April release
Post by: ms372591 on June 03, 2019, 05:58:15 PM
I'm currently using Weather Underground for my Acurite 5in1 Weather station. I have my station set up and my web address is https://pendulous-here.000webhostapp.com/pwsWD/?units=us
I could use some help setting up the database to keep my daily data. I followed the instructions and set one up but the website doesn't appear to be writing to it. Any help will be greatly appreciated.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 03, 2019, 07:42:33 PM
Hello,

Was checking out the template and noticed this on the forecast popup, with the text longer than the window and wrapping over the forecast.

Just wanted to mention it.
That probably is the April release.
In the next version the font-size is smaller when there is a long description,
http://wd34.weather-template.com/pws07/

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on June 03, 2019, 07:54:32 PM
Anyone have any more info on the WU data? It has worked sporadically, for me. But today it did not work at all again.

I'm not seeing any more info at this thread either. https://www.wxforum.net/index.php?topic=36954.25
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 03, 2019, 07:59:11 PM
I'm currently using Weather Underground for my Acurite 5in1 Weather station. I have my station set up and my web address is https://pendulous-here.000webhostapp.com/pwsWD/?units=us
I could use some help setting up the database to keep my daily data. I followed the instructions and set one up but the website doesn't appear to be writing to it. Any help will be greatly appreciated.
The next release, due in  a few weeks, will not need a "database". Far to much problems.

How does it works in the april release.
1. The station-cron (w34_cron_stationcron.php) fetches the data from WU so that is can be displayed in the blocks
2. The station-cron also writes one line to the daily file  ./chartsmysql/result.csv
3. The station-cron also writes one line to the SQL table

4. Another cron-job (w34_cron_addtoyear.php) should run at 23:55 , it calculates the daily high-lows from the SQL table
AND stores those values in the year (./chartsmydata/2019.txt) and month (./chartsmydata/2019_06.txt) files to use for the graphs

5. Another cron-job should run at 00:05 to clear the SQL table and the daily result.csv.

https://pendulous-here.000webhostapp.com/pwsWD/w34_graph_xx.php?period=day&type=temp&script=temperature_block.php
It seems to me that your your daily file is correctly filled as the graph shows.
But it contains data for today and yesterday.
So I assume that you only use the station-cron-job not the other two.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ms372591 on June 03, 2019, 08:09:15 PM
The next release, due in  a few weeks, will not need a "database". Far to much problems.

How does it works in the april release.
1. The station-cron (w34_cron_stationcron.php) fetches the data from WU so that is can be displayed in the blocks
2. The station-cron also writes one line to the daily file  ./chartsmysql/result.csv
3. The station-cron also writes one line to the SQL table

4. Another cron-job (w34_cron_addtoyear.php) should run at 23:55 , it calculates the daily high-lows from the SQL table
AND stores those values in the year (./chartsmydata/2019.txt) and month (./chartsmydata/2019_06.txt) files to use for the graphs

5. Another cron-job should run at 00:05 to clear the SQL table and the daily result.csv.

https://pendulous-here.000webhostapp.com/pwsWD/w34_graph_xx.php?period=day&type=temp&script=temperature_block.php
It seems to me that your your daily file is correctly filled as the graph shows.
But it contains data for today and yesterday.
So I assume that you only use the station-cron-job not the other two.

Wim

Thanks Wim, I was already running the w34_cron_stationcron.php every 15 minutes to keep the page updated. I set up the other 2 to run tonight. Should I use the cron jobs setting for this menu item in the setup (Which script will load the weather-data to your databse?)   
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 03, 2019, 08:10:20 PM
Anyone have any more info on the WU data? It has worked sporadically, for me. But today it did not work at all again.

I'm not seeing any more info at this thread either. https://www.wxforum.net/index.php?topic=36954.25
WU-data
There has never been any announcement from WU .
So it is unclear if the .CSV files will ba available again or that they will not come back.

Using SQL / own CSV files
The new wd34 release already has a solution for storing the data in .csv files without the need of an SQL table. I need more time to test all consequences.
The big advantage of using the WU-data was: "always available even after a total loss of the site"
When we start using our own website storage we do not have that advantage.

Another alternative:
There are ways to use your WU historical data with the WU-api but that only works for the last 7 days.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 03, 2019, 08:11:48 PM
Thanks Wim, I was already running the w34_cron_stationcron.php every 15 minutes to keep the page updated. I set up the other 2 to run tonight. Should I use the cron jobs setting for this menu item in the setup (Which script will load the weather-data to your databse?)
You should always use station cron as there is no alternative when using WU.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: nolatron on June 03, 2019, 09:57:43 PM
That probably is the April release.
In the next version the font-size is smaller when there is a long description,
http://wd34.weather-template.com/pws07/

Wim

Ah great! One other thing I noticed was the Nearby Metar doesn't seem to be using the nearby Airport code I entered into settings (KMSY). It's showing EBBR Brussels instead.  Is that using the W34 airport code or is that coming from Weather Display?

Thanks!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on June 03, 2019, 10:15:24 PM
One other thing I noticed was the Nearby Metar doesn't seem to be using the nearby Airport code I entered into settings (KMSY).

Have you entered your CheckWX API code? (See Setup.)

Title: Re: HWS-template (WD34 / weather34) April release
Post by: nolatron on June 03, 2019, 10:23:07 PM
Have you entered your CheckWX API code? (See Setup.)

Bingo! Thanks!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: nolatron on June 04, 2019, 02:32:58 AM
I noticed my blocks are showing kinda bouncing from showing offline to showing a time. When I do a test/Update the popup shows "successBad Data: 1146" Would that be related?

I also noticed by UV block is almost always offline. do have the option "Send Solar" and "Send UN" checked in the w34 option menu in WD.

Sorry for the all questions.  It's a great template. :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 04, 2019, 06:00:37 AM
I noticed my blocks are showing kinda bouncing from showing offline to showing a time. When I do a test/Update the popup shows "successBad Data: 1146" Would that be related?

I also noticed by UV block is almost always offline. do have the option "Send Solar" and "Send UN" checked in the w34 option menu in WD.

Sorry for the all questions.  It's a great template. :)
As I am not clairvoyant, it is impossible to help  without a link to your website.

@ALL
PLEASE ALWAYS INCLUDE THE URL TO YOUR SITE

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ms372591 on June 04, 2019, 05:34:14 PM
The next release, due in  a few weeks, will not need a "database". Far to much problems.

How does it works in the april release.
1. The station-cron (w34_cron_stationcron.php) fetches the data from WU so that is can be displayed in the blocks
2. The station-cron also writes one line to the daily file  ./chartsmysql/result.csv
3. The station-cron also writes one line to the SQL table

4. Another cron-job (w34_cron_addtoyear.php) should run at 23:55 , it calculates the daily high-lows from the SQL table
AND stores those values in the year (./chartsmydata/2019.txt) and month (./chartsmydata/2019_06.txt) files to use for the graphs

5. Another cron-job should run at 00:05 to clear the SQL table and the daily result.csv.

https://pendulous-here.000webhostapp.com/pwsWD/w34_graph_xx.php?period=day&type=temp&script=temperature_block.php
It seems to me that your your daily file is correctly filled as the graph shows.
But it contains data for today and yesterday.
So I assume that you only use the station-cron-job not the other two.

Wim

Wim, what would cause me to get "Bad Data: 1366" when my cron job runs w34_cron_stationcron.php?

Thanks,
Mike
Title: Re: HWS-template (WD34 / weather34) April release
Post by: nolatron on June 04, 2019, 06:49:44 PM
As I am not clairvoyant, it is impossible to help  without a link to your website.

@ALL
PLEASE ALWAYS INCLUDE THE URL TO YOUR SITE

Wim

Doh! sorry.  Site is at https://weather.nolatron.net/   

So currently the only 2 issues I'm having are:

1) The pushing of data from WD to the WDapi.txt file.

I have a picture of my Weather34 setup attached, and I have the Main Internet Switch turned on. If I press the Test/Update button in the Home Weather Station API menu, I get a success message and the file updates. Everything looks good.   But then it never updates again on it's own.  So I'm not sure if I'm missing some other setting in WD that's needed to push data or something else.

2) The Darksky forecast doesn't seem to be showing any rain values even though their site is showing rain chances in the coming days.

Thanks!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on June 04, 2019, 07:10:59 PM
WU-data
There has never been any announcement from WU .
So it is unclear if the .CSV files will ba available again or that they will not come back.

Using SQL / own CSV files
The new wd34 release already has a solution for storing the data in .csv files without the need of an SQL table. I need more time to test all consequences.
The big advantage of using the WU-data was: "always available even after a total loss of the site"
When we start using our own website storage we do not have that advantage.

Another alternative:
There are ways to use your WU historical data with the WU-api but that only works for the last 7 days.

Wim

According to these two posts  on Wxforum.net, posted by Weather Underground they are trying to make the CSV download work, but it may take awhile.

Folks, there's no conspiracy, no one here is mad at IBM. 
Every single thing needs to be re-written. 
Every single part of weather underground. 
What is currently running was built with spit and bailing wire, when something stops working, 90% of the time its because it broke.  When a feature on the new pages is missing, its because we didn't have time make it work efficiently.

I think we have a pretty good general idea of the complaints you all have, we're working on getting some of them addressed.  Some probably won't be addressed.


Folks, if something doesn't come from wu pm or me, its speculation and panic.  Please take a deep breath and realize we're trying to help get you what you want.  I've said this other places, but i'll re-iterate here.  Be reasonable and i'll hear you out, throw a fit, say the sky is falling and wu is evil and we should be ashamed of ourselves and I'll quite happily ignore you.

Names  - working on it
decimals - working on it

csv download - investigating a way for owners to get their data via csv
custom date range - maybe, will take a long time to implement this


data access - still there, you can access through the API easily.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 05, 2019, 10:03:00 AM
Doh! sorry.  Site is at https://weather.nolatron.net/   

So currently the only 2 issues I'm having are:

1) The pushing of data from WD to the WDapi.txt file.

I have a picture of my Weather34 setup attached, and I have the Main Internet Switch turned on. If I press the Test/Update button in the Home Weather Station API menu, I get a success message and the file updates. Everything looks good.   But then it never updates again on it's own.  So I'm not sure if I'm missing some other setting in WD that's needed to push data or something else.

2) The Darksky forecast doesn't seem to be showing any rain values even though their site is showing rain chances in the coming days.

Thanks!
With the WDapi not functioning is strange and i can not assist you with that.
The Darksky forecast has been changed a few times during the last months.
Check this post https://www.weather-watch.com/smf/index.php/topic,67862.msg545919.html#msg545919

===

Also there is a new beta version you could test, it should have removed a lot of errors.
http://wd34.weather-template.com/beta.php

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: ms372591 on June 05, 2019, 11:51:46 AM
My site is https://pendulous-here.000webhostapp.com/pwsWD/?units=us and I was wondering why under the rain block almanac section my numbers are always N/A for year, month, and last hour. I'm currently using Weatherunderground data and the month and year to date charts have data.

Thanks!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 05, 2019, 11:58:35 AM
My site is https://pendulous-here.000webhostapp.com/pwsWD/?units=us and I was wondering why under the rain block almanac section my numbers are always N/A for year, month, and last hour. I'm currently using Weatherunderground data and the month and year to date charts have data.

Thanks!
Because WU does not supply that data. And the WU version was available as a first test in the April release.
When you check the current beta version using WU-data at https://www.weerstation-herent.be/pws07/
and compare it with f.i. this Weathercat version at http://wd34.weather-template.com/pws07/
you will see that the blocks adapt to the available data.

Just a few weeks and the July version is ready.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: pricey on June 08, 2019, 12:39:11 PM
Hello Wim.
Not sure if this is the correct place to post but I am using the original build of the software. Noticed that in the almanac section of the rainfall area, the figure showing in the last hour rainfall always shows the current running total for the day.
Donít know if it has been fixed with the April build.
By the way love the July build. If it has been fixed I will wait until the July build is not in beta then update.

http://www.llanelliweather.co.uk/ (http://www.llanelliweather.co.uk/)

Cheers Steve.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: bitsostring on June 08, 2019, 01:25:12 PM
the figure showing in the last hour rainfall always shows the current running total for the day.
Donít know if it has been fixed with the April build.

There were a number of new downloads for the original release in January, did you get all these? The final one is here (https://www.weather-watch.com/smf/index.php/topic,67468.msg542590.html#msg542590), to correct rain last hour in  w34_livedata.php, but I think there was a new rainfall_block download just before that. . . I'm still running the original (with clientraw) and rain last hour works for me  :)

EDIT: latest rainfall_block download actually here (https://www.weather-watch.com/smf/index.php/topic,67468.msg542861.html#msg542861). This was only to add some units, but it should have the latest "rain last hour" - as long as you also have the livedata changes! (File rainfall_block.php should be dated 27/01/19, w34_livedata.php 22/01/19.)

Only problem that still remains in the original release is that "rain last hour" shows negative "rain yesterday" at midnight reset.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 08, 2019, 01:33:12 PM
Hello Wim.
Not sure if this is the correct place to post but I am using the original build of the software. Noticed that in the almanac section of the rainfall area, the figure showing in the last hour rainfall always shows the current running total for the day.
Donít know if it has been fixed with the April build.
By the way love the July build. If it has been fixed I will wait until the July build is not in beta then update.

http://www.llanelliweather.co.uk/ (http://www.llanelliweather.co.uk/)

Cheers Steve.
For debugging, please always give the real link to the HWS-template, in your case http://www.llanelliweather.co.uk/pwsWD/index.php

And yes, the values seem correct now. But as I do not have an operational WD-version, I rely on others to test.
Thanks to them that error was removed.  =D&gt;

Wim


Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 08, 2019, 04:13:38 PM
Hello from the Mid-West in the US. I am using this template and like it a lot.  I've been muddling my way around trying to get everything to work correctly.  The address to my site is: www.rrogers.us/pws   I am using the database on my web site to store the data, which I believe to be just the daily data if I am understanding everything correctly.

The issue I'm having is when looking at the graph displays for weather, barometer, etc. the information is not correct, see below.

I don't know if this is something I have set incorrectly or what. I have checked the data in the database and from the created csv file and the data is correct, but isn't the same as what is showing up on the graphs.

The data is being sent from my weather station directly to my web site.  I have the web site running the cron jobs, the stationcron every 5 minutes and the other two at the prescribed scheduled time.

Suggestions or ideas would be appreciated.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 08, 2019, 04:36:18 PM
Hello from the Mid-West in the US. I am using this template and like it a lot.  I've been muddling my way around trying to get everything to work correctly.  The address to my site is: www.rrogers.us/pws   I am using the database on my web site to store the data, which I believe to be just the daily data if I am understanding everything correctly.

The issue I'm having is when looking at the graph displays for weather, barometer, etc. the information is not correct, see below.

I don't know if this is something I have set incorrectly or what. I have checked the data in the database and from the created csv file and the data is correct, but isn't the same as what is showing up on the graphs.

The data is being sent from my weather station directly to my web site.  I have the web site running the cron jobs, the stationcron every 5 minutes and the other two at the prescribed scheduled time.

Suggestions or ideas would be appreciated.
The database only has 1 table with todays measurements, just to calculate at the end of the day the min-max values for that day.
The result.csv file contains the data for todays graphs.

Your result.csv file contains data for multiple days. So the daily graphs displays all that data.

The two cron-jobs should add 1 line to the month and year .CSV files and clean the result.csv
So it seems that the two cron-jobs did not work as they should.

I run the add-to-year cron in testmode:
http://www.rrogers.us/pws/_test.php?test=w34_cron_addtoyear.php
And it adds 1 line to both month and year file.
Running http://www.rrogers.us/pws/_test.php?test=w34_cron_empty.php clears the daily data correctly
Conclusion:  running the jobs from the browser => no problem.

Now carefully check the cron-settings for the two midnight cron-jobs.
Then tomorrow morning (or after 24:00 this night) check if the daily file contains only that new days data
And that the month and year files have that extra line with todays min/max data.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 08, 2019, 06:31:09 PM
The database only has 1 table with todays measurements, just to calculate at the end of the day the min-max values for that day.
The result.csv file contains the data for todays graphs.

Your result.csv file contains data for multiple days. So the daily graphs displays all that data.

The two cron-jobs should add 1 line to the month and year .CSV files and clean the result.csv
So it seems that the two cron-jobs did not work as they should.

I run the add-to-year cron in testmode:
http://www.rrogers.us/pws/_test.php?test=w34_cron_addtoyear.php
And it adds 1 line to both month and year file.
Running http://www.rrogers.us/pws/_test.php?test=w34_cron_empty.php clears the daily data correctly
Conclusion:  running the jobs from the browser => no problem.

Now carefully check the cron-settings for the two midnight cron-jobs.
Then tomorrow morning (or after 24:00 this night) check if the daily file contains only that new days data
And that the month and year files have that extra line with todays min/max data.

Wim

The above makes sense.  I will check the cron jobs on my web server and set it up so that it emails me when these jobs run.

But...it still doesn't explain why the temp graph shows my temp at 176 degrees F just after noon today.  I mean it is warm outside with the humidity and all, but if the temp was really that high...  LOL  The actual temp was in the mid to upper 70s F.  The graph for the wind also shows us having gusts in excess of 55 mph, which we are not having and the barometer is less that 1....something like 0.81.

Thoughts??
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 08, 2019, 06:43:18 PM
The database only has 1 table with todays measurements, just to calculate at the end of the day the min-max values for that day.
The result.csv file contains the data for todays graphs.

Your result.csv file contains data for multiple days. So the daily graphs displays all that data.

The two cron-jobs should add 1 line to the month and year .CSV files and clean the result.csv
So it seems that the two cron-jobs did not work as they should.

I run the add-to-year cron in testmode:
http://www.rrogers.us/pws/_test.php?test=w34_cron_addtoyear.php
And it adds 1 line to both month and year file.
Running http://www.rrogers.us/pws/_test.php?test=w34_cron_empty.php clears the daily data correctly
Conclusion:  running the jobs from the browser => no problem.

Now carefully check the cron-settings for the two midnight cron-jobs.
Then tomorrow morning (or after 24:00 this night) check if the daily file contains only that new days data
And that the month and year files have that extra line with todays min/max data.

Wim

Another question about the result.csv file, when I look at the date...it is incorrect, see below.

It shows today's date as 6-Aug.  I thought maybe this was the formatting in Excel so I tried changing the formatting, but it kept the month and day the same.  If one were to use the number for each, the day and the month, the data would show 6-08, which would correspond to today's date, June 8th, but when opened the file using notepad+ so I could see the data, it shows the date as 06 Aug.  What am I missing??
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 08, 2019, 08:03:17 PM
Another question about the result.csv file, when I look at the date...it is incorrect, see below.

It shows today's date as 6-Aug.  I thought maybe this was the formatting in Excel so I tried changing the formatting, but it kept the month and day the same.  If one were to use the number for each, the day and the month, the data would show 6-08, which would correspond to today's date, June 8th, but when opened the file using notepad+ so I could see the data, it shows the date as 06 Aug.  What am I missing??
Another conversion problem, but it has no effect for the graphs.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 08, 2019, 08:11:54 PM
The above makes sense.  I will check the cron jobs on my web server and set it up so that it emails me when these jobs run.

But...it still doesn't explain why the temp graph shows my temp at 176 degrees F just after noon today.  I mean it is warm outside with the humidity and all, but if the temp was really that high...  LOL  The actual temp was in the mid to upper 70s F.  The graph for the wind also shows us having gusts in excess of 55 mph, which we are not having and the barometer is less that 1....something like 0.81.

Thoughts??
The data is converted twice as there was an error with the units for cumulus. Not that much cumulus+us+sql users.
New scripts attached.
Wim

Also use the new graph script!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 09, 2019, 12:35:12 AM
The data is converted twice as there was an error with the units for cumulus. Not that much cumulus+us+sql users.
New scripts attached.
Wim

Also use the new graph script!

Perfect, that fixed it.

Thank you for everything you have done and continue to do!!!
Title: Re: HWS-template (WD34 / weather34) April release
Post by: pricey on June 09, 2019, 12:00:32 PM
Ok Wim and Bitsostring thanks for the replyís. Will update soon
Steve
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 09, 2019, 12:09:33 PM
Ok Wim and Bitsostring thanks for the replyís. Will update soon
Steve
End of June is near.  The July release with all its advantages is available within a month.
Better wait for that version.
Or use the beta build to test it.
I am especially interested in your testing that version.
Your webhosting seems to restrict the number of parallel PHP scripts, as the blocks are loaded one at a time.
That should be solved in the July release, so if you test that new version let me know, so we can compare and check if the template runs faster.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 09, 2019, 12:39:47 PM
The database only has 1 table with todays measurements, just to calculate at the end of the day the min-max values for that day.
The result.csv file contains the data for todays graphs.

Your result.csv file contains data for multiple days. So the daily graphs displays all that data.

The two cron-jobs should add 1 line to the month and year .CSV files and clean the result.csv
So it seems that the two cron-jobs did not work as they should.

I run the add-to-year cron in testmode:
http://www.rrogers.us/pws/_test.php?test=w34_cron_addtoyear.php
And it adds 1 line to both month and year file.
Running http://www.rrogers.us/pws/_test.php?test=w34_cron_empty.php clears the daily data correctly
Conclusion:  running the jobs from the browser => no problem.

Now carefully check the cron-settings for the two midnight cron-jobs.
Then tomorrow morning (or after 24:00 this night) check if the daily file contains only that new days data
And that the month and year files have that extra line with todays min/max data.

Wim

Wim,

The cron jobs ran last night, but it appears one of them may not have worked as desired from the info I received via email after it was run.

For the job: w34_cron_addtoyear.php, this is the response I got back from the web server: Couldn not write headers to chartsmysql/2019_06.csv

For the job: w34_cron_empty.php, this is the response I got back from the web server: success 1-2

So, it appears they both ran.

Now I also looked at the data from the result.csv and there is no data recorded before 0100, so it appears the table is missing an hour's worth of data.  Would this be normal??  I also looked at the other two tables and it appears the data contained within are exactly the same.

Rick
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 09, 2019, 12:57:34 PM
Wim,

The cron jobs ran last night, but it appears one of them may not have worked as desired from the info I received via email after it was run.

For the job: w34_cron_addtoyear.php, this is the response I got back from the web server: Couldn not write headers to chartsmysql/2019_06.csv

For the job: w34_cron_empty.php, this is the response I got back from the web server: success 1-2

So, it appears they both ran.

Now I also looked at the data from the result.csv and there is no data recorded before 0100, so it appears the table is missing an hour's worth of data.  Would this be normal??  I also looked at the other two tables and it appears the data contained within are exactly the same.

Rick
The one hour difference can occur because of Daylight savings time. Maybe the cron does not use that?
All cron-servers are different, difficult to check for me. Ask with your webhoster.

Also it is possible that you scheduled the w34_cron_empty one hour off. check the cron settings. It should run at 00:05  not at 01:05.

The two other files still contain test data from yesterday.
But also the correct line from the cron-job.
Code: [Select]
2019-06-08 23:55:02,81.0,69.0,69.00,64.00,0.00,26.0,21.0,0.00,29.86,29.81,0,From now on the yearly file will get one  line per day until Dec 31.
The month file 2019_06.csv also during june. In July there will be a new file. 2019_07.csv created.

So lets check tomorrow.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 09, 2019, 01:24:31 PM
The one hour difference can occur because of Daylight savings time. Maybe the cron does not use that?
All cron-servers are different, difficult to check for me. Ask with your webhoster.

Also it is possible that you scheduled the w34_cron_empty one hour off. check the cron settings. It should run at 00:05  not at 01:05.

The two other files still contain test data from yesterday.
But also the correct line from the cron-job.
Code: [Select]
2019-06-08 23:55:02,81.0,69.0,69.00,64.00,0.00,26.0,21.0,0.00,29.86,29.81,0,From now on the yearly file will get one  line per day until Dec 31.
The month file 2019_06.csv also during june. In July there will be a new file. 2019_07.csv created.

So lets check tomorrow.

Wim

Okay, I have the cron jobs scheduled at 2358 and the other is scheduled to run at 0000.  Should I change it to 0005?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 09, 2019, 01:41:53 PM
I just checked with my hosting company tech support and they stated the cron server does recognize daylight savings.

I also adjusted the time of the cron job to clear the table to 0005.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 10, 2019, 04:36:35 PM
The one hour difference can occur because of Daylight savings time. Maybe the cron does not use that?
All cron-servers are different, difficult to check for me. Ask with your webhoster.

Also it is possible that you scheduled the w34_cron_empty one hour off. check the cron settings. It should run at 00:05  not at 01:05.

The two other files still contain test data from yesterday.
But also the correct line from the cron-job.
Code: [Select]
2019-06-08 23:55:02,81.0,69.0,69.00,64.00,0.00,26.0,21.0,0.00,29.86,29.81,0,From now on the yearly file will get one  line per day until Dec 31.
The month file 2019_06.csv also during june. In July there will be a new file. 2019_07.csv created.

So lets check tomorrow.

Wim

Wim,

I checked this morning and it appears both cron jobs ran again last night, but what I didn't notice yesterday that I noticed today...is they both ran an hour late, both Saturday night and last night.  Instead of running at 2358 and 0005 as scheduled, they ran at 0058 and 0105.  That would explain why there was no data between 0000 and 0100, because it was cleared out at 0100 (the original time was set at 0000 to clear the table, but apparently ran an hour later).

In an attempt to correct this, today I changed the scheduled times to 2258 and 2305.  I will check again tomorrow morning.  If my theory is true and for whatever reason the jobs run an hour later than scheduled, they should run at the time I am desiring.  :)

Another question which might be a setting I missed.  When looking at the forecast, in the pop up window it shows the temp in C versus F.  Is this a conversion issue in the coding or did I miss a setting?  See the image below.

Then one more thing I noticed, at the top of the page in the Annual block it shows 16.7 inches of rain for the year and 0.0 inches of rain for June.  Then at the bottom of the page in the Rainfall today block 16.69 inches of rain for 2019 and 0.01 inches of rain for June.  I assumed the difference for rain total for the year was the figure in the annual block had been rounded up, but in the Rainfall today block, if one were to add the rainfall for June to the yearly total you would come with the same result.  Any ideas??

Thanks again for everything.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 10, 2019, 05:03:06 PM
Wim,
. . . shortened . . .
Another question which might be a setting I missed.  When looking at the forecast, in the pop up window it shows the temp in C versus F.  Is this a conversion issue in the coding or did I miss a setting?  See the image below.
The text-line in the top is not converted.
Check your easyweather-settings.  Probably you selected for DarkSky to use metric units. The scripts will translate all units to the desired ones. But not the text-forecasts.
Quote
Then one more thing I noticed, at the top of the page in the Annual block it shows 16.7 inches of rain for the year and 0.0 inches of rain for June.  Then at the bottom of the page in the Rainfall today block 16.69 inches of rain for 2019 and 0.01 inches of rain for June.  I assumed the difference for rain total for the year was the figure in the annual block had been rounded up, but in the Rainfall today block, if one were to add the rainfall for June to the yearly total you would come with the same result.  Any ideas??
That is a coincidence. The values are rounded.  In the July release the number of decimals are correct for inches also in the small block
Check http://wd34.weather-template.com/pws07/index.php?units=us
Quote
Thanks again for everything.
No thanks, best regards, wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: Tlowe on June 11, 2019, 03:26:25 AM
Just an FYI.

I have had successful WU downloads with an APi key 24/7 for 3 days.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 11, 2019, 04:46:42 PM
The text-line in the top is not converted.
Check your easyweather-settings.  Probably you selected for DarkSky to use metric units. The scripts will translate all units to the desired ones. But not the text-forecasts.That is a coincidence. The values are rounded.  In the July release the number of decimals are correct for inches also in the small block
Check http://wd34.weather-template.com/pws07/index.php?units=usNo thanks, best regards, wim

Wim,

Yeah, it was a setting for DarkSky, I was using SI for units versus the US, I did it quick and thought I had picked the right one.  After it downloaded the updated information from DarkSky it was displaying the correct units.

This morning I checked and the cron jobs ran at the correct time.  I don't know if the data in the tables has the correct times though when I looked at them early this morning shortly after the jobs ran.

Otherwise, the web page seems to be displaying most of the data correctly.  I'm not sure the windows for the month or yearly graphs are correct, but this may have more to do with not enough data in the tables.

Rick
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 12, 2019, 03:29:31 AM
Hello, I've come across another part on my web page that I don't have set correctly and need help setting it up correctly.  At the top of the page on the right is a block which displays Weather Alert (see pic below).  When I saw this I thought it is a great addition to the page.  My problem is it isn't displaying the alerts for my area.  I think it is displaying the default information. 

In the EasyWeatherSetup for weatheralarm I chose USA use NWS, for the alarm_area I put in the S.A.M.E. (Specific Area Messaging Encoding) code for my area from the NWS.  I'm not sure if that was correct or not.

Is there something else I am supposed to do??

Thanks in advance,
Rick
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 12, 2019, 06:37:04 AM
Hello, I've come across another part on my web page that I don't have set correctly and need help setting it up correctly.  At the top of the page on the right is a block which displays Weather Alert (see pic below).  When I saw this I thought it is a great addition to the page.  My problem is it isn't displaying the alerts for my area.  I think it is displaying the default information. 
In the EasyWeatherSetup for weatheralarm I chose USA use NWS, for the alarm_area I put in the S.A.M.E. (Specific Area Messaging Encoding) code for my area from the NWS.  I'm not sure if that was correct or not.

Is there something else I am supposed to do??
Thanks in advance,Rick

The Curly NWS-alrert scripts are exactly the same, without any customisation,  as the distribution by Ken True, who is maintaining those legacy scripts.
Instructions: http://www.rrogers.us/pws/nws-alerts-142/NWS-alerts_read_me.html

Normally there is also a menu entry which leads to http://www.rrogers.us/pws/w34_start_frame.php?frame=weatheralarms
There you can check which areas you are using.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 13, 2019, 11:56:32 AM
We finally got some rain yesterday, yeah!!!  Something I noticed this morning is in the rainfall today box, on the left side it shows 0 in of rain for yesterday, yet we received 0.52 inches as the total raised by that amount.

Has this already been addressed??
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 13, 2019, 12:02:22 PM
We finally got some rain yesterday, yeah!!!  Something I noticed this morning is in the rainfall today box, on the left side it shows 0 in of rain for yesterday, yet we received 0.52 inches as the total raised by that amount.
Has this already been addressed??
What is the problem exactly? What is wrong, what should the different  amounts be?

Both your "weather34/Ken True"  version and "my" version show exactly the same amounts.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 13, 2019, 12:39:40 PM
What is the problem exactly? What is wrong, what should the different  amounts be?

Both your "weather34/Ken True"  version and "my" version show exactly the same amounts.

Wim

In the pic attached to my post I circled what I'm talking about.  I'm assuming where it says yesterday is supposed to show the amount of rain received yesterday.  It shows "0" or is this supposed to be showing what the rain rate yesterday was??
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 13, 2019, 01:49:04 PM
In the pic attached to my post I circled what I'm talking about.  I'm assuming where it says yesterday is supposed to show the amount of rain received yesterday.  It shows "0" or is this supposed to be showing what the rain rate yesterday was??
It should show the total amount of rain of yesterday. Same amount as in your Cumulus program was recorded yesterday.
https://cumuluswiki.wxforum.net/a/Realtime.txt
Code: [Select]
22 yesterday's rainfall <#rfallY>As both dashboards show the same value, why do you think there was another amount of rain?
They use the same realtime.txt but the different scripts show the same values. So no script error.

There are no other values to check. Do you have more values or screenshots?

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 13, 2019, 02:06:27 PM
It should show the total amount of rain of yesterday. Same amount as in your Cumulus program was recorded yesterday.
https://cumuluswiki.wxforum.net/a/Realtime.txt
Code: [Select]
22 yesterday's rainfall <#rfallY>As both dashboards show the same value, why do you think there was another amount of rain?
They use the same realtime.txt but the different scripts show the same values. So no script error.

There are no other values to check. Do you have more values or screenshots?

Wim

Please see the picture below.  It is a screen shot of the data taken from the result.csv table, which shows exactly what I previously stated.  I knew the amount because I was watching it during the storm, but the data in the table confirms it.

Thanks,
Rick
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 13, 2019, 02:42:09 PM
Please see the picture below.  It is a screen shot of the data taken from the result.csv table, which shows exactly what I previously stated.  I knew the amount because I was watching it during the storm, but the data in the table confirms it.

Thanks,
Rick

Sorry, but that table confirms "todays rain" as it was measured yeasterday! Totally different ball-game

I checked other cumulus sites and they happily report yesterdays rain, see attached screenshot.  90% sure no script error so far.

Your sites / file does not supply yesterdays rain data:
http://www.rrogers.us/pws/w34_module_test.php
=> middle row, left block
==> ../pwx/data/realtime.txt is selected, click list contents
==> in the data area click on  "List this file as space seperated fields file"

Your realtime.txt has only a not-exist value in the yesterday rain field array[21] , it contains ---

That --- could signal that your weather-program  Cumulus can/will not supply yesterday rain data,
You should be using midnight as your start of day, seems correct as your result.csv has correct data.

Or maybe you are using your own tag file to generate realtime.txt and it contains an error

Or maybe you are using another weather-program, such as cumulusMX or weatherCat or WeeWX with an invalid tag.
Your Cumulus version number does not report 1.9.2 which is the latest version, but field array[38] => 2.16
So probably you are using another weather-program.

For now I can not find more information,

Wim

P.S.
Description of Cumulus realtime.txt https://cumuluswiki.wxforum.net/a/Realtime.txt
Description of all Cumulus tags http://cumulussites.net/index.php?a=page&id=webtags


Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 13, 2019, 03:37:02 PM
Sorry, but that table confirms "todays rain" as it was measured yeasterday! Totally different ball-game

I checked other cumulus sites and they happily report yesterdays rain, see attached screenshot.  90% sure no script error so far.

Your sites / file does not supply yesterdays rain data:
http://www.rrogers.us/pws/w34_module_test.php
=> middle row, left block
==> ../pwx/data/realtime.txt is selected, click list contents
==> in the data area click on  "List this file as space seperated fields file"

Your realtime.txt has only a not-exist value in the yesterday rain field array[21] , it contains ---

That --- could signal that your weather-program  Cumulus can/will not supply yesterday rain data,
You should be using midnight as your start of day, seems correct as your result.csv has correct data.

Or maybe you are using your own tag file to generate realtime.txt and it contains an error

Or maybe you are using another weather-program, such as cumulusMX or weatherCat or WeeWX with an invalid tag.
Your Cumulus version number does not report 1.9.2 which is the latest version, but field array[38] => 2.16
So probably you are using another weather-program.

For now I can not find more information,

Wim

P.S.
Description of Cumulus realtime.txt https://cumuluswiki.wxforum.net/a/Realtime.txt
Description of all Cumulus tags http://cumulussites.net/index.php?a=page&id=webtags

I think I am understanding what you are saying.  My weather station is what sends out the data about how much rain is received per 24 hour period.  It not only reports the amount each minute, hour, etc., but sums up the data for each day and all of that data is then sent out as well.

I don't have a program like Cumulus or Weather Display running on a separate computer which then sends the realtime.txt to my web site.  I have the WiFiLogger (WFL) connected to my weather station and it creates the realtime.txt file and sends it directly to my web site. So I need to get in touch with Wojciech (WiFiLogger) to see about getting this data included in the realtime.txt file.

Below you can see a screen shot of my weather station which shows the total amount of rain received yesterday, which equates to the total for the last line for the day in the rain-today column of the current realtime.txt file  I guess I didn't realize there was a separate field for the weather station to place that data in.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 13, 2019, 06:57:28 PM
I think I am understanding what you are saying.  My weather station is what sends out the data about how much rain is received per 24 hour period.  It not only reports the amount each minute, hour, etc., but sums up the data for each day and all of that data is then sent out as well.

I don't have a program like Cumulus or Weather Display running on a separate computer which then sends the realtime.txt to my web site.  I have the WiFiLogger (WFL) connected to my weather station and it creates the realtime.txt file and sends it directly to my web site. So I need to get in touch with Wojciech (WiFiLogger) to see about getting this data included in the realtime.txt file.
. . . shortened . . .

I will adapt the current HWS-WD34-template version July to also include WiFiLogger.
I need a nice logo to include on the bottom left, maybe you know one?

Also I will remove the yesterday rain value the July release.  In the October release there will be a lot of new values, including yesterday values .

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: medic29 on June 13, 2019, 10:54:14 PM
I will adapt the current HWS-WD34-template version July to also include WiFiLogger.
I need a nice logo to include on the bottom left, maybe you know one?

Also I will remove the yesterday rain value the July release.  In the October release there will be a lot of new values, including yesterday values .

Wim

Wojciech (WiFiLogger), states he believes the better file to use for web site data is his wflex.json file.  He states it contains way more data than the realtime.txt file can contain.  I had attached the most recent file from my web site.  the WFL sends this file and the realtime.txt file together.  I don't know if it would be of any help, but I thought I would send it to you and you can see what it contains.

Thanks again,
Rick
Title: Re: HWS-template (WD34 / weather34) April release
Post by: on4rm on June 14, 2019, 08:26:03 AM
I have a strange behavior of all popup. The X axis is show only a range from 00h00 to 08h00, even we are later.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 14, 2019, 08:29:52 AM
I have a strange behavior of all popup. The X axis is show only a range from 00h00 to 08h00, even we are later.
If I would be clairvoyant I could help you  :D , but sadly you need to give me the URL to your website so I can check what is happening.

Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: on4rm on June 14, 2019, 08:56:06 AM
http://www.on4rm.be/pwsWD/index.php
Sorry for this missing :)
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 14, 2019, 10:16:17 AM
I have a strange behavior of all popup. The X axis is show only a range from 00h00 to 08h00, even we are later.
http://www.on4rm.be/pwsWD/index.php

You seem to be using WU to get the data for your graphs. To check that data, youcan use the debug-console at  http://www.on4rm.be/pwsWD/w34_module_test.php
Click at "Load files"  in the bottom row and all needed files will be retrieved, same as in the update script / cron-job
It returns at the bottom the messages for your WU files:
Code: [Select]
w34_load_files.php (276) time spent: 0.5304 -  CURL OK for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=day&day&month&year&format=1
w34_load_files.php (281) time spent: 0.5304 -  empty data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=day&day&month&year&format=1 Old data will be used ./chartswudata/IBRAIN3YMD.txtrnm
w34_load_files.php (276) time spent: 0.368 -  CURL OK for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=month&year&month&format=1
w34_load_files.php (281) time spent: 0.368 -  empty data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=month&year&month&format=1 Old data will be used ./chartswudata/IBRAIN3YM.txtrnm
w34_load_files.php (276) time spent: 0.4319 -  CURL OK for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=year&year&format=1
w34_load_files.php (281) time spent: 0.4319 -  empty data for https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=year&year&format=1 Old data will be used ./chartswudata/IBRAIN3Y.txtrnm

I checked your IBRAIN3 and the data is correctly loaded from within the browser.
But as the scripts do not get any data from WU, they use the old cached file,  f.i. for today that is http://www.on4rm.be/pwsWD/chartswudata/IBRAIN3YMD.txt
And that file contains data of 1 day in April

So maybe still a problem at WU.  Maybe they blocked your IP.

Better wait a few days if it will get solved. 

If not you can post a ticket to WU, but they are extremely busy.
Or you could start using your own webserver to store the data. But for the April release you need to define a database and a data-table.
Better wait for the July release, or use the beta, as that release uses no  database, only the files,  so it is easier to install.

Wim

Title: Re: HWS-template (WD34 / weather34) April release
Post by: on4rm on June 14, 2019, 02:39:08 PM
Nice answer. Ok I will check the trouble. Can be a problem with the rights on the PI3 to download the txt file. I know now where I have to search.
Thank's for your support.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: on4rm on June 14, 2019, 04:04:54 PM
the url https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=year&year&format=1 work fine in direct in the browser.
How to verify the crontab ?
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 14, 2019, 05:19:19 PM
the url https://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=IBRAIN3&graphspan=year&year&format=1 work fine in direct in the browser.
Yes that is what i said before.
Did you check that on the same local network as your webserver?
Quote
How to verify the crontab ?
You do not need to check the crontab first.  Check the error log on your webserver first.

===
To check that data, you can use the debug-console at  http://www.on4rm.be/pwsWD/w34_module_test.php
Click at "Load files"  in the bottom row and all needed files will be retrieved, same as in the update script / cron-job

Again check your servers error log, is there any information?

===

Otherwise login to the web-server and run a browser on your server and check the url's

===

I attach a small test script. Place it in the pwsWD/ folder on your webserver
Use your browser:   http://www.on4rm.be/pwsWD/test_url.php

A lot of detailed information is shown.
Probably we can then see what the problem is.

===

Sorry,  I can assist you with all kind of script problems, but problems with  the communication between your webserver and WU is beyond my normal possibilities.

Success,
Wim
Title: Re: HWS-template (WD34 / weather34) April release
Post by: on4rm on June 14, 2019, 05:45:47 PM
YES !!!! I got it! The problem was coming from the owner of the folder /var/www/html/on4rm/pwsWD/chartswudata. I chmod this one to WEB-DATA and all is ok know :) 
Title: Re: HWS-template (WD34 / weather34) April release
Post by: WxTrader on June 20, 2019, 08:31:15 AM
I have been running weather34 for weather display live with no problems at https://www.weatherinharrogate.co.uk/pwsWD/ taking the data from weather display software on my pc running 24/7 and WU for the charts as I upload all data to this site.

I have wanted to get away from using a pc 24/7 so bought a Meteobridge Pro unit and have downloaded and installed the weather34 meteobridge version. I have copied across all the API keys from Dark Sky, Weather Underground and ChartWX but these modules do not appear to be working. Also how do you get the mbcharts to work in this version as it does not allow me to use WU charts. I have gone through pages of comments on this site but cant seem to find the answer.

The address of the meteobridge site is https://www.weatherinharrogate.co.uk/meteobridgeweather34/

Any help or pointers in the right direction would be much appreciated.
Title: Re: HWS-template (WD34 / weather34) April release
Post by: wvdkuil on June 20, 2019, 08:56:32 AM
I have been running weather34 for weather display live with no problems at https://www.weatherinharrogate.co.uk/pwsWD/ taking the data from weather display software on my pc running 24/7 and WU for the charts as I upload all data to this site.

I have wanted to get away from using a pc 24/7 so bought a Meteobridge Pro unit and have downloaded and installed the weather34 meteobridge version. I have copied across all the API keys from Dark Sky, Weather Underground and ChartWX but these modules do not appear to be working. Also how do you get the mbcharts to work in this version as it does not allow me to use WU charts. I have gone through pages of comments on this site but cant seem to find the answer.

The address of the meteobridge site is https://www.weatherinharrogate.co.uk/meteobridgeweather34/

Any help or pointers in the right direction would be much appreciated.
That is the version maintained byWilliam aka "lightmaster"

The weather34-meteobridge+cumulus+weewx versions use totally different PHP-code from the wd34-WeatherDisplay+others which are discussed here.

For your weather34 meteobridge version,  the topic with all information and the right place to get support is  https://www.wxforum.net/index.php?topic=31507.0
It is a very long topic covering multiple versions. Last message today  https://www.wxforum.net/index.php?topic=31507.msg383457#msg383457

If you post your questions in that topic or create a new topic, you will find multiple knowledgable users which can help you.

One thing which is important.  Your DarkSky a.o. data retrieval is done by cron-jobs. So you need to rum the crons every 5 minutes.
First you should run them manually in your browser and check if there are error messages.

=======

There is another solution also.  Any Meteobridge  can also upload a "look-a-like" Cumulus realtime.txt file. Other templates, such as Saratoga and Leuven have used that format in different incarnations for years.

If you want to continue to use your current https://www.weatherinharrogate.co.uk/pwsWD/ ,  I can modify the latest version of that to process a MB-realtime.txt

But the weather34 version has more items to display and has extra nice features to play with in the future.

Let me know if you want to use the wd34 version with your Meteobridge.
You can see how it looks at https://www.weerstation-herent.be/pws07/ 
It is using the realtime file from that stations Meteobridge  https://www.weerstation-herent.be/realtime.txt
Wim