I've made a simple website now that shows:
Raspberry pi last upload: 2017-01-31 14:21:12
Raspberry pi has been offline: 48.37 minutes
Offline warning
sending SMS...
sending mail...
Uploading alarmtime...
If the raspberry pi doesnt upload data within 1 minute, it reacts.
I have not yet fixed the mail-sending, sms-sending or uploading alarmtime. But it calculates a correct deltatime since the r-pi been up and reacts.
Tomorrow I'll focus on making the SMS part and uploading alarmtime done. The alarmtime is the time when this site sends the Offline warning. If that isn't saved somehow, the site will continually send sms. We just want one sms.
Inga kommentarer:
Skicka en kommentar