PDA

View Full Version : YAC Listener - tcl version


mrbarney
02-09-2009, 05:51 AM
Hi all,

I can't remember the last time I posted here - must be years! :eek:

Anyway, I noticed that the XBMC YAC listener had options to pause playback on an incoming call and thought it would be cool to get the TiVo to do the same. I didn't fancy trying to cross-compile C code, so I attempted to rewrite a YAC listener in tcl. My first tcl program!

Features:

Can SendKey on incoming call or message
Can differentiate between calls and YAC text messages
Easy to modify
Will run interactively in a console session for debugging

Known limitations:

It doesn't check the TiVo status (perhaps SendKey dumpstate could be used?), it just blindly sends the pause key. Obvious limitation to that.
It uses newtext2osd for the display, and that doesn't auto line-wrap, so I've artificially limited the input to 35 chars. Could be made to split the input into multiple lines in future.


add the following to rc.sysinit.author for normal use:
/var/hack/yac.tcl >>/dev/null &

(don't forget to remove / kill any existing YAC listener processes).

I'm running this version exclusively now. I hope it's of use to someone else. Please feel free to modify as required.

Cheers.