- Heartbeat server
- Heartbeat client code
- Create Heroku instance
- Enable free tier LogDNA
- Create ifttt webhook then name it like
missing_heart_beat
. - Create LogDNA Alert > Add Webhook > Absence > When less than
1
matches appear within15 minutes
. Webhook url should be likehttps://maker.ifttt.com/trigger/missing_heart_beat/with/key/************
Mind themissing_heart_beat
part.
- ssh to RPI
touch heartbeat.sh
chmod +x heartbeat.sh
echo "#\!/usr/bin/env bash" >> heartbeat.sh
echo "curl -XPOST -v https://your-awesome-app.herokuapp.com/home/v1/heartbeat" >> heartbeat.sh
crontab -e
then add* * * * * /path/to/heartbeat.sh
.