[mythtvnz] mythtv / Mythtvnz digest Re: tv_grab_nz-py set up

Paulgir paulgir at gmail.com
Mon Jan 23 21:03:04 GMT 2012


______________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
> --------------------------------------------------------------------------------
> Subject: Re: tv_grab_nz-py set up
> Posted on: Sun Jan 22 13:56:50 2012
> URL: http://gossamer-threads.com/lists/mythtv/Mythtvnz/501596
>
> On 23 January 2012 09:42, Paulgir <paulgir at gmail.com> wrote:
>>
>>
>> >> mythtvnz mailing list
>> >> mythtvnz at lists.linuxnut.co.nz
>> >> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> >> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>> >
>> > There's a recent thread with some infomation you might find useful,
>> > including a simple bash script I wrote to pull the epg data and run
>> > mythfilldatabase automagically (once you cron it).
>> >
>> >  
>> http://www.gossamer-threads.com/lists/mythtv/mythtvnz/494548?page=unread#unread\
>> >
>> > I personally couldn't get the tv_grab_nz-py script to work for me, and
>> > after a few frustrating days took matters into my own hands.
>> >
>> >  
>> http://www.gossamer-threads.com/lists/mythtv/mythtvnz/494548?page=unread#unread
>> >
>> >
>> Do you put the script in any particular location?
>>
>> _______________________________________________
>> mythtvnz mailing list
>> mythtvnz at lists.linuxnut.co.nz
>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>
> It needs to go into a distribution-specific location if you want cron
> to run it (check your distro's documentation with respect to cron
> jobs). But no, otherwise it can be run from anywhere.
>
> You can check the script is working by running it from a terminal e.g.
> "./updateEPG.sh". You should see it download the EPG data and run
> mythfilldatabase. Then check to see it has worked by checking your
> myth Programme Guide.
>
> Sorry, I can't recall the exact details of how I set mine up as a cron
> job at 3am (I run Arch Linux), but it's pretty straighforward.
>
> Good luck!
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
> --------------------------------------------------------------------------------
> Subject: Re: tv_grab_nz-py set up
> Posted on: Sun Jan 22 14:33:44 2012
> URL: http://gossamer-threads.com/lists/mythtv/Mythtvnz/501629
>
> On Mon, 23 Jan 2012 09:42:24 +1300, Paulgir <paulgir at gmail.com> wrote:
>
>>
>>>> mythtvnz mailing list
>>>> mythtvnz at lists.linuxnut.co.nz
>>>> http://lists.ourshack.com/mailman/listinfo/mythtvnz
>>>> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
>>>
>>> There's a recent thread with some infomation you might find useful,
>>> including a simple bash script I wrote to pull the epg data and run
>>> mythfilldatabase automagically (once you cron it).
>>>
>>> http://www.gossamer-threads.com/lists/mythtv/mythtvnz/494548?page=unread#unread\
>>>
>>> I personally couldn't get the tv_grab_nz-py script to work for me, and
>>> after a few frustrating days took matters into my own hands.
>>>
>>> http://www.gossamer-threads.com/lists/mythtv/mythtvnz/494548?page=unread#unread
>>>
>>>
>> Do you put the script in any particular location?
>
> I put the script in the Home directory and executed it manually.
> Didn't see any effect on the schedule.
>
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/
> --------------------------------------------------------------------------------
> Subject: Re: tv_grab_nz-py set up
> Posted on: Sun Jan 22 15:58:52 2012
> URL: http://gossamer-threads.com/lists/mythtv/Mythtvnz/501630
>
>> I put the script in the Home directory and executed it manually.
>> Didn't see any effect on the schedule.
> I did the same.
>
> TO be sure this is the script I used...
>
>
> STARTS
> #! /bin/bash
> wget http://nzepg.org/freeview.xml.gz
> gunzip freeview.xml.gz
> mythfilldatabase --file 1 freeview.xml --update
> rm freeview.xml
> exit
> STOPS
>
K some progress.
I followed these instructions from Mike Brady:


These are the notes that I made when I setup my system last year on Centos  
6. Your mileage may vary.

1) Download tv_grab_nz-py from  http://nice.net.nz/tv_grab_nz-py/

2) Copy tv_grab_nz-py to /usr/bin. Make sure that it is executable.

3) Configure it. Note that the configuration file name must match that  
name of the video source
  configured in mythtv-setup for the mythbackend/mythfilldatabase to use  
this grabber.
tv_grab_nz-py --configure --config-file ~/.mythtv/<video sources  
name>.xmltv

4) To see if the xmltv side of things works run
tv_find_grabbers

This should return a list of all the installed grabbers, which should just  
be tv_grab_nz-py.

5) To see if the myth side of things works run
mythfilldatabase
Pay close attention to the output of this. If it looks like it worked, the  
MythWeb status page should also show a successful run.

6) On the master backend run mythsetup and
a) In Video Sources set "New Zealand (py)" as the grabber for your Video  
Source.
b) In General, on the Mythfilldatabase page (its the last page) enable  
"Automatically run mythfilldatabase".
  Configure time, frequency, etc to suite. Now Myth should use  
tv_grab_nz-py to update EPG periodically.
  The MythWeb status page shows when it was last run and what the results  
were.

Hope that this is useful.

Regards

Mike

I have now got the  tv_grab_nz-py data appearing in the scheduler.
Then I did something stupid.
In channel editor I saw that there were two entries for each channel.The  
new ones were assigned to
"Freeview" the name I gave the new source,these have good xmltv ids, and  
the earlier ones that were marked "unassigned"
I decided to delete all the unassigned ones.
Now when I try to watch tv via the myth front end I get the channel  
logo/signal status message with a
"channel change failed" message .



More information about the mythtvnz mailing list