Created
April 21, 2014 22:32
-
-
Save dmpayton/11158831 to your computer and use it in GitHub Desktop.
Food Reminder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Sends an SMS reminder to eat food at 10a, 1p, 4p, 7p, and 10p. | |
cron: 0 10,13,16,19,22 * * * /path/to/food_reminder.py | |
""" | |
from twilio.rest import TwilioRestClient | |
account = "ACXXXXXXXXXXXXXXXXX" | |
token = "YYYYYYYYYYYYYYYYYY" | |
to_number = "+12316851234" # your cell number | |
from_number = "+15555555555" # your twilio number | |
client = TwilioRestClient(account, token) | |
message = client.messages.create( | |
to=to_number, | |
from_=from_number, | |
body="EAT FOOD!" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment