[mythtvnz] Sky setup...

Stephen Worthington stephen_agent at jsw.gen.nz
Mon Jan 11 07:55:35 GMT 2010


On Mon, 11 Jan 2010 14:26:34 +1300, you wrote:

>Hi Everyone,
>
>Does anyone have any info on setting up Sky TV with Myth in NZ?
>Specifically how to set up channel changing of the decoder (via
>IRBlaster or Firewire). I'm not having much luck googling this!
>
>Cheers,
>
>Rob Connolly

I have it working.  I am using Mythbuntu 9.10 so if you are using
anything else you will need to adjust things.  I have two Video
Sources set up, one called FreeviewNZ and one called SkyNZ.  That
keeps the configuration separate.  I have a Hauppauge TD-500 dual PCI
DVB-T tuner and an AverMedia AverTV DVB-T Volar USB tuner for
Freeview, and I am using an S-Video input on my old Hauppauge PVR-500
hardware MPEG-2 encoder card for Sky.

There are a number of scripts and config files you need to get this
going, which I will put in this post.  Make sure you save these files
with the correct Unix LF only line format - a CR character anywhere
makes all sorts of silly things happen, and the symptoms are very
difficult to associate with the cause!  And if you are cut and
pasting, watch for the word wraps - turn off word wrap in your
newsreader software before doing it.

First you need to get the EPG setup in place.  With two Video Sources,
I have two versions of tv_grab_nz-py in /usr/local/bin, called
tv_grab_nz_FreeviewHD-py and tv_grab_nz_SkyNZ-py.  They differ only in
downloading a different EPG file.  I am using all.xml.gz for Sky.  I
found that using tv_grab_nz-py to set up a video source does not work
properly for me on 9.10.  It used to work on 8.04.  Now, the script
fails to exit for some reason, but it seems to have done what it is
supposed to before then, so I just go to a command prompt, wait until
it has had enough time to execute, and then kill it.  It then exits
with a 0 return code, which makes MythTV happy.  Instead of going
through all the initial selection of channels, I just put an already
configured SkyNZ.xmltv in my /home/stephen/.mythtv directory before
running tv_grab_nz_SkyNZ-py.  Here is what I currently have:

