[mythtvnz] Schedules Direct trial for NZ
Robert Fisher
robert at fisher.net.nz
Tue Sep 6 07:39:03 BST 2016
See my notes at the bottom.
On 31/08/16 10:53, Rory Grant wrote:
>
> I'm not a developer, and I've got schedules direct up and running on
> my Ubuntu 16.04 system.
>
> Steps:
>
> *0. Back everything up first!*
>
> *1. Sign up for an accoun*t on www.schedulesdirect.org
> <http://www.schedulesdirect.org> and follow the instructions linked to
> above to get your 90 day voucher.
>
> *2. Install xmltv 0.5.68-1 from Debian Sid* from here
> https://packages.debian.org/sid/xmltv
> <https://packages.debian.org/sid/xmltv> . There are 4 .deb packages
> you need: xmltv, libxmltv-perl, xmltv-gui, xmltv-util.
>
> Download these into a new folder, open a terminal, cd to that
> folder and install them with "dpkg -i *.deb"
>
> *3. Verify that the Schedules direct JSON module is now a recognised
> grabber:*
>
> tv_find_grabbers|grep json
>
>
> should return:
>
> /usr/bin/tv_grab_sd_json|Schedules Direct JSON API
>
>
> *4. configure your Schedules direct grabber*
>
> tv_grab_sd_json --configure
>
> Follow the on screen prompts. I chose to use a "channels" config,
> rather than a "lineup" config because I wanted a more fine-grained
> control over my listings. I don't know whether this is worthwhile or
> not. YMMV.
>
> This creates a .conf file in your ~/.xmltv folder
>
> For convenience, I then created a symbolic link to this file in my
> .mythtv folder
>
> ln -s ~/.xmltv/tv_grab_sd_json.conf ~/.mythtv/SchedulesDirect.xmltv
>
> The name of the link should match the name of the Video Source that
> you set up in step 5 below.
>
> In the end, I created two links in .mythtv and two Video Sources - one
> for my DVB-T feed, and one for my DVB-S feed. This allows for
> different channel configs between satellite and terrestrial.
>
>
> *5. Add new video source(s) in mythtv-setup*
>
> Set the "listings grabber" field to "Schedules Direct JSON API (xmltv)"
>
> You also need a unique video source name that matches the symbolic
> link name that you created in step 4 above. Do not click configure.
> Do not check the "use EIT" box.
>
>
> *6. Input connections *
>
> Connect your existing capture cards to the video sources that you just
> created. You should not need to scan for new channels or do any other
> configuration here. Do not fetch channels from listing source.
>
>
> *7. Channel editor.*
>
> I managed to delete all of my channels and had to do a full channel
> scan on both my satellite tuners and my HDHomeRun (sigh).
>
> It would be better to edit your existing channels to include the
> Schedules Direct channel IDs. Again, there may be a better way of
> doing it, but I edited each channel one by one.
>
> You need to enter the Schedules Direct Channel ID in the "XMLTV ID:"
> field.
>
> You can get this info by running
>
> tv_grab_sd_json | grep -A1 '<channel id="' > output.txt
>
> Or, you can use the handy table that I've compiled already:
>
> *XMLTV ID* *Display Name* *#*
> INZ406723.json.schedulesdirect.org
> <http://INZ406723.json.schedulesdirect.org> TV ONE 001
> INZ406725.json.schedulesdirect.org
> <http://INZ406725.json.schedulesdirect.org> TV2 002
> INZ406726.json.schedulesdirect.org
> <http://INZ406726.json.schedulesdirect.org> TV3 003
> INZ431675.json.schedulesdirect.org
> <http://INZ431675.json.schedulesdirect.org> Bravo 004
> INZ406728.json.schedulesdirect.org
> <http://INZ406728.json.schedulesdirect.org> Maori Television 005
> INZ430333.json.schedulesdirect.org
> <http://INZ430333.json.schedulesdirect.org> TVONE +1 006
> INZ431132.json.schedulesdirect.org
> <http://INZ431132.json.schedulesdirect.org> TV2 +1 007
> INZ406735.json.schedulesdirect.org
> <http://INZ406735.json.schedulesdirect.org> TV3 PLUS 1 008
> INZ431676.json.schedulesdirect.org
> <http://INZ431676.json.schedulesdirect.org> Bravo Plus 1 009
> INZ410759.json.schedulesdirect.org
> <http://INZ410759.json.schedulesdirect.org> Prime NZ 010
> INZ431295.json.schedulesdirect.org
> <http://INZ431295.json.schedulesdirect.org> The Edge TV 011
> INZ429922.json.schedulesdirect.org
> <http://INZ429922.json.schedulesdirect.org> Choice TV 012
> INZ431540.json.schedulesdirect.org
> <http://INZ431540.json.schedulesdirect.org> DUKE 013
> INZ431179.json.schedulesdirect.org
> <http://INZ431179.json.schedulesdirect.org> Te Reo 015
> INZ431268.json.schedulesdirect.org
> <http://INZ431268.json.schedulesdirect.org> Al Jazeera NZ 016
> INZ431677.json.schedulesdirect.org
> <http://INZ431677.json.schedulesdirect.org> HGTV 017
> INZ430670.json.schedulesdirect.org
> <http://INZ430670.json.schedulesdirect.org> Firstlight 026
> INZ431608.json.schedulesdirect.org
> <http://INZ431608.json.schedulesdirect.org> Hope Channel 027
> INZ406728.json.schedulesdirect.org
> <http://INZ406728.json.schedulesdirect.org> Parliament TV 031
> INZ431075.json.schedulesdirect.org
> <http://INZ431075.json.schedulesdirect.org> Canterbury Television 040
> INZ406795.json.schedulesdirect.org
> <http://INZ406795.json.schedulesdirect.org> Radio NZ National 050
> INZ406796.json.schedulesdirect.org
> <http://INZ406796.json.schedulesdirect.org> Radio NZ Concert 051
> INZ406797.json.schedulesdirect.org
> <http://INZ406797.json.schedulesdirect.org> Base FM 071
>
>
>
> *8. Fill your boots / database*
>
> close mythtv-setup, restart your backend cross your appendages and run:
>
> mythfilldatabase --dd-grab-all
>
>
> All the usual disclaimers apply. I am not an expert, this is simply
> what has worked for me.
>
> The Schedules Direct data does seem to be of a higher quality, and my
> recording rules still seem to work. There is no guide data for Shine
> TV, nor for some of the regional channels such as Dunedin TV.
>
> Anecdotally yours,
>
> Rory
>
My notes for step 4 are a bit different than Rory's:- YMMV
4. configure your Schedules direct grabber
tv_grab_sd_json --configure
Follow the on screen prompts. I chose to use a "channels" config,
rather than a "lineup" config because I wanted a more fine-grained
control over my listings. I don't know whether this is worthwhile or
not. YMMV. Our country code is NZL
This creates a .conf file in your ~/.xmltv folder
I then copied as follows:-
sudo cp ~/.xmltv/tv_grab_sd_json.conf~/.mythtv/SchedulesDirect.xmltv
and
sudo cp ~/.xmltv/tv_grab_sd_json.conf
/home/mythtv/.mythtv/SchedulesDirect.xmltv
then edit the cache line in /home/mythtv/.mythtv/SchedulesDirect.xmltv
to
cache=/home/mythtv/.xmltv/tv_grab_sd_json.cache
If the cache line is not edited mythfilldatabase, when run with user
mythtv will give error.....
FAILED: XMLTV grabber returned error code 13
The name of the xmltv file should match the name of the Video Source
that you set up in step 5 below. (e.g. SchedulesDirect.xmltv)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ourshack.com/pipermail/mythtvnz/attachments/20160906/203fb7df/attachment.html>
More information about the mythtvnz
mailing list