SageTV Community  

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

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-26-2006, 11:50 PM
alon24 alon24 is offline
Sage Aficionado
 
Join Date: Jun 2004
Posts: 351
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
Reply With Quote
  #2  
Old 06-28-2006, 01:04 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
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
Reply With Quote
  #3  
Old 06-28-2006, 06:21 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
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
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


All times are GMT -6. The time now is 05:28 PM.


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