<div class="gmail_quote">On Sat, Jul 10, 2010 at 9:56 AM, tim Lockyer <span dir="ltr"><<a href="mailto:drtimlockyer@gmail.com">drtimlockyer@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<p style="margin-bottom: 0cm;">Thanks a lot for all your help. I am
making good progress. Have two more questions. I know how to use
crontab but do not understand the <font color="#000000"><font face="Verdana, Arial, Helvetica"><font size="2"><a href="http://your.epg.source.gz/" target="_blank">http://your.epg.source.gz</a>
</font></font></font>
</p>
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;"><font color="#000000"><font face="Verdana, Arial, Helvetica"><font size="2">First:</font></font></font></p><div class="im">
<p style="margin-bottom: 0cm;">
</p>
<p style="margin-bottom: 0cm;"><font color="#000000"><font face="Verdana, Arial, Helvetica"><font size="2">After
you have it working you can add a crontab entry like so: <br><br>wget
<a href="http://your.epg.source.gz/" target="_blank">http://your.epg.source.gz</a>
-O - |gunzip|mythfilldatabase -file 1</font></font></font></p></div></blockquote><div><br>In your case you wouldn't do that, you'd call epgsnoop to get the data rather than wget. Probably best to write a script that does all the grabbing and loading of the data and call that either from crontab or have myth itself call it periodically (it can be setup in in mythtv-setup IIRC). My script looks like this:<br>
<br>#!/bin/sh<br>export QTDIR=/usr/lib/qt3<br>rm -f /home/mythtv/listings-*.xml<br>rm -f /home/mythtv/listings_freeview-*.xml<br>dvbstream -s 22500 -o:/dev/null -f 1371 -p h -n 60 8192 &<br>/home/mythtv/tv_grab_dvb -s --skynz-ratings --category-map=/home/mythtv/categories_skynz -o 12 > /home/mythtv/listings-$$.xml<br>
mythfilldatabase --update --file 1 /home/mythtv/listings-$$.xml<br>mythfilldatabase --update --file 2 /home/mythtv/listings-$$.xml<br>killall dvbstream<br>sleep 5<br>dvbstream -s 22500 -o:/dev/null -f 1183 -p h -n 60 8192 &<br>
/home/mythtv/tv_grab_dvb -s --category-map=/home/mythtv/categories_freeview -o 12 > /home/mythtv/listings_freeview-$$.xml<br>mythfilldatabase --update --file 2 /home/mythtv/listings_freeview-$$.xml<br>killall dvbstream<br>
<br>dvbstream tunes the DVB-S adapter and starts streaming data from it to /dev/null. tv_grab_dvb monitors the packets from the adapter and extracts the EIT data to a file. The --update argument to mythtfilldatabase stops it from messing with the channel setup (I prefer to do that stuff manually). I'm not using epgsnoop - you'd want to replace the tv_grab_dvb line with the appropriate call to epgsnoop (and possibly that would also take care of the tuning, I'm not sure). What I do is grab the Sky listings and apply them to both Sky and Freeview sources as this ensures I have identical data for the common channels. I then grab the Freeview listings and apply those to get data for the Freeview-only channels.<br>
<br>If you search the archives you might find a similar script written for epgsnoop.<br><br>Cheers,<br>Steve<br></div></div>