cloudy cloudy

Author Topic: HWS-template (WD34 ) April release  (Read 8966 times)

0 Members and 1 Guest are viewing this topic.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #165 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


« Last Edit: June 13, 2019, 02:49:39 PM by wvdkuil »
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline medic29

  • Posts: 52
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: HWS-template (WD34 / weather34) April release
« Reply #166 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.
« Last Edit: June 13, 2019, 04:06:15 PM by medic29 »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #167 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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline medic29

  • Posts: 52
  • OS/Browser:
  • Win NT 10.0
  • Mozilla compatible
Re: HWS-template (WD34 / weather34) April release
« Reply #168 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

Offline on4rm

  • Posts: 9
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: HWS-template (WD34 / weather34) April release
« Reply #169 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.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #170 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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline on4rm

  • Posts: 9
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: HWS-template (WD34 / weather34) April release
« Reply #171 on: June 14, 2019, 08:56:06 AM »

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #172 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

Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline on4rm

  • Posts: 9
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: HWS-template (WD34 / weather34) April release
« Reply #173 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.

Offline on4rm

  • Posts: 9
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: HWS-template (WD34 / weather34) April release
« Reply #174 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 ?

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #175 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
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline on4rm

  • Posts: 9
  • OS/Browser:
  • Win NT 10.0
  • Chrome 64.0.3282.140
Re: HWS-template (WD34 / weather34) April release
« Reply #176 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 :) 

Offline WxTrader

  • Posts: 3
  • OS/Browser:
  • Win 7/Srvr 2008R2
  • Mozilla compatible
Re: HWS-template (WD34 / weather34) April release
« Reply #177 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.

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 74.0.3729.169
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #178 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

« Last Edit: June 20, 2019, 12:59:11 PM by wvdkuil »
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/

Offline wvdkuil

  • Wim van der Kuil
  • Posts: 1,421
  • Leuven Belgium CET
  • OS/Browser:
  • Mac OS X 10.13.6
  • Chrome 75.0.3770.100
    • My PWS at Leuven Belgium Europe
Re: HWS-template (WD34 / weather34) April release
« Reply #179 on: June 27, 2019, 03:51:33 PM »
I think we better abandon this topic in a few weeks as the new release is now available. 
This topic here: https://www.weather-watch.com/smf/index.php/topic,68132.0.html
Or directly to the download site: http://wd34.weather-template.com/

Tons of changes, better speed, more adaptions, easier code to change yourself.
So, IMHO you should switch to the all new July version if you can find the spare time to re-install.

Wim
Support & demo PWS_Dasboard  (HWS_template) http://pwsdashboard.weather-template.com/ 
My PWS at home https://weer.sluispark.be/
And at my daughters house https://www.weerstation-herent.be/