Twittering Your Home
Mar 17, 2007 09:05 PM Filed in: Home | Home Automation
Gordon Meyer has a post entiteld Twittering Your Home, showing how to use a applescript to add events to your Twitter account. I haven't found a reason to use Twitter, but this may be enough for me to check it out.
Here’s the script, which borrows some code from Tilman for using curl to send a Twitter status message:
set theMessage to description of me
set TwitterID to "yourID"
set TwitterPassword to "yourPassword"
set TwitterLogin to TwitterID & ":" & TwitterPassword
set TwitterStatus to quoted form of ("status=" & theMessage)
set results to do shell script "curl --user " & TwitterLogin & " --data-binary " & TwitterStatus & " http://twitter.com/statuses/update.json"
You’ll need to enter the login and password for your home’s Twitter account, as noted in the script. Shortly after running this script, the message is delivered via Twitter, as illustrated earlier. It’s a simple as that.
If you use Indigo, another Mac-based home automation application, the above script will work just a few modifications. Instead of passing the message text using the Description field, use an Indigo global variable.

