HWS-template (WD34) beta test July version

Probably you choose WU for the charts, you should select your own server.

Then we can see if the 5 minute cron stores the data for today and the end of the day cron does the same for month and year

Wim


I had it that way initially, but it wasn’t showing any of the graphs, so I switched it to the WU. I’ll change it back now.

Wim, if I do not upload any data to Weather Underground, am I right to presume that I will have no yearly/monthly/daily data/table for the temperature, the wind, the rainfall and the pressure?

For some reasons, the ‘w34_module_test.php’ template will not be displayed through my Abyss Web Server if it is not properly formatted as an HTML file - I guess the Abyss Web Server has been designed to respect Internet standards. :?

Past releases of every weather34 clone use an SQLn table if one was not uploading.
July (and its beta) release use plain .txt files but it works the same.
July relase and april release works OK at numerous test sites using their own generated .csv or .txt files.
It is one setting in easyweather for the July release. For the april release you have to define a database and table also.
Check the docs.
http://wd34.weather-template.com/ => http://wd34.weather-template.com/documentation/WD34-SQL-2019-04.pdf

For some reasons, the ‘w34_module_test.php’ template will not be displayed through my Abyss Web Server if it is not properly formatted as an HTML file - I guess the Abyss Web Server has been designed to respect Internet standards. :?
As for now all releases passed all html checking and no errors in PHP
You should ask your provider or dealer when some script running at multiple sites does not work at your website.

But maybe I misunderstood your question. Please always give the URL to your site.
As I do not understand your problem I want to test it on your site.

Wim

P.S. See next post for a html compliant version

@R_o_B

Attached a version of the debug console w34_module_test.php which passes the html checks.

https://validator.w3.org/nu/?showsource=yes&doc=http%3A%2F%2Fwd34.weather-template.com%2Fpws07%2Fw34_module_test.php

Wim


w34_module_test.php.zip (2.93 KB)

I changed the setting back to having the data stored on the web site. I just checked the chartsmydata folder and it remains empty. Does this have to go past midnight before it begins generating the tables??

No the station-cron should do its job.

It should make the todays.txt file if it is not there, it did when I ran it in the browser
http://www.rrogers.us/pws07/w34_cron_stationcron.php => success files loaded + day file should be created + data appended to day file
Ran it again http://www.rrogers.us/pws07/w34_cron_stationcron.php => success files loaded + data appended to day file

And now the file is there and contains

time, outsideTemp, barometer, raintoday, UV, windgust, windSpeed, radiation, dewpoint, rainrate, direction, date, lightning,
12:06,75,29.7,0.01,0,3,0,-0,69.3,0,230,06 Jul,0,
12:06,75,29.7,0.01,0,3,0,-0,69.3,0,230,06 Jul,0,

So two possibilities

  1. The permissions are not correctly for the crons
  2. The crons are not scheduled yet

Wim

One always need a cron-job to do those tasks.
I supply those job-scripts but you have to instruct a cron-server to execute them.

Wim

My mistake. Again, I appreciate it. All is working as expected so far.

Thanks again!!!

Wim,

There is an interesting development. I was looking at the graph for my temps and noticed after the 1939 reading, the next reading on the graph has a time of 1800 and the reading is zero, then the next reading is at 1948 and it back to where it should be.

I noticed this had happened with the April release as well. I just checked the graph for the temp of the April release. The temp for the same time is what it is supposed to be. I did notice there were a couple of instances where the graph did show it recorded times of 1800 (in the wrong place) and recorded a temp of zero.

Any ideas???
Rick

(April) http://www.rrogers.us/pws
(test) http://www.rrogers.us/pws07

That line with time 18:00 is UTC time 00:00 and all other fields are also zero

Luckily your daily cron-jobs are not (correctly) running so all data is still in the daily file
http://www.rrogers.us/pws07/chartsmydata/today.txt

19:33,72,29.583,0.29,0,0,0,0,69.6,0,39,06 Jul,0,
19:39,72,29.58,0.29,0,0,0,0,69.4,0,39,06 Jul,0,
18:00,0,0,0,0,0,0,0,0,0,0,31 Dec,0,
19:48,72,29.586,0.29,0,0,0,0,69.3,0,39,06 Jul,0,
19:54,72,29.587,0.29,0,0,0,0,69.2,0,341,06 Jul,0,

