What about the existing command main menu item?

Shouldn't the hack go in there so it can be used in the future for other
hacks like this?

K,

On Mon, 2007-01-15 at 07:27 -0800, Ryan Roth wrote:

> AFAIK this does not exist.  You should be able to make it work by 
> modifying menu.py and adding a event to it.
> Ten add something like this to your local_conf.py
> 
> EVENTS['menu']['POWER'] = Event(PUT_YOUR_EVENT_NAME_HERE)
> 
> 
> Stephen Rowles wrote:
> > Hi,
> >
> > Flush from my success of controlling my surround sound amp using irsend, 
> > I would like to control my TV too.
> >
> > Currently the media box is input via SVideo, on AV4 (the only input I 
> > have cables for atm). However on power on my TV starts up in channel
> > mode tuned to the last "real" TV channel is was on.
> >
> > What I would like to do is trap the POWER event, that seems to be 
> > propogated everywhere - as I get this output to console from freevo:
> >
> > send button event BUTTON arg=POWER
> > no event mapping for key POWER in context tvmenu
> > send button event BUTTON arg=POWER
> > no event mapping for key POWER in context menu
> >
> > I would like to pick up that event, then run a simple script that uses 
> > irsend to turn the TV on - wait 5 seconds (warm up time required), then 
> > change the input to the correct AV source.
> >
> > I am quite happy to modify code to get this to work, or if there is a 
> > mechanism to deal with this already that would be ace.
> >
> > Thank you.
> >
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys - and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Freevo-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/freevo-users
> >
> >   
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Freevo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freevo-users
> 
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to