|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Hookup to current running sage, and perform actions?
Is there a way to interact with sage from the outside, other than sending events (which are imited in number).
I want to have an external control program (don't know exactly what it will do, its just an Idea), that will interact with a "live" sage process and instruct it to do things. Like the webserver, but not a web interface. something like: 1.see if sage is running 2. hookup to sage (my external application) 3. perform actions (could be just data mining, doesn't have to be UI) 4. do some changes in db 5. logout of external program. Otherwise, I will have to trigger this behaviour from sage itself and I would like to avoid that. My current STVI handles ForceEpgUpdate by sending a "custom2event" to sage, and I had to insert a listener in sage to intercept that event and act on it. As there are only a few numbered custom events, I am looking for a better way. Can this be done?
__________________
Server SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1 Client SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1 Using Nielm's Web server 2.22 |
#2
|
||||
|
||||
Sure, anything can be done if you're willing to write the code to make it happen. From Sage you can call arbitrary Java code that can (for instance) read commands from files, accept TCP connections, use JNI to create Windows pipes or event queues, or do pretty much any kind of IPC you like.
__________________
-- Greg |
#3
|
||||
|
||||
Bear in mind that the webserver does everything you listed, so it is definately possible, you 'just' need to create the server, the client and the protocol
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|