Temperature update interval

Skip to first unread message


May 18, 2022, 10:26:07 PM5/18/22
to PrivateEyePi
Any idea how I can adjust the temperature update times? In the CRON job, I have it set up for every 20 minutes. But I am still exceeding the free limits by 8am daily.

Thanks for any ideas


Glenn Seaton

May 30, 2022, 11:58:51 AM5/30/22
to PrivateEyePi
Looking at the logs, you are repeating the readings every few seconds and that is why you max out so soon.
What apps are you running and what have you got the CRON tasks doing?  


Jun 7, 2022, 1:45:23 PM6/7/22
to Glenn Seaton, PrivateEyePi

Here's the results when I do "crontab -l"

*/40 * * * * sudo python2 /home/pi/pep/dallas.py >/dev/null 2>&1

You received this message because you are subscribed to a topic in the Google Groups "PrivateEyePi" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/privateeyepi/dBaiCsMIPn8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to privateeyepi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/privateeyepi/792ce549-7592-4945-8d0c-7bd1e140d0dbn%40googlegroups.com.

Glenn Seaton

Jun 7, 2022, 1:57:36 PM6/7/22
to PrivateEyePi
OK I think I see the problem.
You are starting a new copy of dallas.py every 40 minutes, not running dallas.py once every 40 minutes.
Which means after a few hours there well be multiple copies running.  If each copy sends a reading, it would not take long to exceed the limit for the day.
To see that, open a new terminal window and run the commend
  ps -aef |grep dallas
I think you will get more than one dallas.py program is in memory running.

The documented cron process is to run the program restarter.py.  That program runs once and dies.  What it does, is tests to see if dallas.py is running, if it is, all is well.  If dallas.py is not running it will start dallas.py.  That insures only one copy is running.  Details are at https://projects.privateeyepi.com/automate-your-alarm.php


Reply all
Reply to author
0 new messages