<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Once and Only Once : Exposing MythTVs telnet control over HTTP</title>
    <link>http://www.tarbard.co.uk/articles/2008/05/13/exposing-mythtvs-telnet-control-over-http</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Darren Tarbard's ramblings</description>
    <item>
      <title>Exposing MythTVs telnet control over HTTP</title>
      <description>I've been setting up remote controls on mythtv recently but one of them is a bit old and clunky. It occurred to me that it would be nice to use my smartphone to control mythtv instead.  I found an existing app for smartphones but installing the .net libraries onto my phone and compiling a C program for the server too seemed a little too much when I don't even have activesync installed.  What I do have on my phone already though is a web browser. &lt;p/&gt;
I wrote this ruby script to create a web interface, it generates a page and translates the links into telnet commands that are passed to mythtv.&lt;p /&gt;  Because it simply translates the urls you can use pretty much any of the mythtv telnet commands by just inserting a slash where there would normally be a space.  It's been a nice application of Ruby, it was quick to write (in fact an attempt at KISS) and is self contained apart from needing Ruby of course.
&lt;p /&gt;
&lt;p /&gt;

&lt;a href="http://www.tarbard.co.uk/files/mythcontrol.rb"&gt;mythcontrol.rb&lt;/a&gt;
&lt;p /&gt;
&lt;p /&gt;

Change 192.168.1.6 to the ip address of the frontend you want to control&lt;p /&gt;
run by typing mythcontrol.rb&lt;p /&gt;
&lt;p /&gt;
point your browser at :&lt;p /&gt;
http://127.0.0.1/&lt;p /&gt;
&lt;p /&gt;
You can do everything you need with the buttons i've exposed but all you need to do to add/change them is change the URLs in the code - check out mythtvs docs for a list of possible commands&lt;p /&gt;&lt;p /&gt;

&lt;a href="http://www.mythtv.org/wiki/index.php/Telnet_socket"&gt;http://www.mythtv.org/wiki/index.php/Telnet_socket&lt;/a&gt;&lt;p /&gt;&lt;p /&gt;



</description>
      <pubDate>Tue, 13 May 2008 18:52:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:3e4e09e0-2ea3-4343-b75e-6e2d3bea77e1</guid>
      <author>Daz</author>
      <link>http://www.tarbard.co.uk/articles/2008/05/13/exposing-mythtvs-telnet-control-over-http</link>
      <category>Software dev</category>
    </item>
    <item>
      <title>"Exposing MythTVs telnet control over HTTP" by Office 2010</title>
      <description>Valuable information ..I am delighted to read this article..thank you for giving us this useful information. Great walk-through. I value this post.
</description>
      <pubDate>Mon, 09 Jan 2012 03:00:44 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:fc69857c-10ca-4eeb-92eb-1d3627eab183</guid>
      <link>http://www.tarbard.co.uk/articles/2008/05/13/exposing-mythtvs-telnet-control-over-http#comment-16475</link>
    </item>
    <item>
      <title>"Exposing MythTVs telnet control over HTTP" by the north face outlet</title>
      <description>This article contains very sensible advice. Never under estimate the value of backups, you only need get caught out once and believe me it will be once too often.And I got so much of information from your blog..
</description>
      <pubDate>Sat, 10 Sep 2011 10:59:39 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:3038d297-2fc1-4c15-be71-19604d62fce2</guid>
      <link>http://www.tarbard.co.uk/articles/2008/05/13/exposing-mythtvs-telnet-control-over-http#comment-9798</link>
    </item>
    <item>
      <title>"Exposing MythTVs telnet control over HTTP" by Joejag</title>
      <description>nifty++

What's the delay between the device and the action happening?</description>
      <pubDate>Mon, 23 Feb 2009 17:14:23 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:de17d98a-7325-486e-bcf7-50646ded5073</guid>
      <link>http://www.tarbard.co.uk/articles/2008/05/13/exposing-mythtvs-telnet-control-over-http#comment-6153</link>
    </item>
    <item>
      <title>"Exposing MythTVs telnet control over HTTP" by Lord0</title>
      <description>Dude, this is so wrong - don't you see? You're losing it man. Ruby/MythTV - just rent a porno like everyone else! 

.....Now let me get back to my 3rd 4 hour raid of the week :D</description>
      <pubDate>Sun, 18 May 2008 13:56:56 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:67e89bf4-8e19-4ca8-9b60-ae3e5eda03cb</guid>
      <link>http://www.tarbard.co.uk/articles/2008/05/13/exposing-mythtvs-telnet-control-over-http#comment-156</link>
    </item>
  </channel>
</rss>

