TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: ALL
from: DAVE LIQUORICE
date: 2020-10-22 20:11:00
subject: Re: SDCard -- install her

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
minutes between each sample one would have to code around the
(variable) time taken for the data sampling, processing and up load
but that's not difficult.

> To be on the safe side I make / made a reboot every night. From this the
> questioned machine didn't return, now. I see in the log that the last
> transmission was ok, then the reboot was started and the connection was
> lost. So, I doubt that the machine completely broke down. Most likely
> the SDCard gave up.

So it hasn't been power cycled and/or the SD card reseated? It could
just be a build up of corrosion in the slot connections. Almost all
Rapsberry boot problems I've had have been down to the latter or a
bad micro SD to SD adapater.

Not sure why you think you need to reboot if it's only running a
simple script. A Pi Zero here:

pi@PiZ-StoveB:~ $ w
 19:37:30 up 49 days, 10:24,

That Pi has extra hardware attached: An ENC28J60 ethernet port, ex
nokia LCD phone display (both on SPI buses), a rotary encoder and a
PWM driven solid state relay (4 GPIO's). It's talking on two 1-Wire
buses (2 more GPIO's) with eight or so devices across the two buses.
Every minute it reads all the 1-Wire devices, updates the display,
logs the data (over ethernet and locally), decides if the PWM drive
to the SSR is correct for the data it gathered and adjusts as
required. The display has an animated "heartbeat" symbol that shows
the system is alive when the PWM is off. If the PWM is on it rotates
the symbol at the appropiate speed. This is all under a multi
threaded python script. Oh almost forgot a bi-color LED that flashes
green as the 1-Wire buses are read or pulses red at rate determined
by the PWM.

It's also running a web server (nginx) that can produce plots of the
logged data on demand.

It's also running pi-hole.

As you can see it's doing all that and been up nearly 50 days... I've
never known it crash in use.

> P.S. I'd rather prefer to use "Raspberry Zero / WLAN" only for
> installation, since it has only Wifi and the network there is cable
> based.

Don't follow that either.  B-)  How does the WLAN help with getting
an ethernet connection?

--
Cheers
Dave.

--- 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™.