Monitor a website and send a text message if not unreachable
- Tessel based website uptime monitoring and SMS notification + option to use a relay/pin
- Includes simple node server to monitor and demonstrate the alarm
- Remeber to run
npm install
in this project repo to get all the dependencies
- Tessel 2
Relay module(optional: sends SMS, but you can do more like toggle power on something)
- node-static - simple web server to demonstrate project
- os - used to get the server IP address and return it to a client
- tessel - cannot live without it ;)
- twilio - used with a free account to send an SMS message
relay-mono- try turning on a rotating light/etc.tessel-toggle-power- toggles a relay module, or specified pin (wire up your own relay and trigger it)
--
- Get a free account from Twilio, then activate a From
number
- Edit
app.js
: enter your accound SID, token, twilio (from) number, cell number andWEB_ADDRESS
- Run
node server
which you can then view @localhost:3000
t2 list
to make sure your Tessel is connected, then runt2 run app.js
- Your T2 app will noisily output console logs (notice
DEBUG = true
) - Switch to your node server and press
CTRL+C
to stop the web server - When the T2 app runs
http.get
and it fails, you will get an SMS message - Feeling adventurous? Have a Relay module or breadboard, some jumper cables and lights? Enable the
relay-mono
andtessel-toggle-power
lines withinapp.js
. If you use a Relay module, plug it into port A as shown in the code. If you use a pin simply edit the code with the pin-number that you prefer.
So now the question is, what else can you do with this?! :)
--
Made with ♥ by CAA