This is as days pass by, by Stuart Langridge

And this is Free SMSes through Google Calendar, written , and concerning Python, Web, LazyWeb, Sundry Hacks, and Software

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.

Comments

Johan

... then why on earth would you blog about it? Just notify Google directly if that was the point.

Ciaran

@Johan: Because it's interesting?

sil

Johan: it's an interesting hack, I thought. Nice to see how easy it was to do.

Anonymous Coward

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.

Anonymous Coward

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.

stefan

so don't post it ! man

sil

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.

This website belongs to Stuart Langridge. Contact details are available. Don't eat yellow snow. Valid HTML5, at least in theory, except for the bits that aren't because I'm that futuristic that I'm ahead of the spec, oh yes. HTML5 help from Bruce Lawson, among others. Fonts from the superb FontSquirrel. End.