|
SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Linux suspend / resume script?
Does anybody have a suspend / resume script for Linux that looks at the upcoming sagetv recordings, and sets a machine to wake up ~5 minutes prior to the next scheduled recording?
Due to a recent policy change at work, I'm no longer allowed to work remotely using my own hardware, which means that my nice Xeon workstation / SageTV server is sitting idle during the day while I work on a crappy thinkpad. I was thinking it would be nice to suspend / resume the Xeon, based on the SageTV recording schedule. Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#2
|
||||
|
||||
I don't have a script... but you can use the sagex remote apis combined with wget and awk/sed to find the time of the next recording...
Code:
http://192.168.1.10:8080/sagex/api?c=EvaluateExpression&1=GetElement(GetScheduledRecordings(),0)&encoder=json&filter=ScheduleStartTime I don't know if that helps...
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#3
|
|||
|
|||
EDIT: That's perfect, it even seems to output the date in a nice format!
Thanks! Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) Last edited by drewg; 04-14-2013 at 06:30 PM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ComChecker for Linux/Mac Script Version | bcjenkins | SageTV Customizations | 10 | 04-30-2010 03:01 PM |
S3 Suspend And Resume Issue. | Nick_W | SageTV Software | 5 | 10-22-2009 07:57 PM |
Script/Program to STOP/RESUME Process | joe123 | SageTV Customizations | 2 | 03-10-2009 03:14 PM |
Utility: Linux/OS X batch beta firmware upgrade script | bcjenkins | SageTV Customizations | 3 | 08-13-2008 07:08 AM |
Suspend and resume with SageTV | mwhitlock | SageTV Software | 340 | 03-16-2006 11:18 AM |