Tatsuhiko Miyagawa's Blog

this is very good

October 02, 2006

Even in the web 2.0 world, geeks like me still tend to do lots of tasks on the UNIX shell. Recently Best Pracital released their command line tool todo.pl for their awesome task management service Hiveminder. Jesse gave me a preview release for it a couple of weeks before the public announcement and I’ve been finding it practically useful.

So I created a similar command line tool for my favorite calendar service 30boxes. There you go, 30boxes.pl. The usage of the command is quite similar to todo.pl (or the original todo.sh):

30boxes.pl list

List all events in your calendar starting from today to 3 months later

30boxes.pl –from “2 weeks ago” -to today

List all events in your calendar starting from 2 weeks ago to today

30boxes.pl –month “October 2006”

List all events in your calendar scheduled on October 2006

30boxes.pl –date tomorrow

List all events scheduled tomorrow.

30boxes.pl add meeting with Brad tomorrow 3pm

Add new event title “meeting with Brad” on 3pm tomorrow, using 30boxes One box input.

30boxes.pl del 100

Delete the event with id 100.

That’s it. Pretty simple and usable. You need some Perl modules installed from CPAN, and most of them are quite popular and easy to install.

I like to add ‘update’ command to this shell, to add the ability to change title or starting date from command line also, but looks like 30boxes events.Update API is kind of borked, or just unfriendly to use. When you call method=events.Update&summary=foo, it’ll clear out all the fields other than summary, which to me is very intuitive.

I’ll update the code to retrieve the original data and send back if there’re popular demands for it. But for now you can just use web interface to update.

Enjoy!