Downtime check - Raspberry Pi Forums


hello,

made simple script send me email every-time raspberry boots up, way can know when email there power outage in house.

i'm trying improve having send me how long down can't find way it.


thanks

just idea: have script write current time file, say, every minute. script can start on boot. first thing @ file , see last time recorded. can calculate current difference between time , time , send email. script can start writing current time file again in loop.

sorry formatting, on phone.


raspberrypi



Comments