SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-18-2010, 07:12 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Using SageTV actions to trigger events.

Here is what I'm trying to do:

I am going to start significantly upgrading my media room soon and I need some advice on getting SageTV to trigger events so I can program EventGhost to recognize the events to trigger equipment (i.e receiver, tv, lights, ect.). The reasoning behind this is simple. I would like my lights to dim when I start a movie. SageTV generates events in the log file that I hope to be able to grab for this purpose.

Here are the "events" and what sage puts in the log file.

Selecting My Music or pressing the music button on the remote causes this to be written into the log: Launching screen My Music. When this screen is selected I would like for my receiver to go into pure direct (no sound processing) mode instead of whatever sound mode I watch tv/movies in.

Selecting My Videos or pressing the videos button on the remote causes this to be written into the log: Launching screen Sage Movie Wall. I'd like the lights to dim and when the movie starts playing, I want them to dim and go off. When pause is hit they go to up to half power. I don't want this to happen when watching TV so I need it do be dependant on this screen.

Same with TV. "Launching screen TV Explorer" is written to the log.

I'd love to be able to be able to trigger other events based on these actions within SageTV. Right now, I can't think of a way to get sage to work that way. I know this is an unusual circumstance, but I like sage to be the center of my theater.

I know how to get everything else working except the lights and musc part. All I need to do is capture those events some how. I hope you guys think of something I can do to get this to work. Help?
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.

Last edited by panteragstk; 02-18-2010 at 07:39 PM.
Reply With Quote
  #2  
Old 02-18-2010, 08:07 PM
razrsharpe razrsharpe is offline
Sage Icon
 
Join Date: Sep 2008
Location: Boston, MA
Posts: 2,111
Quote:
Originally Posted by panteragstk View Post
I know how to get everything else working except the lights and musc part. All I need to do is capture those events some how. I hope you guys think of something I can do to get this to work. Help?
It's probably easier to do this with a universal remote.... that being said if you want to do it from sage i would look into somethign like this: If youre only interested in performing actions when going from the main menu to a sub menu... you can inject studio code into the sagemc_menu.xml file... this is what pathfilterexpressions does, or setting property items for the menu... sooo...you can use the ExecuteProcess api call in the menu item to run EventGhost from the command line.. I'm not familiar with EventGhost so I'm assuming that you can all it from the commandline...
__________________
Server 2003 r2 32bit, SageTV9 (finally!)
2x Dual HDHR (OTA), 1x HD-PVR (Comcast), 1x HDHR-3CC via SageDCT (Comcast)
2x HD300, 1x SageClient (Win10 Test/Development)
Check out TVExplorer
Reply With Quote
  #3  
Old 02-18-2010, 09:40 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
Quote:
Originally Posted by razrsharpe View Post
It's probably easier to do this with a universal remote.... that being said if you want to do it from sage i would look into somethign like this: If youre only interested in performing actions when going from the main menu to a sub menu... you can inject studio code into the sagemc_menu.xml file... this is what pathfilterexpressions does, or setting property items for the menu... sooo...you can use the ExecuteProcess api call in the menu item to run EventGhost from the command line.. I'm not familiar with EventGhost so I'm assuming that you can all it from the commandline...
I need to look into how to use studio then. Until now, I've always found something on this forum that would do what I wanted. Thanks for the suggestion.
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
  #4  
Old 03-23-2010, 01:24 PM
panteragstk's Avatar
panteragstk panteragstk is offline
SageTVaholic
 
Join Date: Oct 2008
Location: New Braunfels, TX
Posts: 3,312
I've done more research on this.

I asked eventghost forum if there was a way to get events from sage into eventghost. This is the post....

Quote:
I'm using EventGhost 0.3.7.r1436, and I am trying to get an external progran (SageTV) to send commands to EG. How do I need to configure EG to receive commands from an external source? It would be easy if SageTV's screens and functions regestered as events, but they don't. The only thing that registers in eventghost is the window being activated or destroyed. If I could get SageTV actions (select TV, or movies, or whatever) to send a specific function to EG I'd be the happiest person ever...
BTW, I'm trying to get EG to send commands to my A/V receiver so the sound mode can change depending on what I choose in SageTV. I'd also like to expand this into lighting control (lights dim when I start a movie) and other things. Basically I want SageTV to tell EG what I want EG to tell other software/hardware to do.

Thoughts?
Quote:
What I would do is to configure Sage to somehow send some weird keystroke that EG would catch with its keyboard events plugin.
So.. On some action Sage presses for example ctrl+alt+shift+numpad* and then EG catches it and then does what it is supposed to do.

I configured my system with X-Fi Mode Changer this way and it works very well in conjunction with EG; fortunately, the mode changer has the ability to send hotkeys/keystrokes. If Sage does not have that ability.. well.. then I am writing in vain. Check the plugins for SageTv, there could be something..
So. Is there a way to get sage to emulate keyboard strokes? Like when adding commands to an external program in the sagemc_menu.xml? I think all I would have to do is have sage initiate a sequence of keys to trigger certain events. The question is: what code would I have to put in the xml to get it to do that?
__________________
SageTV Server: unRAID Docker v9, S2600CPJ, Norco 24 hot swap bay case, 2x Xeon 2670, 64 GB DDR3, 3x Colossus for DirecTV, HDHR for OTA
Living room: nVidia Shield TV, Sage Mini Client, 65" Panasonic VT60
Bedroom: Xiomi Mi Box, Sage Mini Client, 42" Panasonic PZ800u
Theater: nVidia Shield TV, mini client, Plex for movies, 120" screen. Mitsubishi HC4000. Denon X4300H. 7.4.4 speaker setup.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Sagetv automatically sort EPG events into Categories thenewguy1979 SageTV Software 1 09-09-2008 08:21 PM
Blocked DVD actions Nebruin SageTV Software 1 05-26-2008 11:56 AM
No unique EPG Data on CSPAN book events and public affairs events weyker SageTV EPG Service 1 01-23-2005 10:42 PM
How to trigger special IR codes? Bruce L Hardware Support 0 09-21-2004 09:13 PM
DVD Actions broke? m0ng00se30 SageTV Beta Test Software 2 03-19-2004 10:14 PM


All times are GMT -6. The time now is 01:13 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.