- enter
rails s -p3214
in a new terminal window - enter
ngrok http 3214
in a different terminal window - copy the https Forwarding address from the ngrok output
- in a browser, go to: https://www.twilio.com/console/phone-numbers/incoming
- select the phone number associated with this project
- in the Configure > Messaging section, set the field labeled: A MESSAGE COMES IN to the value copied in step 3, with the path
/sms_requests
appended to the end. E.g.https://05bee6cb.ngrok.io/sms_requests
The following is a list of availble SMS commands.
:reset
: resets the session, removing all previously registered phone numbers.:remove <coordinate>
: resets the pixel at<coordinate>
.<coordinate>
: registers the phone from which the coordinate was sent, with the current session. A<coordinate>
is a letter, a-z followed by a number. E.g.a4
,<word>
: a word containing 4 or less characters, to be rendered on the screen of phones. E.g.love
.