<br><br><div class="gmail_quote">On Thu, Dec 13, 2012 at 10:29 AM, Dave Pearson <span dir="ltr">&lt;<a href="mailto:lists@the-pearsons.co.uk" target="_blank">lists@the-pearsons.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>

  
  
  
  

<div><div><div class="h5">
<blockquote style="border-left:2px solid #325fba;padding-left:5px;margin-left:5px">-----Original message-----<br><b>From:</b>        Raymond Wagner &lt;<a href="mailto:raymond@wagnerrp.com" target="_blank">raymond@wagnerrp.com</a>&gt;<br>
<b>Sent:</b>        Thu 16-08-2012 21:14<br><b>Subject:</b>        Re: [mythtv-users] New Sky+ App - control Sky box via tcp/ip network<br><b>To:</b>        Discussion about MythTV &lt;<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a>&gt;; <br>
On 8/16/2012 10:38, Dave Pearson wrote:<br>&gt; Before anyone says why don&#39;t I do it myself - I&#39;m not clever enough!<br><br>Sure you are, you just don&#39;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><a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br><a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/listinfo/mythtv-users</a><br>
</blockquote></div></div><p>OK, I wasn&#39;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/" target="_blank">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&#39;m now trying to take what I&#39;m using in poster to create a bash script that I can use to change the channel in mythtv, unfortunately I&#39;m having no luck with curl at all.</p>
<p> </p><p>This is what I&#39;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>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</p><p>&lt;s:Envelope s:encodingStyle=&quot;<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://schemas.xmlsoap.org/soap/encoding/</a>&quot; xmlns:s=&quot;<a href="http://schemas.smlsoap.org/soap/envelope/" target="_blank">http://schemas.smlsoap.org/soap/envelope/</a>&quot;&gt;</p>
<p>&lt;s:Body&gt;</p><p>&lt;u:SetAVTransportURI xmlns:u=&quot;urn:schemas-nds-com:service:SkyPlay:2&quot;&gt;</p><p>&lt;InstanceID&gt;0&lt;/InstanceID&gt;</p><p>&lt;CurrentURI&gt;xsi://ff0&lt;/CurrentURI&gt;</p><p>&lt;CurrentURIMetaData&gt;NOT_IMPLEMENTED&lt;/CurrentURIMetaData&gt;</p>
<p>&lt;/u:SetAVTransportURI&gt;</p><p>&lt;/s:Body&gt;</p><p>&lt;/s:Envelope&gt;</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&#39;m sure this is really simple, but I&#39;m just stuck! any help will be gratefully received.</p>
<p> </p><p>Regards,</p><p>Dave</p></div></blockquote><div><br>can wget do this?<br></div></div>