=============================================================
channel!maori-tv.freeviewnz.tv
channel!georgefm.freeviewnz.tv
channel!rnz-concert.freeviewnz.tv
channel!stratos.freeviewnz.tv
channel!tv3.freeviewnz.tv
channel!c4.freeviewnz.tv
channel!tvnz7.freeviewnz.tv
channel!parliament.freeviewnz.tv
channel!basefm.freeviewnz.tv
channel!tv3-plus1.freeviewnz.tv
channel!prime.freeviewnz.tv
channel!rnz-national.freeviewnz.tv
channel!tvnz6.freeviewnz.tv
channel!tv2.freeviewnz.tv
channel!tv1.freeviewnz.tv
channel=ktv1.sky.co.nz
channel=ktv2.sky.co.nz
channel=fresh.sky.co.nz
channel=spice-excess.sky.co.nz
channel=box-office214.sky.co.nz
channel=playboy.sky.co.nz
channel=box-office212.sky.co.nz
channel=box-office213.sky.co.nz
channel=box-office210.sky.co.nz
channel=box-office211.sky.co.nz
channel=cnbc.sky.co.nz
channel!star-plus-hindi.sky.co.nz
channel=cctv9.sky.co.nz
channel=shine.sky.co.nz
channel=box-office209.sky.co.nz
channel=box-office208.sky.co.nz
channel=box-office201.sky.co.nz
channel=box-office.sky.co.nz
channel=box-office203.sky.co.nz
channel=box-office202.sky.co.nz
channel=box-office205.sky.co.nz
channel=box-office204.sky.co.nz
channel=box-office207.sky.co.nz
channel=box-office206.sky.co.nz
channel=ctv7.sky.co.nz
channel=ctv6.sky.co.nz
channel=ctv5.sky.co.nz
channel=ctv4.sky.co.nz
channel=ctv3.sky.co.nz
channel=ctv2.sky.co.nz
channel=ctv1.sky.co.nz
channel=jtv.sky.co.nz
channel=nz-chart.music.sky.co.nz
channel=pop.music.sky.co.nz
channel=smooth.music.sky.co.nz
channel=grooves.music.sky.co.nz
channel=jazz.music.sky.co.nz
channel=house.music.sky.co.nz
channel=new-supremo.sky.co.nz
channel=real-good-life.sky.co.nz
channel=stratos.sky.co.nz
channel!parliament.sky.co.nz
channel!prime.sky.co.nz
channel=j2.sky.co.nz
channel=animal-plant.sky.co.nz
channel=cnn.sky.co.nz
channel=history-channel.sky.co.nz
channel=sky-news.sky.co.nz
channel=espn.sky.co.nz
channel=trackside.sky.co.nz
channel=nat-geographic.sky.co.nz
channel=discovery.sky.co.nz
channel=special.music.sky.co.nz
channel=blues.music.sky.co.nz
channel=kids.music.sky.co.nz
channel=classical.music.sky.co.nz
channel=sport2.sky.co.nz
channel=sport1.sky.co.nz
channel=juice.sky.co.nz
channel=cartoon-network.sky.co.nz
channel!rugby.sky.co.nz
channel=mgm.sky.co.nz
channel=uktv.sky.co.nz
channel=movies1.sky.co.nz
channel=sky1.sky.co.nz
channel=rock.music.sky.co.nz
channel=country.music.sky.co.nz
channel=mtv.sky.co.nz
channel!tv2.sky.co.nz
channel!tv3.sky.co.nz
channel!tv1.sky.co.nz
channel!c4.sky.co.nz
channel=fifties-sixties.music.sky.co.nz
channel=party.music.sky.co.nz
channel!maori-tv.sky.co.nz
channel=nickelodeon.sky.co.nz
channel=disney-channel.sky.co.nz
channel=bbc-world.sky.co.nz
channel=e.sky.co.nz
channel=rialto.sky.co.nz
channel=movies2.sky.co.nz
channel=living-channel.sky.co.nz
channel!arts-channel.sky.co.nz
channel=cuetv.sky.co.nz
channel=calvary.radio.sky.co.nz
channel=tahu-fm.radio.sky.co.nz
channel=concert-fm.radio.sky.co.nz
channel=kiwi.music.sky.co.nz
channel=national.radio.sky.co.nz
channel=food-tv.sky.co.nz
channel=movie-greats.sky.co.nz
channel=sport-highlights.sky.co.nz
channel=fox-news.sky.co.nz
channel!playin-tv.sky.co.nz
channel=documentary.sky.co.nz
channel=mindgames.sky.co.nz
channel=weather-channel.sky.co.nz
channel=comedy-central.sky.co.nz
channel=vibe.sky.co.nz
channel=playhouse.sky.co.nz
channel=tcm.sky.co.nz
channel=crime-investigation.sky.co.nz
channel=sport3.sky.co.nz
=============================================================

You need to use the change-channel-lirc.pl script to run the
IRBlaster, and to set up the channel numbering so that it works.  The
script name is set up in MythBackend's Input Connections setup first
page "External Channel Change Command".  What I did was to add 1000 to
the Sky channel numbers, so that they would not clash with the
Freeview ones, and then used a modified version of
change-channel-lirc.pl that ignores the 1000 digit.  I had to use some
command line SQL to adjust things to get them how I wanted them.  I
have the same channel numbers in the "channum" and "freqid" fields in
the "channel" table.  The "channum" one is what you use to change the
channel using the remote, and the "freqid" one is what is sent to the
channel change script for the IRBlaster.  Here is the SQL script that
I used to set this up (channum.sh) (you probably need to be logged in
as root to run it):

