This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello everyone,
I'm building a remote temperature and humidity monitor for my attic using a Raspberry Pi Zero W and an Enviro HAT. My intention is to take a reading every 15 minutes and save it to a database for visualizing later. My question is... Is it better to write a time.sleep(900) in a While loop and have the program continuously run or should I have it take the reading and then end the program and set a cron job to run every 15 minutes? Regardless of the method, I'll set it up so the script runs automatically on boot in case the pi shuts off but which would be more stable?
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/learnpython...