<!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>        Raymond Wagner <raymond@wagnerrp.com><br /><strong>Sent:</strong>        Thu 16-08-2012 21:14<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 />On 8/16/2012 10:38, Dave Pearson wrote:<br />> Before anyone says why don't I do it myself - I'm not clever enough!<br /><br />Sure you are, you just don't know you are. Grab a copy of wireshark or <br />tcpdump and have at it. Just start it up, and record the communications <br />between the iPad and the STB as you perform various actions. The only <br />real difficulty would be if they decided it was necessary to perform <br />some kind of authentication between the STB and application, or worse, <br />encrypted the communication.<br />_______________________________________________<br />mythtv-users mailing list<br />mythtv-users@mythtv.org<br />http://www.mythtv.org/mailman/listinfo/mythtv-users<br /></blockquote><p>OK, I wasn't clever enough to use wireshark to figure out how to send the control commands to my SKY+HD Box, but someone else was (<a href="http://www.gladdy.co.uk/blog/2012/08/21/the-skyhd-picasso-dnla-control-server-protocol/">http://www.gladdy.co.uk/blog/2012/08/21/the-skyhd-picasso-dnla-control-server-protocol/</a>) and using the information on that page I have been able to use firefox poster to send a command to change the channel. I'm now trying to take what I'm using in poster to create a bash script that I can use to change the channel in mythtv, unfortunately I'm having no luck with curl at all.</p><p> </p><p>This is what I'm POSTing using poster:</p><p> </p><p>headers:</p><p> </p><p>SOAPACTION: urn:schemas-nds-com:service:SkyPlay:2#SetAVTransportURI</p><p>content-type: text/xml; charset=utf-8</p><p> </p><p>body:</p><p> </p><p><?xml version="1.0" encoding="utf-8"?></p><p><s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.smlsoap.org/soap/envelope/"></p><p><s:Body></p><p><u:SetAVTransportURI xmlns:u="urn:schemas-nds-com:service:SkyPlay:2"></p><p><InstanceID>0</InstanceID></p><p><CurrentURI>xsi://ff0</CurrentURI></p><p><CurrentURIMetaData>NOT_IMPLEMENTED</CurrentURIMetaData></p><p></u:SetAVTransportURI></p><p></s:Body></p><p></s:Envelope></p><p> </p><p>Using the above code in poster I mange to change the channel to ff0, which is the hex code for channel 113 (Universal HD), unfortunately I just cannot figure out how I can get curl to POST the body text (I think the headers are being passed correctly. I'm sure this is really simple, but I'm just stuck! any help will be gratefully received.</p><p> </p><p>Regards,</p><p>Dave</p><p> </p><p> </p><p> </p>
</body>
</html>