-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.9 (MingW32)
jA0EBwMC01q3LeMTooZg0nEBgt2xqLbEYUOBemQ8/VcRc06XEz7D4MRl+jQWy3yF
0HtT17kwI9wCVDGXm1m/d7wQ13B6YmYI99Dnnj+8V4NUdc4V7uaMG2Hcg+pJ48G9
RHAEjiGQuvDx4PO4a0TRxtgoN+cVU0Ekib7qIXIiJb7Zig==
=9pjd
-----END PGP MESSAGE-----
On|Off
a blog covering Apple, Windows, programming, robot building and many other geeky things
Thursday, May 5, 2011
Tuesday, January 18, 2011
Python to the rescue
In a not so recent post (recently deleted), I stepped through the process of a home grown phone automation system. I fully intend to make some much needed changes to that project, but the guts of it are as follows - Skype, Applescript, Mail.app and Automator. Recently I've been presented a new problem and decided to leverage Python and Google Voice. After downloading the necessary files (testing it on my MB Pro)
sudo easy_install simplejson
sudo easy_install -U pygooglevoice
launch terminal and type the following
python
from googlevoice import Voice
from googlevoice.util import input
voice = Voice()
voice.login()
phNumber = input('Number to send sms message to: ')
txtMessage = input('SMS message: ')
voice.send_sms(phNumber, txtMessage)
There you have it! A quick way to automate sending a sms message to a number(s).
In my next post I will cover the earlier mentioned HAL system using Skype.
-binarybrain
sudo easy_install simplejson
sudo easy_install -U pygooglevoice
launch terminal and type the following
python
from googlevoice import Voice
from googlevoice.util import input
voice = Voice()
voice.login()
phNumber = input('Number to send sms message to: ')
txtMessage = input('SMS message: ')
voice.send_sms(phNumber, txtMessage)
There you have it! A quick way to automate sending a sms message to a number(s).
In my next post I will cover the earlier mentioned HAL system using Skype.
-binarybrain
Subscribe to:
Posts (Atom)