=============================================================
#!/bin/bash
# Set the channel numbers for MythTV channels.
source /etc/mythtv/mysql.txt
mysql -u $DBUserName -p$DBPassword -h $DBHostName $DBName << EOF
/*
update channel set channum =    1 where xmltvid = "tv1.freeviewnz.tv";
update channel set channum =    2 where xmltvid = "tv2.freeviewnz.tv";
update channel set channum =    3 where xmltvid = "tv3.freeviewnz.tv";
update channel set channum =    4 where xmltvid = "c4.freeviewnz.tv";
update channel set channum =    5 where xmltvid =
"prime.freeviewnz.tv";
update channel set channum =    6 where xmltvid =
"tvnz6.freeviewnz.tv";
update channel set channum =    7 where xmltvid =
"tvnz7.freeviewnz.tv";
update channel set channum =    8 where xmltvid =
"maori-tv.freeviewnz.tv";
update channel set channum =    9 where xmltvid =
"parliament.freeviewnz.tv";
update channel set channum =   13 where xmltvid =
"tv3-plus1.freeviewnz.tv";
update channel set channum =  501 where xmltvid =
"rnz-national.freeviewnz.tv";
update channel set channum =  502 where xmltvid =
"rnz-concert.freeviewnz.tv";
update channel set channum =  503 where xmltvid =
"basefm.freeviewnz.tv";
*/
update channel set channum = 1001, freqid=channum where xmltvid =
"tv1.sky.co.nz";
update channel set channum = 1002, freqid=channum where xmltvid =
"tv2.sky.co.nz";
update channel set channum = 1003, freqid=channum where xmltvid =
"tv3.sky.co.nz";
update channel set channum = 1004, freqid=channum where xmltvid =
"prime.sky.co.nz";
update channel set channum = 1005, freqid=channum where xmltvid =
"sky1.sky.co.nz";
update channel set channum = 1006, freqid=channum where xmltvid =
"uktv.sky.co.nz";
update channel set channum = 1007, freqid=channum where xmltvid =
"vibe.sky.co.nz";
update channel set channum = 1008, freqid=channum where xmltvid =
"living-channel.sky.co.nz";
update channel set channum = 1009, freqid=channum where xmltvid =
"food-tv.sky.co.nz";
update channel set channum = 1010, freqid=channum where xmltvid =
"comedy-central.sky.co.nz";
update channel set channum = 1011, freqid=channum where xmltvid =
"e.sky.co.nz";
update channel set channum = 1012, freqid=channum where xmltvid =
"c4.sky.co.nz";
update channel set channum = 1014, freqid=channum where xmltvid =
"mtv.sky.co.nz";
update channel set channum = 1019, freqid=channum where xmltvid =
"maori-tv.sky.co.nz";
update channel set channum = 1020, freqid=channum where xmltvid =
"movies1.sky.co.nz";
update channel set channum = 1021, freqid=channum where xmltvid =
"movies2.sky.co.nz";
update channel set channum = 1022, freqid=channum where xmltvid =
"movie-greats.sky.co.nz";
update channel set channum = 1023, freqid=channum where xmltvid =
"mgm.sky.co.nz";
update channel set channum = 1024, freqid=channum where xmltvid =
"tcm.sky.co.nz";
update channel set channum = 1025, freqid=channum where xmltvid =
"rialto.sky.co.nz";
update channel set channum = 1030, freqid=channum where xmltvid =
"sport1.sky.co.nz";
update channel set channum = 1031, freqid=channum where xmltvid =
"sport2.sky.co.nz";
update channel set channum = 1032, freqid=channum where xmltvid =
"sport3.sky.co.nz";
update channel set channum = 1033, freqid=channum where xmltvid =
"sport-highlights.sky.co.nz";
update channel set channum = 1034, freqid=channum where xmltvid =
"espn.sky.co.nz";
update channel set channum = 1035, freqid=channum where xmltvid =
"trackside.sky.co.nz";
update channel set channum = 1040, freqid=channum where xmltvid =
"disney-channel.sky.co.nz";
update channel set channum = 1041, freqid=channum where xmltvid =
"nickelodeon.sky.co.nz";
update channel set channum = 1042, freqid=channum where xmltvid =
"cartoon-network.sky.co.nz";
update channel set channum = 1045, freqid=channum where xmltvid =
"playhouse.sky.co.nz";
update channel set channum = 1051, freqid=channum where xmltvid =
"mindgames.sky.co.nz";
update channel set channum = 1062, freqid=channum where xmltvid =
"juice.sky.co.nz";
update channel set channum = 1063, freqid=channum where xmltvid =
"j2.sky.co.nz";
update channel set channum = 1070, freqid=channum where xmltvid =
"discovery.sky.co.nz";
update channel set channum = 1071, freqid=channum where xmltvid =
"crime-investigation.sky.co.nz";
update channel set channum = 1072, freqid=channum where xmltvid =
"nat-geographic.sky.co.nz";
update channel set channum = 1073, freqid=channum where xmltvid =
"history-channel.sky.co.nz";
update channel set channum = 1074, freqid=channum where xmltvid =
"documentary.sky.co.nz";
update channel set channum = 1075, freqid=channum where xmltvid =
"animal-plant.sky.co.nz";
update channel set channum = 1089, freqid=channum where xmltvid =
"stratos.sky.co.nz";
update channel set channum = 1090, freqid=channum where xmltvid =
"sky-news.sky.co.nz";
update channel set channum = 1091, freqid=channum where xmltvid =
"cnn.sky.co.nz";
update channel set channum = 1092, freqid=channum where xmltvid =
"fox-news.sky.co.nz";
update channel set channum = 1093, freqid=channum where xmltvid =
"bbc-world.sky.co.nz";
update channel set channum = 1094, freqid=channum where xmltvid =
"parliament.sky.co.nz";
update channel set channum = 1095, freqid=channum where xmltvid =
"cnbc.sky.co.nz";
update channel set channum = 1098, freqid=channum where xmltvid =
"weather-channel.sky.co.nz";
update channel set channum = 1111, freqid=channum where xmltvid =
"shine.sky.co.nz";
update channel set channum = 1200, freqid=channum where xmltvid =
"box-office.sky.co.nz";
update channel set channum = 1201, freqid=channum where xmltvid =
"box-office201.sky.co.nz";
update channel set channum = 1202, freqid=channum where xmltvid =
"box-office202.sky.co.nz";
update channel set channum = 1203, freqid=channum where xmltvid =
"box-office203.sky.co.nz";
update channel set channum = 1204, freqid=channum where xmltvid =
"box-office204.sky.co.nz";
update channel set channum = 1205, freqid=channum where xmltvid =
"box-office205.sky.co.nz";
update channel set channum = 1206, freqid=channum where xmltvid =
"box-office206.sky.co.nz";
update channel set channum = 1207, freqid=channum where xmltvid =
"box-office207.sky.co.nz";
update channel set channum = 1208, freqid=channum where xmltvid =
"box-office208.sky.co.nz";
update channel set channum = 1209, freqid=channum where xmltvid =
"box-office209.sky.co.nz";
update channel set channum = 1210, freqid=channum where xmltvid =
"box-office210.sky.co.nz";
update channel set channum = 1211, freqid=channum where xmltvid =
"box-office211.sky.co.nz";
update channel set channum = 1212, freqid=channum where xmltvid =
"box-office212.sky.co.nz";
update channel set channum = 1213, freqid=channum where xmltvid =
"box-office213.sky.co.nz";
update channel set channum = 1214, freqid=channum where xmltvid =
"box-office214.sky.co.nz";
update channel set channum = 1217, freqid=channum where xmltvid =
"playboy.sky.co.nz";
update channel set channum = 1218, freqid=channum where xmltvid =
"fresh.sky.co.nz";
update channel set channum = 1219, freqid=channum where xmltvid =
"spice-excess.sky.co.nz";
update channel set channum = 1300, freqid=channum where xmltvid =
"ktv1.sky.co.nz";
update channel set channum = 1301, freqid=channum where xmltvid =
"ktv2.sky.co.nz";
update channel set channum = 1302, freqid=channum where xmltvid =
"jtv.sky.co.nz";
update channel set channum = 1303, freqid=channum where xmltvid =
"ctv1.sky.co.nz";
update channel set channum = 1304, freqid=channum where xmltvid =
"ctv2.sky.co.nz";
update channel set channum = 1305, freqid=channum where xmltvid =
"ctv3.sky.co.nz";
update channel set channum = 1306, freqid=channum where xmltvid =
"ctv4.sky.co.nz";
update channel set channum = 1307, freqid=channum where xmltvid =
"ctv5.sky.co.nz";
update channel set channum = 1308, freqid=channum where xmltvid =
"ctv6.sky.co.nz";
update channel set channum = 1309, freqid=channum where xmltvid =
"ctv7.sky.co.nz";
update channel set channum = 1310, freqid=channum where xmltvid =
"cctv9.sky.co.nz";
update channel set channum = 1311, freqid=channum where xmltvid =
"real-good-life.sky.co.nz";
update channel set channum = 1312, freqid=channum where xmltvid =
"new-supremo.sky.co.nz";
update channel set channum = 1400, freqid=channum where xmltvid =
"nz-chart.music.sky.co.nz";
update channel set channum = 1401, freqid=channum where xmltvid =
"pop.music.sky.co.nz";
update channel set channum = 1402, freqid=channum where xmltvid =
"smooth.music.sky.co.nz";
update channel set channum = 1403, freqid=channum where xmltvid =
"grooves.music.sky.co.nz";
update channel set channum = 1404, freqid=channum where xmltvid =
"jazz.music.sky.co.nz";
update channel set channum = 1405, freqid=channum where xmltvid =
"house.music.sky.co.nz";
update channel set channum = 1406, freqid=channum where xmltvid =
"fifties-sixties.music.sky.co.nz";
update channel set channum = 1407, freqid=channum where xmltvid =
"party.music.sky.co.nz";
update channel set channum = 1408, freqid=channum where xmltvid =
"rock.music.sky.co.nz";
update channel set channum = 1410, freqid=channum where xmltvid =
"classical.music.sky.co.nz";
update channel set channum = 1411, freqid=channum where xmltvid =
"kids.music.sky.co.nz";
update channel set channum = 1412, freqid=channum where xmltvid =
"blues.music.sky.co.nz";
update channel set channum = 1413, freqid=channum where xmltvid =
"special.music.sky.co.nz";
update channel set channum = 1500, freqid=channum where xmltvid =
"kiwi.music.sky.co.nz";
update channel set channum = 1501, freqid=channum where xmltvid =
"national.radio.sky.co.nz";
update channel set channum = 1502, freqid=channum where xmltvid =
"concert-fm.radio.sky.co.nz";
update channel set channum = 1505, freqid=channum where xmltvid =
"tahu-fm.radio.sky.co.nz";
update channel set channum = 1506, freqid=channum where xmltvid =
"calvary.radio.sky.co.nz";
EOF

