MythTV-TV GRAB AU
(Difference between revisions)
m |
|||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | == | + | == Cautionary Note == |
− | This wiki page | + | This wiki page contains information about the '''deprecated tv_grab_au script'''. These days it's recommended you '''use [http://svn.whuffy.com/ Shepherd]''', which you can read more about on our [[MythTV Electronic Program Guide]] page. |
+ | |||
+ | == Introduction == | ||
tv_grab_au is a perl script that gathers data from various sources on the internet and populates mythtv with this information. | tv_grab_au is a perl script that gathers data from various sources on the internet and populates mythtv with this information. | ||
− | Currently the best script has been created by LTD73 and is stored | + | Currently the best script has been created by LTD73 and is stored at http://www.whuffy.com/tv_grab_au/tv_grab_au-1.41. |
== How to install == | == How to install == | ||
Line 15: | Line 17: | ||
Download LTD's tv_grab_au script | Download LTD's tv_grab_au script | ||
− | mkdir | + | mkdir /usr/bin/tv_grab_au/ |
cd /usr/bin/tv_grab_au/ | cd /usr/bin/tv_grab_au/ | ||
− | sudo wget http://www.whuffy.com/ | + | sudo wget http://www.whuffy.com/shepherd/shepherd |
Rename tv_grab_au-1.41 to tv_grab_au | Rename tv_grab_au-1.41 to tv_grab_au | ||
Line 24: | Line 26: | ||
sudo chmod +x /usr/bin/tv_grab_au/tv_grab_au | sudo chmod +x /usr/bin/tv_grab_au/tv_grab_au | ||
− | Make directories and | + | Make directories and give permissions to write for the tv_grab_au cache.dat |
sudo mkdir -p /var/local/tv_grab_au | sudo mkdir -p /var/local/tv_grab_au | ||
− | sudo chmod 777 /var/local/tv_grab_au | + | sudo chmod 777 /var/local/tv_grab_au -Rf |
− | + | ||
== How to configure == | == How to configure == | ||
Line 79: | Line 80: | ||
You are missing some XML files, please run the following script | You are missing some XML files, please run the following script | ||
− | Ubuntu | + | Ubuntu\Debian |
− | sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl libhtml-parser-perl libxml-dom-perl | + | sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl \ |
+ | libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl \ | ||
+ | libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl \ | ||
+ | libhtml-parser-perl libxml-dom-perl libgd-gd2-perl libdigest-sha1-perl \ | ||
+ | libarchive-zip-perl libio-string-perl | ||
Other Linux OS | Other Linux OS | ||
sudo cpan Algorithm::Diff Compress::Zlib Cwd Data::Dumper Date::Manip Getopt::Long List::Compare LWP::UserAgent DateTime::Format::Strptime File::Basename File::Path HTML::Entities HTML::TokeParser HTML::TreeBuilder IO::File Storable Time::HiRes XML::DOM | sudo cpan Algorithm::Diff Compress::Zlib Cwd Data::Dumper Date::Manip Getopt::Long List::Compare LWP::UserAgent DateTime::Format::Strptime File::Basename File::Path HTML::Entities HTML::TokeParser HTML::TreeBuilder IO::File Storable Time::HiRes XML::DOM | ||
+ | |||
+ | '''"How do I use OzTivo Grabber"''' | ||
+ | |||
+ | |||
+ | Before you can use the OzTivo grabber, you must create an | ||
+ | OzTivo account here: | ||
+ | |||
+ | http://minnie.tuhs.org/twiki/bin/view/TWiki/TWikiRegistration | ||
+ | |||
+ | and select some channels here: | ||
+ | |||
+ | http://minnie.tuhs.org/tivo-bin/tvguide.pl | ||
+ | |||
+ | When you're done, enter your username and password here, to | ||
+ | enable this grabber to retrieve your guide data automatically: | ||
Line 96: | Line 116: | ||
Note that you may get the following error but this is ok as there arnt any files in the folder yet. | Note that you may get the following error but this is ok as there arnt any files in the folder yet. | ||
chmod: cannot access `/var/local/tv_grab_au/*': No such file or directory | chmod: cannot access `/var/local/tv_grab_au/*': No such file or directory | ||
+ | |||
+ | |||
+ | ==More Links== | ||
+ | * [[Audio Visual]], [[MythTV]], [[MythTV Electronic Program Guide]], [[MythTV frontend on laptop with broken or removed panel]], [[MythTV Hardware]], [[MythTV OCAU Member Setups]] |
Latest revision as of 16:41, 2 March 2010
Contents |
[edit] Cautionary Note
This wiki page contains information about the deprecated tv_grab_au script. These days it's recommended you use Shepherd, which you can read more about on our MythTV Electronic Program Guide page.
[edit] Introduction
tv_grab_au is a perl script that gathers data from various sources on the internet and populates mythtv with this information.
Currently the best script has been created by LTD73 and is stored at http://www.whuffy.com/tv_grab_au/tv_grab_au-1.41.
[edit] How to install
Ubuntu 6.10
This command will download all xmltv and all of its requirements. Note that this also downloads some extra librarys that are not yet needed but will be in future releases of tv_grab_au.
sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl libhtml-parser-perl libxml-dom-perl
Download LTD's tv_grab_au script
mkdir /usr/bin/tv_grab_au/ cd /usr/bin/tv_grab_au/ sudo wget http://www.whuffy.com/shepherd/shepherd
Rename tv_grab_au-1.41 to tv_grab_au
Give execute permissions
sudo chmod +x /usr/bin/tv_grab_au/tv_grab_au
Make directories and give permissions to write for the tv_grab_au cache.dat
sudo mkdir -p /var/local/tv_grab_au sudo chmod 777 /var/local/tv_grab_au -Rf
[edit] How to configure
run the following command to edit your tv_grab_au file
sudo gedit /usr/bin/tv_grab_au/tv_grab_au
Now that gedit is running you need to the following
* Find '$region=' and set the trailing number to your location which is listed above. * If you are in WA or SA then you will need to edit '$y7w' which is just below, comment out VIC and remove the comment from your state
Save and exit gedit.
Stop mythbackend if started
sudo /etc/init.d/mythtv-backend stop
start mythtv-setup
sudo mythtv-setup
Go to the "Channel Editor" and scan all channels
Now one by one you need to enter each channel, you can do this by clicking on the channel and then pressing 'e'.
If you do not want the channel to be available then you can remove the channel easily by removing the channel number and uncheck the 'visible' check box.
The next step before you press 'Finish' is to set the XMLTV ID for those channels that you want to keep. I have listed the default XMLTV ID's below you need to enter these in the XMLTV ID text box.
Chan name = Channel ID ABC = abcvic.free.au Seven = channelsevenmelbourne.free.au Nine = channelninemelbourne.free.au TEN = networktenmelbourne.free.au SBS = sbsmelbourne.free.au ABC2 = abc2.abc.gov.au
It may be worth checking you tv_grab_au script to verify the XMLTV ID'S
Thats it, it should be already to run now.
[edit] How to run
Now you only need to run mythfilldatabase and the script will go and do its thing
sudo mythfilldatabase
This can be automated by running the following script
sudo crontab -e -u mythtv
[edit] Common Problems and Fixes
"Can't locate XML/DOM.pm in @INC"
You are missing some XML files, please run the following script
Ubuntu\Debian
sudo apt-get install xmltv libxml-simple-perl libjavascript-perl libalgorithm-diff-perl \ libgetopt-mixed-perl libcompress-zlib-perl libdata-dumper-simple-perl \ libdate-manip-perl liblist-compare-perl libdatetime-format-strptime-perl \ libhtml-parser-perl libxml-dom-perl libgd-gd2-perl libdigest-sha1-perl \ libarchive-zip-perl libio-string-perl
Other Linux OS
sudo cpan Algorithm::Diff Compress::Zlib Cwd Data::Dumper Date::Manip Getopt::Long List::Compare LWP::UserAgent DateTime::Format::Strptime File::Basename File::Path HTML::Entities HTML::TokeParser HTML::TreeBuilder IO::File Storable Time::HiRes XML::DOM
"How do I use OzTivo Grabber"
Before you can use the OzTivo grabber, you must create an
OzTivo account here:
http://minnie.tuhs.org/twiki/bin/view/TWiki/TWikiRegistration
and select some channels here:
http://minnie.tuhs.org/tivo-bin/tvguide.pl
When you're done, enter your username and password here, to enable this grabber to retrieve your guide data automatically:
WARNING: could not write cache file /var/local/tv_grab_au/cache.dat: No such file or directory
Please fix this in order to reduce the number of queries for data!
Permissions have not been not been set correctly for either that folder or its contents. Run the following in the console
mkdir -p /var/local/tv_grab_au chmod 777 /var/local/tv_grab_au chmod 777 /var/local/tv_grab_au/*
Note that you may get the following error but this is ok as there arnt any files in the folder yet.
chmod: cannot access `/var/local/tv_grab_au/*': No such file or directory