Google Home Module

It didn’t take me long, and I knew I wouldn’t be able to go for a few hours without writing a basic plugin for Google Home.

I always wanted to have a del.icio.us search box in a panel with my latest bookmarks, so I wrote this:

Once you’ve added it to your homepage, you can enter your delicious username, and it displays your latest links using raw JSON:

_IG_FetchContent('http://del.icio.us/feeds/json/' + prefs.getString('username') + '?raw', function (responseText) {
  posts = eval('(' + responseText + ')')
  for (var i=0, post; post = posts[i]; i++) {
     // ... display code here ...
  }
}

All I’m doing is calling IGFetchContent(), which the API documents, and then building an unordered list of my links.

A search box is displayed by just using a HTML form.

The reason I did this is that I want to extend it in the future so I can do a live search of delicious from Google Home without leaving the page. I assume this will be quite complex, although I’m hoping I can recycle scriptaculous for the most part.

Now I’ve whet my appetite, however, I’m sure I’ll be able to integrate all manner of applications into Google Home.

The delicious module

blog comments powered by Disqus