We have moved at community.getvera.com

Author Topic: TiVo and MythTV  (Read 11189 times)

Offline woodsby

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 466
  • Karma: +1/-0
TiVo and MythTV
« on: April 10, 2010, 06:37:25 am »
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.
Vera1 (1.1142), Vera2 (1.1182), VRI06 (12), VRS15 (3), VRS05 (2), VRF01 (2), VRCS4 (2), ZRW113, ZRF113 (2), 45602, 45603, TZMT400 (2), FE599 (2), 99100, Thinkstick, Harmony 890Pro (2), Harmony RF Extender, Nevo S70, Nevo NC-50, Minimote, SQ Remote, SQ Blaster, EtherRain-8, Cliste ActiveRFID, TED5002

Offline mikeholczer

  • Sr. Member
  • ****
  • Posts: 413
  • Karma: +0/-0
Re: TiVo and MythTV
« Reply #1 on: April 10, 2010, 09:28:59 am »
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

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: TiVo and MythTV
« Reply #2 on: April 10, 2010, 11:34:02 am »
@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...

Code: [Select]
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 S_MediaNavigation1.xml (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 <protocol>RAW</protocol> to <protocol>CR</protocol>.

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)

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: TiVo and MythTV
« Reply #3 on: July 25, 2010, 07:42:56 pm »
@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.

Offline mikeholczer

  • Sr. Member
  • ****
  • Posts: 413
  • Karma: +0/-0
Re: TiVo and MythTV
« Reply #4 on: July 26, 2010, 09:13:15 am »
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.

Offline woodsby

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 466
  • Karma: +1/-0
Re: TiVo and MythTV
« Reply #5 on: July 26, 2010, 03:29:49 pm »
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.
Vera1 (1.1142), Vera2 (1.1182), VRI06 (12), VRS15 (3), VRS05 (2), VRF01 (2), VRCS4 (2), ZRW113, ZRF113 (2), 45602, 45603, TZMT400 (2), FE599 (2), 99100, Thinkstick, Harmony 890Pro (2), Harmony RF Extender, Nevo S70, Nevo NC-50, Minimote, SQ Remote, SQ Blaster, EtherRain-8, Cliste ActiveRFID, TED5002

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: TiVo and MythTV
« Reply #6 on: July 26, 2010, 04:30:48 pm »
@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 ;-)

Quote
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:
  • My TV, AppleTV, Playstation, and DirecTivo HR10-250 are all driven over IR (only)
  • My Amp is driven by a Luup-based driver (only)
  • My TV has both Luup and IR control (and it's controlling the Amp via it's HDMI-CEC for PowerOn/Off and Volume)


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...
« Last Edit: July 26, 2010, 06:21:23 pm by guessed »

Offline woodsby

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 466
  • Karma: +1/-0
Re: TiVo and MythTV
« Reply #7 on: July 26, 2010, 05:33:12 pm »
OOOH... what kind of HDMI-CEC device did you get?  I've been waiting for something like this...
Vera1 (1.1142), Vera2 (1.1182), VRI06 (12), VRS15 (3), VRS05 (2), VRF01 (2), VRCS4 (2), ZRW113, ZRF113 (2), 45602, 45603, TZMT400 (2), FE599 (2), 99100, Thinkstick, Harmony 890Pro (2), Harmony RF Extender, Nevo S70, Nevo NC-50, Minimote, SQ Remote, SQ Blaster, EtherRain-8, Cliste ActiveRFID, TED5002

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: TiVo and MythTV
« Reply #8 on: July 26, 2010, 05:43:50 pm »
When I have it working, I'll publish the details ...

Offline woodsby

  • Beta Testers
  • Sr. Member
  • *****
  • Posts: 466
  • Karma: +1/-0
Re: TiVo and MythTV
« Reply #9 on: July 26, 2010, 06:18:00 pm »
10-4. Thanks man.
Vera1 (1.1142), Vera2 (1.1182), VRI06 (12), VRS15 (3), VRS05 (2), VRF01 (2), VRCS4 (2), ZRW113, ZRF113 (2), 45602, 45603, TZMT400 (2), FE599 (2), 99100, Thinkstick, Harmony 890Pro (2), Harmony RF Extender, Nevo S70, Nevo NC-50, Minimote, SQ Remote, SQ Blaster, EtherRain-8, Cliste ActiveRFID, TED5002

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: TiVo and MythTV
« Reply #10 on: July 27, 2010, 01:02:51 am »
When I have it working, I'll publish the details ...
You are a Tease! :) 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! :)
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: TiVo and MythTV
« Reply #11 on: July 27, 2010, 01:05:19 am »
@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.

Are we able to open a MiOS project there or does MCV have to do it?
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: TiVo and MythTV
« Reply #12 on: July 27, 2010, 01:15:25 am »
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.

Offline denix

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1088
  • Karma: +1/-0
Re: TiVo and MythTV
« Reply #13 on: August 25, 2010, 11:28:35 pm »
Veras (1, 2, 3, Lite, Plus), lots of different Z-Wave modules, Luup plugins and theater/security integration.

Offline michaelk

  • Hero Member
  • *****
  • Posts: 633
  • Karma: +0/-0
Re: TiVo and MythTV
« Reply #14 on: October 07, 2010, 09:18:10 pm »
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.