exit 0
=============================================================

And here is my modified change-channel-lirc-skynz.pl script:

=============================================================
#!/usr/bin/perl
# Change the channel on a New Zealand SkyTV decoder.  All Sky channels
have
# channum values in the range 1000-1999.  The channel to be output to
the
# decoder is the least significant 3 digits of the channum value.

# make sure to set this string to
# the corresponding remote in /etc/lircd.conf
$remote_name = "Pace_RC-30";

$channum=$ARGV[0];
print STDERR "channum = $channum, remote = $remote_name";
sleep 1;
if (length($channum) == 4 && substr($channum,0,1) == "1") {
   $channel_digit_1 = substr($channum,1,1);
   $channel_digit_2 = substr($channum,2,1);
   $channel_digit_3 = substr($channum,3,1);
   if ($channel_digit_0 != "0") {
      system("irsend SEND_ONCE $remote_name $channel_digit_1");
   }
   system("irsend SEND_ONCE $remote_name $channel_digit_2");
   system("irsend SEND_ONCE $remote_name $channel_digit_3");
   $! = 0;
} else {
   $channum_len = length($channum);
   $channel_digit_0 = substr($channum,0,1);
   $! = 1;
   print STDERR "channel-change-lirc-skynz.pl: Invalid channum value
(channum = $channum, length = $channum_len, 1st digit =
$channum_digit_0, remote = $remote_name)";
}
=============================================================

