Friday, December 24, 2010

Checking-In at GetGlue with MythTV



GetGlue is a leading social network for entertainment. Fans use GetGlue apps to check-in while consuming entertainment to share with friends. I wrote a Python script that enables MythTV to automatically check-in to GetGlue with the recording you are watching.

GetGlue provides an application programming interface (API) that uses OAuth for authorization.

NOTE/RANT: I don't think I'm supposed to share my oAuth developer keys. I don't know how the architects of oAuth expected us to deliver scripts. I guess they assume everything would be web based. Until someone tells me different I'm not going to release my oAuth keys. So, I guess you'll need to apply for developer keys and plug them in to my python script.
To obtain a GetGlue developer key, please e-mail api@getglue.com with your name, company name, app name, and OAuth callback (not needed for this), as well as a short description of the application.

Below are the high level steps to get this working and its accompanying video tutorial. These steps were performed on an Ubuntu 10.04 MythTV frontend PC.



  • Download my python script.
  • Apply and receive developer keys from emailing a request to api@getglue.com. See rant above.
  • Copy and paste your oAuth developer keys in my script variables CONSUMER_KEY and CONSUMER_SECRET.
  • Install Python Setup tools - sudo apt-get install python-setuptools
  • Download and install OAuth library. - sudo python setup.py
  • Authorize the app one time in a terminal - python MythTVGetGlueCheckin4.py testtest
  • Copy the OAuth token file in to the mythtv user's directory.  sudo cp ~/.MythTVGetGlueCheckin /home/mythtv/.
  • Change owner to mythtv user. sudo chown mythtv /home/mythtv/.MythTVGetGlueCheckin
  • Change group to mythtv user. sudo chgrp mythtv /home/mythtv/.MythTVGetGlueCheckin
  • Set MythTV system event - Playback started
  • Watch some TV recordings and MythTV will automatically check-in to GetGlue. See my GetGlue profile for an example.





    http://www.youtube.com/watch?v=z_vWfWa7Ls0
  • Saturday, December 18, 2010

    SunRay vs Chrome OS Notebook

    I'm just thinking out loud. Does a Chrome OS like device have a place in the enterprise?

    I received a free Google Chrome OS Notebook December 14, 2010. I like it. It has provoked a comparison of Chrome OS like devices to my employer's SunRay thin client deployment that I helped put together. The infrastructure behind our SunRay deployment is pretty heavy. There are Solaris SunRay server blades, Windows terminal server blades, Active Directory blades, file server blades, storage area network, SunRay thin clients, keyboards, mice, etc... Could we replaced all that with Chrome OS Notebook like devices? We already use Google Apps for email, instant messaging, documents, spreadsheets, and wiki. We have an evolving Intranet. There are several employees working exclusively in the browser now. If we continue to move everything to our Intranet and find a remote desktop solution for the remaining applications, we are there. Our SunRay environment shines in security, mobility, and zero client maintenance. Flash and video playback on the SunRay is painful. A Chrome OS device competes with the SunRay's security and has zero client maintenance. SunRay has a slight edge in the session mobility category. We can take our SunRay card and move to any station picking up right were we left off. A Chrome OS device beats the SunRay on video playback.

    What do you think the possibilities are of a Chrome OS like device working its way in to your enterprise?