TiVo and MythTV

Didn’t know whether to put this here or in Luup Development. Has anyone played around with Vera and network control of either TiVo or mythtv? Since we’ll all be trying to use sq remote as a universal remote, this seems to be a great place to start since it should require no additional hardware. Wondering if there’s already any effort put into this out there.

I’m planning on switching from cable to over-the-air TV with a MythTV some time this summer. On the list of things to complete the setup was to write a Luup Device Plug-in that uses the MythTV telnet control.

If anyone wants to beat me to the punch:
http://www.mythtv.org/wiki/Telnet_socket

@woodsby, you might want to move it to the Luup Development forum. For Tivo, @strangely had a listing of the Tivo commands understood over it’s Serial interface (for the models that supported Serial), but not sure if there’s any difference in the Ethernet-based models.

With the MythTV link that @mikeholczer published, it would also be easy to get it working for MythTV.

If you want a starting point for MythTV, take the source files from:

http://code.mios.com/trac/mios_onkyo-media-control

and adapt them to the command codes for MythTV (etc), and change the hardcoded port references that I’ve used in there to use the ones that MythTV uses for it’s control interface. The code from the link above is setup to talk over Ethernet, not via any intermediate Serial port.

In blocks like this…

270 <action> 271 <serviceId>urn:micasaverde-com:serviceId:MenuNavigation1</serviceId> 272 <name>Down</name> 273 <run> 274 -- Cursor Down 275 sendCommand("OSDDOWN") 276 </run> 277 </action>

you’ll change the “OSDOWN” to something like “key down” to handle the MythTV equivalent.

You’ll want to add in the extra Services from [tt]S_MediaNavigation1.xml[/tt] (under Devices → Luup Files) since this has a few extra ACTIONs (like Fast-Forward, Pause etc) that aren’t present in the TV and Receiver plugins.

and you’ll also need to change the RAW to CR.

I’d bang out the Tivo ones for you, but unfortunately my Tivo is older (DirecTivo HD10-250) so I’m not able to automate it over a hard-wire connection (Serial or Ethernet) so I’d have no way to test it. It should only take 1-2 hours of copy/paste if you have the commands documented (like the stuff for MythTV)

@mikeholczer, @woodsby, Did you ever get further with this?

@strangely, want to open a code.mios.com space for the Tivo stuff, and hyperlink and/or upload the protocol doco
? We might be able to facilitate this through other members on the forums here, and both of these (MythTV and Tivo) would be popular I’d imagine.

I have not yet, but I just ordered the machine I’m going to run MythTV on, so this has moved up higher on my radar. I do have a pregnant wife, so I don’t have much time for these types of projects right now.

I haven’t either… I have to get the ActiveRFID plugin stable, then resume work on ER++, then get to this… if nobody has beat me to it by then.
I have not set up any IR control on Vera, so I’m not familiar with it’s AV support… I’ve been waiting for the puck…
One thing to note on MythTV is that it gives feedback as to what it’s displaying so it can support dynamic remote layouts - meaning when you browse your recordings, you’ll see one set of controls (browse controls), but when you select a recording for playback, it can tell your controller to switch to another set of controls (playback controls). Don’t know how this would be implemented on Vera, but it’s pretty cool.

@woodsby, the API’s that Vera exposes are more akin to IR, they’re “one-way” from Vera to the Device. Thia means they’re relatively easy to map/implement once you have the Protocol documentation for the device you’re targetting.

It also means they aren’t going to handle devices and/or interfaces that can provide “feedback” or “current state” information… so you don’t have to worry about that for now.

It’s outbound requests only, for Vera to control the Device. Unfortunately I don’t have MythTV, so whilst I could write the driver, I have no way to test it :wink:

I have not set up any IR control on Vera, so I'm not familiar with it's AV support... I've been waiting for the puck...
Yeap, and you can also mix-n-match "Puck" driven devices with Vera-driven ones (with Luup Plugins implementing the MediaControl interfaces Vera exposes)

This is the setup I have, with SQRemote providing the seemless interface across all of them:

[ul][li]My TV, AppleTV, Playstation, and DirecTivo HR10-250 are all driven over IR (only)[/li]
[li]My Amp is driven by a Luup-based driver (only)[/li]
[li]My TV has both Luup and IR control (and it’s controlling the Amp via it’s HDMI-CEC for PowerOn/Off and Volume)[/li][/ul]

My HDMI-CEC controller arrived today, so once I have that cabled, I’ll have another “direct” way to control [certain] Media Devices… once I’ve written the driver…

OOOH… what kind of HDMI-CEC device did you get? I’ve been waiting for something like this…

When I have it working, I’ll publish the details …

10-4. Thanks man.

[quote=“guessed, post:9, topic:165791”]When I have it working, I’ll publish the details …[/quote]You are a Tease! :slight_smile: By the way I forgot to mention that the rep from the “other” solution got back to me hinting that we may get a better price break. I owe him a reply still and may drop the details about this much more affordable solution! :slight_smile:

[quote=“guessed, post:4, topic:165791”]@mikeholczer, @woodsby, Did you ever get further with this?

@strangely, want to open a code.mios.com space for the Tivo stuff, and hyperlink and/or upload the protocol doco
? We might be able to facilitate this through other members on the forums here, and both of these (MythTV and Tivo) would be popular I’d imagine.[/quote]Are we able to open a MiOS project there or does MCV have to do it?

You can just drop a PM to Javier and he’ll set it up for you. We can then use the wiki space etc to capture any stub docs (for TiVo) to kick the ball off.

http://forum.micasaverde.com/index.php?topic=4228.0

fyi-

someone at tivocommunity forums was kind enough to write a tivo app that can have the tivo send commands to the vera for me.

Got sidetracked with some family health things so never had the time to test it yet- but here you guys go in case you are interested:

http://www.tivocommunity.com/tivo-vb/showthread.php?t=443011

would allow you to use the tivo remote to drive around tivo menus on your tv to activate stuff on veras.

and this thread over at tivocommunity explains how to get the tivo to do things via telnet commands-

http://www.tivocommunity.com/tivo-vb/showthread.php?t=392385

might help you out?

For DirecTV RS232-based Control, from a MiOS unit, refer to this thread which has the latest sources:

 http://forum.micasaverde.com/index.php?topic=3079.msg23944#msg23944

Publishing it here to close the loop for anyone using this thread to followup progress. We’re still waiting the formal code.mios.com space to publish the sources formally, but the ones attached there should work.

@michaelk, the thread on the community for how to control a MiOS unit from Vera is interesting.

DirecTV are about to release a IP based control scheme which is based on http requests (on the regular DVRs at least) and there is already a very functional version of it running on port 8080 which seems to work for pretty much every command already. It won’t be long before there are standalone ipad apps running, and somebody has already coded a windows based VB one that works well. It looks like they are polishing it before documenting it so that it’ll perhaps be more web generic and allow access to more information etc and maybe even control or view directly from a browser perhaps?

What is the status of this project? Please see post:
http://forum.micasaverde.com/index.php/topic,8492.0.html