November 10, 2009

Integrating Lighthouse API with Fluid

We use Lighthouse at my company to track bugs and milestones.  I used Fluid to create a Site Specific Browser (SSB) so I could have my ticket dashboard in front of me all the time, but separate from my normal browsing activity.

If you’re not familiar with either, here are some links to point you in the right direction:

http://lighthouseapp.com/

http://fluidapp.com/

I use Fluid for Google Reader, and one thing I really like is the application badge that shows up to tell me when I have unread items.  I wanted to apply that concept to Lighthouse to see how many open tickets I have assigned to me.

First, I created the SSB by opening Fluid and filling in my details.  I used the sexy icon found here.

Next, I opened the Lighthouse app I just created, and selected “New Userscript” in the scripts menu, which is the small scroll icon that shows up in the menubar.

I’ve posted my script over here at userscripts.org. Copy, customize, and paste the source code into your new userscript. Then just save it, make sure it’s enabled under “Manage Userscripts”, and you should be good to go.

You’ll need to have an API key enabled in your Lighthouse account, which is located on your user settings page. I created a read-only key since I’m only retrieving open ticket info.

Now I have a nice badge on my app that updates itself every 10 minutes (customizable):

I’ll be glad to help out if you have any problems or questions; just drop me a line on Twitter - @adamjt.

/09:28 PM