Right, first of all: don’t do this.
Drew commented on Twitter that it ought to be possible to mash up Twitter with Google Calendar to get SMS alerts for Twitter direct messages, because Google will send you SMS reminders for an event in your calendar. (Twitter stopped doing this a while ago, because sending SMSes costs money in the UK and they couldn’t afford it. Google, being a bit better capitalised, can afford it, thus far at least.) So, the idea is that you watch for a direct message in Twitter, then you create a Google calendar event for six minutes from now with the text of the message, and set an SMS reminder on that calendar event for five minutes from now. Then wait one minute, and you get an SMS with the text of the Twitter message, and you didn’t have to pay for it.
So, send_sms_via_gcal does the latter end of that. Python, requires the Python GData API.
It’s not very useful, though. You get an SMS message which has lots of Google calendar stuff in it and so on, and it truncates the actual message you wanted to the first 57 characters. So not all that helpful. It litters your calendar with reminder messages that you have to go and clean up manually (which could be cleaned up automatically without too much difficulty, but you’d have to write a separate thing which fired once an hour or so and cleaned up old messages.)
I suspect the Google calendar people will also take a shockingly dim view of their SMS reminder stuff being so flagrantly misused, too, which is why I said to not do it. SMS reminders are pretty nice; don’t make Google turn them off.
… then why on earth would you blog about it? Just notify Google directly if that was the point.
Posted by Johan on October 15th, 2008.
@Johan: Because it’s interesting?
Posted by Ciaran on October 15th, 2008.
Johan: it’s an interesting hack, I thought. Nice to see how easy it was to do.
Posted by sil on October 15th, 2008.
Hurrah for giving it a go. I was envisaging having a dedicated calendar for the purpose, so as to avoid the cruft issue – but matters not if the message doesn’t really get through.
At the very least I suppose it’s a notification that you’ve at least /had/ a message, which you could then go online to investigate.
Posted by Anonymous on October 15th, 2008.
P.S. I’ve absolutely no bloody idea how to use OpenID with your comment form. If the Website field is OpenID enabled, what’s the “or user your OpenID” field for?
Drew.
Posted by Anonymous on October 15th, 2008.
so don’t post it ! man
Posted by stefan on October 15th, 2008.
Drew: yeah, I know. The OpenID thing is screwed. It’s being fixed, slowly, I promise.
You can’t have a dedicated calendar, sadly: the API only allows you to add reminders to events in your default calendar. Why this restriction is in place baffles me.
Posted by sil on October 16th, 2008.