##Send Self Confidence SMS Text messages to someone Daily
Inspired by the Iron.io tutorial at http://bit.ly/1geBUI1
- Sign up for free accounts at Twilio.com and Iron.io
- git clone https://github.com/colincalnan/twilio_affirmations.git
- cd twilio_affirmations
- sudo bundle install (iron_worker_ng has the iron_worker command line interface)
- fill in values in config/config.yml file
- fill in values in workers/iron.json
- cd workers
- iron_worker upload affirmation
- return to twilio_affirmation directory
- ruby web.rb
- browse to http://localhost:4567/
- enter a number and click "Let's get positive!"
- uploaded code package: on iron.io: Affirmation
- one scheduled task
- You'll get your first SMS
- Go to IronCache and you'll see the cache created
If you want to change the frequency of when the SMS messages are sent, simply modify the following values in the web.rb file:
How many times should I run this - currently set to 31 times, or in this case, once every 24 hours x 31 = A month!
:run_times => 31
This value is in seconds - in this case it's 24 hours
:run_every => 86400