Re: JSON/Schedules Direct, UK and Freeview / Freesat?

Simon Hobson <[email protected]> Wed, 8 Jun 2016 13:52:53 +0100
Newsgroups gmane.comp.tv.xmltv.general
Message-ID <[email protected]>
Kevin Groeneveld <[email protected]> wrote:

> ... for Freeview you can also use the lookup table if you
> know the name of your Freeview transmitter:
> 
> https://json.schedulesdirect.org/20141201/transmitters/GBR
...
> So for example, if you click on the above you can see the first record is: "Aberdare":"GBR-0001213-DEFAULT".  If you want to use that lineup you can enter "GBR-0001213-DEFAULT" (without the quotes) when the configure asks for "Lineup or Country (ISO-3166-1 alpha 3 such as USA or CAN)".

I did that, and came up with a linup code that wasn't in the list presented by postcode - one digit difference.



Ian Campbell <[email protected]> wrote:

> There is no direct mapping from the 5 digit SD stationID to the
> Freeview (or other) channel number. (For one thing there are multiple
> BBC 1's across the country). IIRC someone put a mapping in the form of
> a set of SQL commands on the Mythtv wiki, I just did it by hand though.
> 
> Once you have a lineup as others described in this thread you will get
> a full list of the channels on that lineup.

If following the wiki page at https://www.mythtv.org/wiki/Migrating_to_SchedulesDirect_in_the_UK and use the command part way down "tv_grab_sd_json --config-file ~/.xmltv/tv_grab_sd_json.conf  --output /tmp/sd.xml" then you'll have a rather large file with (at the top) a list of all the channels.
Then this command will quickly show you the channel IDs and names :
grep 'channel id=
display-name' /tmp/sd.txt
That's two lines, and tells grep to show lines containing "channel id=" or "display-name".

Quick and dirty, but it works :-)

Then for me, as I already have a sql file for setting up my channels, it was a matter of editing (a copy of) that file in one window, while looking at the list from the above in another, and the channel editor in MythTV - I had a few channels to add to my script.

I've a bit of tidying up to finish, then I need to find time when there are no recordings scheduled so I can test it.


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e