TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DENNIS LEE BIEBER
date: 2020-10-22 16:36:00
subject: Re: SDCard -- install her

On Thu, 22 Oct 2020 20:11:45 +0100 (BST), "Dave Liquorice"
 declaimed the following:

>On Thu, 22 Oct 2020 17:35:12 -0000 (UTC), Markus Robert Kessler
>wrote:
>
>> I start a python script via crontab every 10 minutes which reads I2C
>> data from a BME280 sensor. This script calculates the temperature,
>> relative humidity and relative air pressure and sends it to a webserver.
>
>Can't help think why you start the script every 10 mins instead of
>having in a loop with a 10 minute sleep. If you want *exactly* 10

 That aspect is quite logical... Using a crontab entry means if the
script failed at some point for some reason, a fresh process will be
started 10 minutes later (give or take OS overhead).

 While an internal loop might support more precise 10-minute intervals,
if the script dies then nothing will be left running.


 For a remote sensor node that relays readings to another server, I do
think I'd want as many temporary files as possible to be running in RAM
disk, and not off the SD card.


--
 Wulfraed                 Dennis Lee Bieber         AF6VN
 wlfraed@ix.netcom.com    http://wlfraed.microdiversity.freeddns.org/

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.