SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Software Discussion related to the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the SageTV software application should be posted here. (Check the descriptions of the other forums; all hardware related questions go in the Hardware Support forum, etc. And, post in the customizations forum instead if any customizations are active.)

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-16-2008, 06:29 PM
hagur hagur is offline
Sage User
 
Join Date: Feb 2007
Posts: 65
possible to start/stop recording via automation/command line or similar?

SageTV server is always running on my HTPC. Is it possible to instruct it to start/stop recordings without using the sagetv interface or a client/placeshifter, via comand line or some sort of automation for example? I know I can schedule recordings, but i'd like to be able to manually start/stop recordings whenever - without using the sagetv UI.

Can it be done?
Reply With Quote
  #2  
Old 04-16-2008, 06:49 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
You can invoke Sage commands from a command prompt per Appendix D of the manual. So it should be fairly straightforward to make a batch file that puts Sage into Live TV mode, tunes a specific channel, and issues the Record command, if that's what you're driving at. There is no built-in command to stop recording and keep the partial recording, but there's a multi-function stop plugin that adds that capability. So it should be possible to script that in a similar fashion.

I don't recall whether the web server plugin has this kind of capability, but that might be another way to do it, by using scripts or batch files to send HTTP requests.

Or if all else fails (and if you have the necessary programming skills) you could write a Java plugin that runs in the background on the server and listens on a TCP socket for start/stop record requests (or any other sort of automation you require).

That said, for manually starting and stopping recordings, I find Placeshifter pretty convenient. What specifically are you trying to do that rules out that option?
__________________
-- Greg
Reply With Quote
  #3  
Old 04-16-2008, 11:08 PM
sundansx sundansx is offline
Sage Advanced User
 
Join Date: Aug 2003
Posts: 193
Sage also responds to windows messages through the sendmessage interface. I think there is a util out there that will allow you to send windows messages to it. It might even be called sendmessage. You can also use girder to control sage using the sendmessage interface. See the support page for info on this interface.
Reply With Quote
  #4  
Old 04-17-2008, 03:32 AM
hagur hagur is offline
Sage User
 
Join Date: Feb 2007
Posts: 65
Thanks guys!

The reason I'm asking about this functionality is because most of the time when I'm watching TV, I'm not using SageTV - just my TV hooked up directly to my set-top box. But, my set-top box is also hooked up to my HTPC where the SageTV server is running 24/7.

Therefore, I wanted to be able to start/stop recordings manually whenever I wanted, without actually having to switch over to my HTPC, launch the SageTV GUI or client and start recording from there.

Since this is possible like you have described, I believe I can now do some magic with scripts/automation and execute that directly from my universal remote control.

Thanks,
Haukur H Th.
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
System Lock with HVR-1800 Recording LazyGun Hardware Support 7 03-26-2008 10:42 AM
Weird recording issue with 6.3.9 iammike SageTV Beta Test Software 4 02-28-2008 04:04 PM
OMG. Stop Recording. Not kidding. Stop NOW! joesh SageTV Software 5 02-20-2007 08:32 PM
Question about replacing a SageTV recording BobPhoenix SageTV Studio 3 12-14-2006 11:18 PM
Disappearing recording directories... Kirby SageTV Software 2 05-05-2006 06:37 AM


All times are GMT -6. The time now is 12:15 PM.


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