I have select on the top bar the wind and temperature Min/Max values. But those always stay at 0. The correct values are well displayed on the blocks below.
Without a link to your website, I can only type a long list of possible causes, which takes a lof of wasted time.
Therefor please post the link to your site, an answer is then to the point and costs you an me less time
Wim
@ALL Always post the link to your site. Adding it to your forum profile is a small one-time task
You can add the small globe to the left in your avatar. Or add an extra line in the footer of all your posts.
Any change to your profile is directly visible in all your old and new posts.
If you do not want to run a cron-job, you can switch the small top-blocks to display only the current high-lows.
# $my_choice = 'multi'; // day / month / year
Set line 4 in the small blocks to comment
If you want to have multiple high-lows you need to run a cron-job to calculate the high-lows for day month year a.s.o.
Explained here No High/Lows, where is history and graphs data used for, and ? cron ? in the middle Missing High-Low values solution
Wim
Ok set the crontab and I receive this error ‘success files loaded + invalid current data + no roll-over needed’
The cron shows correct data when run in the browser
http://www.on4rm.be/pwsWD/PWS_cron_stationcron.php
success files loaded + history recalculated + history saved + need upload to others + 0 uploads + no roll-over needed
Please post how and where you set the cron.
Wim
It run on Pi
*/5 * * * * php /var/www/html/on4rm/pwsWD/PWS_cron_stationcron.php
It seems that the location of the uploaded realtime file can not be found
You can test this by
=> easyweathersetup
==> tab data
===> question 2: Path to your realtime data file.
Change the value
from: …/realtime.txt
to: /var/www/html/on4rm/realtime.txt
Wim
I change the crontab command by adding a CD to directory befor execute the script.
I give me
success files loaded + history recalculated + history saved + need upload to others + 0 uploads + no roll-over needed
…
Thanks :D, another solution.
This running a cron on the same server is always a problem, and there are dozens or so different cron-servers.
…
Question: Can you post the cron-tab setting so that others can benefit also?
…
I also adjusted the PWS_settings.php script to insert the full path also for weewx users. Will be available thursday.
…
Wim
Here is the crontab
*/5 * * * * cd /var/www/html/on4rm/pwsWD && php /var/www/html/on4rm/pwsWD/PWS_cron_stationcron.php >> /home/pi/temp_log && cd/
I am having the same problem on a pi with weewx. My setup is a little different in that I’m generating a clientraw.txt file in the /var/www/html/WeatherD/ folder.
I have tried …/WeatherD/clientraw.txt in the easyweathersetup
and /var/www/html/WeatherD/clientraw.txt
With each of the below crontabs
*/5 * * * * php /var/www/html/pwsWD/PWS_cron_stationcron.php >> /home/pi/temp_log
*/5 * * * * cd /var/www/html/pwsWD && php /var/www/html/pwsWD/PWS_cron_stationcron.php >> /home/pi/temp_log && cd/
And I always get “success files loaded + invalid current data + no roll-over needed” I know it is not finding my clientraw.txt file.
My website is Nemo Rd SD Home Weather Station (wd version) I’d really like any help. I love your dashboard.
There are some errors in loading the data, I can not explain how.
Also that location seems …/…/ seems incorrect as it would en in the www folder.
<b>Warning</b>: file_get_contents(../../customtextout.txt): failed to open stream: No such file or directory in <b>/var/www/html/pwsWD/PWS_livedata.php</b> on line <b>1405</b>
<b>Notice</b>: Undefined offset: 4 in <b>/var/www/html/pwsWD/PWS_livedata.php</b> on line <b>1442</b>
<b>Notice</b>: Undefined offset: 6 in <b>/var/www/html/pwsWD/PWS_livedata.php</b> on line <b>1444</b>
.
I have no idea if these errors can explain your cron problem.
.
Running the cron external works OK.
When I tested, it was just after midnight your local time, it checked for a roll-over and did that, all OK.
Next time I tested it should not execute a roll-over, which was OK also.
[font=courier]success files loaded + history recalculated + history saved + need upload to others + 0 uploads we should check for a roll-over for history not needed, age = 795 seconds No internal DB in use OK[/font]After 01:00
[font=courier]success files loaded + history recalculated + history saved + need upload to others + 0 uploads + no roll-over needed[/font]. All parts of the station-cron work as they should, even with PHP 5.6 which is used by the website. Definitely (99%) not a cron problem. . There really should be no reason why the format @on4rm posted should not work. But also the original format without the [b]cd[/b] should work as the location of the clientraw is fully qualified starting from the home folder. Maybe it is caused by different error handling? . [b]Solution 1:[/b] Use the wget version with cron as that starts in the correct folder and uses the correct user.
*/5 * * * * /usr/bin/wget -O - -q -t 1 "http://192.x.y.z/pwsWD/PWS_cron_stationcron.php"
or
*/5 * * * * /usr/bin/wget -O - -q -t 1 "http://pokie.hopto.org/pwsWD/PWS_cron_stationcron.php"
.
Solution 2:
Use an external cron-server. It can be a free one as it is only 1 job / 5 minutes.
.
Succes, Wim
Edit 17:00 CET: change error in the cron examples from */ * * * * to */5 * * * *
Thank you so much.
*/ * * * * /usr/bin/wget -O - -q -t 1 “http://192.x.y.z/pwsWD/PWS_cron_stationcron.php” is working perfectly!
I have max and min indoor temp times in extra_temp_c_small.php and I have it working on another server http://pokie.ebbpass.com/pwsTEST1/ with WD and customtextout.txt. I made those same changes on the weewx server and all that has no meaning since I don’t know how to do it on weewx. I’ve fixed PWS_livedata.php
I hope you used */5 * * * * /
I read your post and saw that it was a typo in my examples
For sure I used */5 for 5 min on my pi.
Thanks for checking.