http://www.rrogers.us/pws/chartsmysql/result.csv has two all-zero lines

17:24,80,29.829,0,0,5,0,0,66.5,0,83,06 Jun,0
18:00,0,0,0,0,0,0,0,0,0,0,31 Dec,0
17:33,80,29.827,0,0,6,2,0,66.1,0,87,06 Jun,0

0:24,69,29.816,0,0,1,0,0,63.5,0,86,06 Jul,0
18:00,0,0,0,0,0,0,0,0,0,0,31 Dec,0
0:33,68,29.819,0,0,0,0,0,63.3,0,86,06 Jul,0

It could be an upload error. Modern FTP often upload a file as file.txtRNM and when upload is finished they rename the file.txtRNM to file.txt
As far as I know you are the first one with this problem.

I added some code to check for empty data before writing the data to the .CSV or .TXT files.
Please test the attached version for the pws07 release only!
Wim


w34_cron_stationcron.php.zip (1.87 KB)

Wim, I asked you a simple question - you did not need to take a defensive attitude and call attention to documents that I have already downloaded and that I have already read!

I already know that the templates can use a SQL database! I just wanted a simple ‘yes or not’ answer to my question. :?

Unfortunately, since I have stopped uploading my weather station data to Weather Underground, I have not had the time to install nor to create a database that the templates can use.

I understand that some HTML tags can be omitted … but since all other HTML tags have been properly used, the above template is still missing a closing ‘’ tag. :wink:

I used to much words, always try to explain to much and point to the documents.
But the July version does not need an database/SQL table anymore.

. . . shortened . . .
I understand that some HTML tags can be omitted … but since all other HTML tags have been properly used, the above template is still missing a closing ‘’ tag. :wink:
I assumed when the validator says there are no errors, it really was so.
I added that closing tag for the release version.
Wim

I uploaded the file as requested to the pws07 release

Hi Wim,

I checked my email for the results of the cron jobs which run around midnight to add the data to the year table and the clear the today table. Please see the screen shots of the emails I received showing the results of the cron jobs.

I have the cron jobs executing at the following times:

2358 w34_cron_addtoyear.php
0000 w34_cron_empty.php


The second mail is correct. But i left the cron in for future use. It can do no harm and i can test if the crons work without disturbing something.

The first one is very strange. The file is there, but can not be accessed from the outside. The cron is running from outside!
http://www.rrogers.us/pws07/chartsmydata/today.txt =>OK => outside server works

http://www.rrogers.us/pws07/w34_module_test.php => this script runs inside the website.
=> select left middle box “./chartsmydata/today.txt” click on “Listcontents” => data is correctly shown

This seems to be a permission problem

Is this something I need to fix?? If so, any suggestions on how??

I am in a: no change timezone (Arizona). I set the PHP zone to America/Phoenix like I always do and set the second line to “no change” and the time displayed is ahead by one hour (+1). We (AZ) are -7. If I set the second line to “change”, then I get the correct time.

Yes you need to fix it. The how is more complicated.
I am puzzled why the 5 minute cron works and the nightly cron fails.
I assume they both run using your providers cron-facilities?

To do:
First you should set the permissions for the data folders correct.
So that the cronjob can be executed. Permissions 755 for the folder and the contents should do.
Depending on your webhosting company you can do that with cPanel, filemanager or use an FTP program.

Currently the http://www.rrogers.us/pws07/chartsmydata/today.txt contains data of multiple days so the nightly cronjobs still fail.

If tomorrow the cron jobs still fail ask your support to help you.
Or start a new topic on this forum “cron-job fails help needed”
This is not a WD34/HWS problem but a "setting’ with your provider. We had multiple discussions in the past, and most were solved.

If all fails, use a outside cron provider.
They work via the internet and that is the same as typing it in your browser.
That is also very easy to test.

Wim

P.S. I am off the grid till early monday so I will check as soon as i am home.