<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebAccess v7.1.1-37812">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>RE: [mythtv-users] New Sky+ App - control Sky box via tcp/ip network</title>
  <style type="text/css">
      body
      {
        font-family: Arial, Verdana, Sans-Serif ! important;
        font-size: 12px;
        padding: 5px 5px 5px 5px;
        margin: 0px;
        border-style: none;
        background-color: #ffffff;
      }

      p, ul, li
      {
        margin-top: 0px;
        margin-bottom: 0px;
      }
  </style>
</head>
<body>
<blockquote style="border-left: 2px solid #325FBA; padding-left: 5px;margin-left:5px;">-----Original message-----<br /><strong>From:</strong>        Michael Watson &lt;michael@thewatsonfamily.id.au&gt;<br /><strong>Sent:</strong>        Fri 14-12-2012 21:43<br /><strong>Subject:</strong>        Re: [mythtv-users] New Sky+ App - control Sky box via tcp/ip network<br /><strong>To:</strong>        Discussion about MythTV &lt;mythtv-users@mythtv.org&gt;; <br />Can you send me a copy of data returned by the mediainfo command. &nbsp;(your <br />/tmp/skychange.txt)<br /><br /><br />On 15/12/2012 8:14 AM, Dave Pearson wrote:<br />&gt; RE: [mythtv-users] New Sky+ App - control Sky box via tcp/ip network<br />&gt;<br />&gt; &nbsp; &nbsp; -----Original message-----<br />&gt; &nbsp; &nbsp; *From:* Michael Watson &lt;michael@thewatsonfamily.id.au&gt;<br />&gt; &nbsp; &nbsp; *Sent:* Fri 14-12-2012 20:49<br />&gt; &nbsp; &nbsp; *Subject:* Re: [mythtv-users] New Sky+ App - control Sky box via<br />&gt; &nbsp; &nbsp; tcp/ip network<br />&gt; &nbsp; &nbsp; *To:* mythtv-users@mythtv.org;<br />&gt; &nbsp; &nbsp; Not a Problem, happy to assist. &nbsp; I am by no means an expert in<br />&gt; &nbsp; &nbsp; python<br />&gt; &nbsp; &nbsp; either, but if you need help with the error handling and checking of<br />&gt; &nbsp; &nbsp; current channel, let me know. I will need an example of the data<br />&gt; &nbsp; &nbsp; returned after a successful channel change, and after a change<br />&gt; &nbsp; &nbsp; when its<br />&gt; &nbsp; &nbsp; already on that channel. &nbsp;I found the code to query the current<br />&gt; &nbsp; &nbsp; channel.<br />&gt; &nbsp; &nbsp; but it looks a bit vague.<br />&gt;<br />&gt; &nbsp; &nbsp; Current playing or current channel is returned by:<br />&gt; &nbsp; &nbsp; SkyControl SkyPlay GetMediaInfo<br />&gt; &nbsp; &nbsp; Set InstanceID value to: 0<br />&gt;<br />&gt; &nbsp; &nbsp; CurrentURI : xsi://17FC<br />&gt; &nbsp; &nbsp; This indicates channel ITV1 Meridian South or<br />&gt; &nbsp; &nbsp; CurrentURI : file://pvr/29004438<br />&gt; &nbsp; &nbsp; in the case of a recording.<br />&gt;<br />&gt; Yes, I&#39;ve managed to amend the script now so that it first checks <br />&gt; (using GetMediaInfo) to see what is showing on the Sky box, if the <br />&gt; CurrentURI line contains a match for the hex code of the channel we&#39;re <br />&gt; changing to, the script exits. I had to write the response.read() data <br />&gt; into a file before I could search for the value - I&#39;m sure there&#39;s <br />&gt; probably a more efficient way of achieving this, but hey - it works!<br />&gt;<br />&gt; I&#39;ve attached the scipt and the channel data file (which I now store <br />&gt; in /etc/mythtv/sky_channel_guide.txt) just in case anyone else might <br />&gt; find it useful. It&#39;s not particularly neat and tidy (unlike your <br />&gt; original), so hopefully people won&#39;t look too closely at it and give <br />&gt; me a hard time.<br />&gt;<br />&gt; Thanks again for all your help.<br />&gt;<br />&gt; Regards,<br />&gt;<br />&gt; Dave.<br />&gt;<br />&gt;<br />&gt;<br />&gt; _______________________________________________<br />&gt; mythtv-users mailing list<br />&gt; mythtv-users@mythtv.org<br />&gt; http://www.mythtv.org/mailman/listinfo/mythtv-users<br />&gt;<br />&gt;<br />&gt; No virus found in this message.<br />&gt; Checked by AVG - www.avg.com &lt;http://www.avg.com&gt;<br />&gt; Version: 2013.0.2805 / Virus Database: 2634/5952 - Release Date: 12/11/12<br />&gt;<br /><br />_______________________________________________<br />mythtv-users mailing list<br />mythtv-users@mythtv.org<br />http://www.mythtv.org/mailman/listinfo/mythtv-users<br /></blockquote><p><br />&nbsp;Happy to oblige,</p><p>&nbsp;</p><p>Regards,</p><p>Dave.</p>
</body>
</html>