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