Using an IRBlaster to change channels is not always reliable.  I still
have the occasional problem where a digit gets missed, so I think I
might need a small sleep command or two to delay things a little.

My Sky decoder is a Pace DSR600, which seems to be a very common one.
You need to set up a lirc configuration for it.  Go to
/usr/share/lirc/extras/transmitters and there you will find the IR
transmitter configurations.  Create a new directory "skynz", and put
in it the following general.conf file:

=============================================================
#
# this config file was automatically generated
# using lirc-0.7.0pre2 on Sat Feb  7 18:25:52 2004
#
# contributed by: Jon Waite <jon at jonwaite dot com> 
#
# brand:                       Pace 
# model no. of remote control: RC-30
# devices being controlled by this remote: Pace DSR620-GM Sky Digital 
#                                          Decoder (New Zealand)
#

begin remote

  name  Pace_RC-30
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9020  4544
  one           541  1696
  zero          541   579
  ptrail        506
  repeat       9014  2311
  pre_data_bits   16
  pre_data       0x213C
  gap          107807
  toggle_bit      0


      begin codes
          red                      0x0000000000007C83
          green                    0x000000000000B44B
          yellow                   0x000000000000BC43
          blue                     0x000000000000FC03
          1                        0x0000000000000CF3
          2                        0x000000000000946B
          3                        0x0000000000009C63
          4                        0x00000000000014EB
          5                        0x00000000000004FB
          6                        0x0000000000001CE3
          7                        0x0000000000004CB3
          8                        0x00000000000054AB
          9                        0x00000000000044BB
          0                        0x000000000000CC33
          tv                       0x0000000000008C73
          reserved                 0x000000000000F40B
          volup                    0x000000000000649B
          voldown                  0x000000000000E41B
          mute                     0x000000000000A45B
          chanup                   0x000000000000AC53
          chandown                 0x000000000000EC13
          guide                    0x000000000000748B
          back                     0x0000000000005CA3
          interactive              0x0000000000006C93
          up                       0x000000000000D42B
          down                     0x00000000000024DB
          left                     0x0000000000002CD3
          right                    0x000000000000DC23
          ok                       0x000000000000C43B
          plus                     0x0000000000003CC3
          question                 0x00000000000034CB
          power                    0x000000000000847B
      end codes

