Activity tracker which sends a text message + posts to webpage
- Monitor accelerometer to track movement/sleep and send SMS/text message
- Remeber to run
npm install
in this project repo to get all the dependencies
- 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 ;)
- accel-mma84 - lets you read the tilt of the accelerometer module
- twilio - used with a free account to send an SMS message
- socket.io - setup a web socket between the web server and browsers
--
- Plug your Accelerometer module into port A
- Get a free account from Twilio, then activate a From
number
- Run
node server
and copy the IP Address shown - you can view also view it @localhost:3000
- Edit
app.js
and enter the copied IP into the variableWEB_SERVER_ADDRESS
Also enter your accound SID, token, twilio (from) number and a cell number 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
) - Bump the accelerometer; you will get an SMS messsage and the same shows up on the web page
So now the question is, what else can you do with this?! :)
--
Made with ♥ by CAA