Go to advanced search

by wolfgangam
Wed Nov 09, 2016 3:59 pm
Forum: Python
Topic: Downtime check
Replies: 12
Views: 1943

Re: Downtime check

elParaguayo wrote:Try putting the full path to the txt file in your script.
Thank you!
by wolfgangam
Tue Nov 08, 2016 5:00 pm
Forum: Python
Topic: Downtime check
Replies: 12
Views: 1943

Re: Downtime check

I wrote a code that will write the epoch time to a file and put the script in cron to run every minute but I can't figure out why cron would not run it... I tried both bash and python scripts, both work when I ran manually but not with cron.. Python: #!/usr/bin/python import time import datetime new...
by wolfgangam
Sat Nov 05, 2016 4:35 pm
Forum: Python
Topic: Downtime check
Replies: 12
Views: 1943

Re: Downtime check

elParaguayo wrote:You could write something very quickly based on my method...
I definitely will if there is no software available. thank you
by wolfgangam
Sat Nov 05, 2016 2:23 pm
Forum: Python
Topic: Downtime check
Replies: 12
Views: 1943

Re: Downtime check

Any other software that will do Downtime calc?
by wolfgangam
Fri Nov 04, 2016 3:56 pm
Forum: Python
Topic: Downtime check
Replies: 12
Views: 1943

Re: Downtime check

sudo apt-get uprecords uprecords-cgi Sorted. It would be quite easy to update the code in uprecords to do the email stuff. Hi there, I installed uprecord-cgi and I'm not sure it works like I want it to. I read the man a bit and ran "uprecords -sdB", this is what I got the first time : # Uptime | La...
by wolfgangam
Thu Nov 03, 2016 5:48 pm
Forum: Python
Topic: Downtime check
Replies: 12
Views: 1943

Downtime check

Hello,

I made a simple script to send me an email every-time the raspberry boots up, that way I can know when I get an email that there was a power outage in my house.

I'm trying to improve it by having it send me how long was it down for but I can't find a way to do it.


Thanks

Go to advanced search