end remote


begin remote

  name  Sky_Zenith
  bits           16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       9157  4344
  one           730  1525
  zero          730   378
  ptrail        711
  repeat       9156  2105
  pre_data_bits   16
  pre_data       0x61F4
  gap          107722
  toggle_bit      0


      begin codes
          power                    0x00000000000058A7
          1                        0x00000000000040BF
          2                        0x000000000000C837
          3                        0x00000000000030CF
          4                        0x0000000000006897
          5                        0x00000000000028D7
          6                        0x000000000000E817
          7                        0x00000000000018E7
          8                        0x000000000000B04F
          9                        0x0000000000009867
          0                        0x000000000000708F
          mute                     0x00000000000050AF
          g                        0x00000000000039C6
          tv                       0x00000000000041BE
          mosaic                   0x000000000000C936
          left                     0x00000000000011EE
          up                       0x000000000000D12E
          right                    0x000000000000B946
          down                     0x0000000000008976
          select                   0x00000000000008F7
          plus                     0x000000000000A857
          question                 0x000000000000F10E
          recall                   0x000000000000619E
          volume_up                0x00000000000048B7
          volume_down              0x000000000000D827
          channel_up               0x000000000000E01F
          channel_down             0x000000000000807F
          red                      0x000000000000F807
          green                    0x0000000000007887
          yellow                   0x00000000000020DF
          blue                     0x000000000000906F
      end codes

end remote
=============================================================

I got this file from my old OpenMedia MyPVR setup, courtesy of Steven
Ellis.  I am not sure if it is around on the net.

Next, adjust your /etc/lirc/hardware.conf file so that it looks like
mine, but adjusted for your IRBlaster hardware:

=============================================================
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Windows Media Center Transceivers/Remotes (all)"
REMOTE_MODULES="lirc_dev lirc_mceusb"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="mceusb/lircd.conf.mceusb"
REMOTE_LIRCD_ARGS=""

#Chosen IR Transmitter
TRANSMITTER="Microsoft Windows Media Center V2 (usb) : Sky New Zealand
Pace DSR600"
TRANSMITTER_MODULES="lirc_dev lirc_mceusb2"
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE="/dev/lirc1"
TRANSMITTER_SOCKET=""
TRANSMITTER_LIRCD_CONF="skynz/general.conf"
TRANSMITTER_LIRCD_ARGS=""

#Enable lircd
START_LIRCD="true"

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Default configuration files for your hardware if any
LIRCMD_CONF=""

#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
=============================================================

and similarly for lircd.conf:

=============================================================
#This configuration has been automatically generated via
#the Ubuntu LIRC package maintainer scripts.
#
#It includes the default configuration for the remote and/or
#transmitter that you have selected during package installation.
#
#Feel free to add any custom remotes to the configuration
#via additional include directives or below the existing
#Ubuntu include directives from your selected remote and/or
#transmitter.

#Configuration for the Windows Media Center Transceivers/Remotes (all)
remote:
include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"

#Configuration for the Microsoft Windows Media Center V2 (usb) : Sky
New Zealand Pace DSR600 transmitter:
include "/usr/share/lirc/extras/transmitters/skynz/general.conf"
=============================================================

Once you have done this and restarted lirc (I am not sure if I just
rebooted or used /etc/init.d/lirc restart), with the Sky decoder
playing on your TV, try to change channels using irsend commands.  For
example, this should change to the National Geographic channel:

irsend SEND_ONCE Pace_RC-30 7 2

If that works, then try changing channel to say 1070 from MythFrontend
live TV and see if it works there too.

There may well be something I have missed in the above, but it should
give you enough ideas to get going.



More information about the mythtvnz mailing list