…removed
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
@ALL
Running the same cron-jobs on different servers (provider / PHP 5 or 7) results in un-predictable behaviour.
There was another change needed also for users running webservers with a “strange” timezone setting.
That gave me ample time to test.
There are new versions of both cron-jobs, both should give identical results when run
[ol][li]from an outside cron-provider, either paid or free[/li]
[li]using your own webhost cron-server
[list type=decimal][li]using the internal php version such as /usr/local/bin/php /home/. . ./public_html/pws07/w34_cron_addtoyear.php[/li]
[li]or using the www version /usr/bin/GET http://- - -website- - -/pws07/w34_cron_addtoyear.php[/li][/ol]
[/li]
[/list]
If you find the time to test the new versions in your setup, future users and I say “Thank you”
Wim
P.S.
I did not discover why the previous versions of the station-cron always worked correctly and the addtoyear cron only when running via http.
Wim,
In the first quote you had modified the w34-cron-stationcron.php file adding lines to the code looking for empty data and I had absolutely no problems after uploading and using this file.
In the second quote you had resolved the issue with the cron jobs running from inside the web server and via http, after uploading and using that file it worked, but…see the txt file attachment from yesterday, I had lines in the file with empty data.
I took some time today and compared the two files. I combined the changes you had made into one file, see attached. I am using this file on my website for the July release (Pesotum, Illinois Home Weather Station (wifilogger version) )
Regards,
Rick
rjr-today.txt (12.2 KB)
w34_cron_stationcron.zip (1.45 KB)