Life expectancy data taken from https://usa.mortality.org/national.php?national=USA
Somewhat based on this tutorial - https://www.twilio.com/en-us/blog/go-old-school-build-a-pager-using-arduino-node-js-and-twilio-html
- Upload the memento sketch to the board.
- Close the arduino IDE. otherwise you won't be able to communicate with the serial port from the node script.
- Run the app.js script
node app.js
- Use ngrok to expose your local server to the world. Create a static ngrok domain so that you can use the same url every time - https://ngrok.com/blog-post/free-static-domains-ngrok-users
- Run the command with the domain flag
ngrok http 3000 --domain=your-domain-name.ngrok-free.app
- In your Twilio account set the webook url for receiving sms to be your static domain /sms -
your-domain-name.ngrok-free.app/sms
- Text your Twilio number with your name, age, and f or m for female or male. They have to be in that order and seperated by spaces
e.g.
Jane 30 f
- Take the receipt that shows how much estimated time you have left!