 | aroussos says:Ambient Devices + RTM
In my continuing quest to have the best task/life integration, I took a big step and ordered an Ambient Devices weather beacon in the hopes that I could link its color status to the current status of my task list. I'm happy to report that after a couple hours of code hacking, I am now able to glance at the color of my weather beacon and ascertain the the urgency and content of my task list. The following documents how I did it.
Ingredients:
1x Ambient Devices Weather Beacon
1x RTM Account
For starters, I needed a format that I could use to get sanitized, semantic information out of RTM. Naturally, the best choice here was RSS and RTM is amazing at serving it up. To get the content I wanted, I created a smart list that would get all the items due today or overdue. The syntax for this search is "due:today or dueBefore:today". Simple. Now, I just have to grab the RSS in a custom manner and sort through it in an automated fashion.
This is where the programming comes in. I have created a custom script which will grab the aforementioned RSS feed and then filter out only the number of tasks in the list and the priorities of these tasks. Once I have this, I needed to decide on a weighting system for the priorities. I decided that tasks without a priority were weighted at 0.5, low priority tasks at 1, medium priority tasks at 2 and high priority tasks at 3.
Once this is done, I just need to send the color and animation data to the weather orb. Luckily Ambient has a decent seat of docs that will help you do this. All in all its just a REST based web service that you make calls to.
So there you have it, I now have a device in my bedroom and office which will glow depending on the urgency and contents of my tasks in RTM.
:) Posted at 4:10pm on May 9, 2009 |