Gen2ly
February 25th, 2007, 09:47 PM
This tutorial is useful for listing your favorite channels as an applet in your menu panel.
Here's what mine looks like:
http://www.archive.org/download/ToddPartridgeOnTVonUbuntu/OnTV_Screenshot.png
Pretty simple. I like to use the terminal as it will make this a little bit faster. First we need to download xmltv which is our tv listings grabber.
sudo apt-get install xmltv
Now find the appropiate tv_grab for your location:
tv_find_grabbers
Mine was "tv_grab_na_dd"(north america). Now it has to be configured:
sudo tv_grab_na_dd --configure
Several questions will be asked.
First it will ask for your GMT skew.
Next, it will need you to register:
Free Data Direct registration required in advance.
You can get an ID at http://labs.zap2it.com
Control-clicking is in the terminal will open the link.
Register a new user. Use the Certificate Code you see in the terminal. Zap2it will ask a few questions. Subscibe and add a lineup by selecting your area code, what tv service you have... blah blah.
Now, grab the listings. Make sure you're in the home directory first:
cd ~
sudo tv_grab_na_dd --output=.listings.xml
This will save the TV listings as an invisible-file in your home directory.
The listings need to be sorted now:
tv_sort --output=.listings.xml .listings.xml
OnTV is the applet (the icon in the menu bar) that will tell us what programs there are.
sudo apt-get install ontv
right-click on menu panel and select "Add to Panel" and add OnTV to the menu bar. Immediately a dialog will pop up with the preferences. Put /home/(user)/.listings.xml (or whatever you chooose to name the xmltv file) in now.
Right-click on the OnTV icon and hit "Reload XMLTV file" now goto the Channels Tab and choose your favorite stations!
TV Listings are weekly so if putting a script in the cron.weekly directory this could automatically be updated every week.
sudo nano /etc/cron.weekly/tv_listings
Paste this text into the terminal:
#! /bin/sh
tv_grab_na_dd --output=/home/(user)/.listings.xml
tv_sort --output=/home/(user)/.listings.xml /home/(user)/.listings.xml
cntrl-x to save
Thats it!
Here's what mine looks like:
http://www.archive.org/download/ToddPartridgeOnTVonUbuntu/OnTV_Screenshot.png
Pretty simple. I like to use the terminal as it will make this a little bit faster. First we need to download xmltv which is our tv listings grabber.
sudo apt-get install xmltv
Now find the appropiate tv_grab for your location:
tv_find_grabbers
Mine was "tv_grab_na_dd"(north america). Now it has to be configured:
sudo tv_grab_na_dd --configure
Several questions will be asked.
First it will ask for your GMT skew.
Next, it will need you to register:
Free Data Direct registration required in advance.
You can get an ID at http://labs.zap2it.com
Control-clicking is in the terminal will open the link.
Register a new user. Use the Certificate Code you see in the terminal. Zap2it will ask a few questions. Subscibe and add a lineup by selecting your area code, what tv service you have... blah blah.
Now, grab the listings. Make sure you're in the home directory first:
cd ~
sudo tv_grab_na_dd --output=.listings.xml
This will save the TV listings as an invisible-file in your home directory.
The listings need to be sorted now:
tv_sort --output=.listings.xml .listings.xml
OnTV is the applet (the icon in the menu bar) that will tell us what programs there are.
sudo apt-get install ontv
right-click on menu panel and select "Add to Panel" and add OnTV to the menu bar. Immediately a dialog will pop up with the preferences. Put /home/(user)/.listings.xml (or whatever you chooose to name the xmltv file) in now.
Right-click on the OnTV icon and hit "Reload XMLTV file" now goto the Channels Tab and choose your favorite stations!
TV Listings are weekly so if putting a script in the cron.weekly directory this could automatically be updated every week.
sudo nano /etc/cron.weekly/tv_listings
Paste this text into the terminal:
#! /bin/sh
tv_grab_na_dd --output=/home/(user)/.listings.xml
tv_sort --output=/home/(user)/.listings.xml /home/(user)/.listings.xml
cntrl-x to save
Thats it!