![]() |
|
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. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Utility: PVR Functionality - SageTV Interface to Lights-Out V1.0/1.5 on WHS V1 / 2011
I have written a small utility service that works with the Lights-Out V1.0 Add-in for Windows Home Server and it now also works with Lights-Out V1.5 Beta on both WHS V1 and WHS 2011.
UPDATES: 11 Mar 2011 - Added support for Lights-Out Beta 1.5 on Windows Home Server V1 and 2011. 27 Jan 2010 - Yet another correction to the improved/corrected algorithm introduced in STVLOS versions 1.0.0.30 & 1.0.0.32. Also included is an enhancement to the log file - if you choose a Log Mode of 'Full', the log file now shows a summary of the calendar events and associated recordings. 27 Jan 2010 - Correction to the improved/corrected algorithm introduced in STVLOS version 1.0.0.30 (the logic to ensure that the WHS doesn't hibernate/suspend if the WHS is running and the next scheduled recording is due within the time specified as the 'MinimumDowntime' didn't work correctly.) 23 Jan 2010 - New version with improved/corrected algorithm for determining required uptime (In some instances the WHS was being asked to resume earlier than required). Added additional instructions regarding LightsOut settings. STVLOS version now based lined at 1.0 ![]() 21 Jan 2010 - Enhanced error checking, auto .ini file creation, logfile/backup file retention/deletion added, revised instructions (Version 0.1.0.25) 17 Jan 2010 - Corrected instructions (location of TaskList.xml file) 16 Jan 2010 - Corrected date handling to allow non-UK date formats 12 Jan 2010 - Corrected .ini file [was pointing at wrong location for TaskList.XML file] 09 Jan 2010 - Now available in downloads section: STVLOS LightsOut is a Windows Home Server (WHS) Addin from Axonet software that enables you to specify when your WHS should hibernate / suspend. My utility service reads the SageTV recording schedule and updates the LightsOut calendar to ensure that the WHS remains up when TV programs are being recorded - This means that now my WHS can now be made to behave more like a conventional PVR. The new licensed version of LightsOut can ensure that the WHS stays up if Client PCs or Extenders are active and to get the full benefit you will need the licensed version of LightsOut V1.0. At the moment, I would consider the status of this utility to be Alpha given that I have only tested it on my WHS, it requires a manual install and it is tailored for my requirements ;-) If anyone is interested, I will consider uploading it with instructions on how to use it ![]() Last edited by logsvp; 03-18-2011 at 06:33 AM. Reason: New version (1.0.0.41) released |
#2
|
|||
|
|||
I am very interested. I am running SageTV from a WHS box and I have an older version of LightsOut. It looks like I need to upgrade. I have been waiting for this feature!
|
#3
|
|||
|
|||
Quote:
![]() |
#4
|
|||
|
|||
Any update on this? I'd be interested...
|
#5
|
|||
|
|||
![]()
You spurred me into action
![]() ![]() I have now uploaded it to the downloads section - see STVLOS. Hope it proves useful ![]() |
#6
|
|||
|
|||
Service stops right away
Thanks for the app, it looks promising.
When I start the service I get a message that says that the service started then stopped. then "Some services stop automatically if they have no work to do.... Any ideas? Also my Tasklist.xml is not where your instructions for the .ini file indicated. Mine is here "C:\Documents and Settings\All Users\Application Data\LightsOut So I changed the .ini file to that. Thanks for your help. |
#7
|
||||
|
||||
This does look good, i've always thought it a waste running my whs all night as it records very little during that time.
__________________
Server: Win 10 64bit Core i3 8GB 20TB, TBS6985, TBS6984, Sage 9. Clients: 5 x HD300, 2 x HD200, Placeshifter. |
#8
|
|||
|
|||
Quote:
With regards to the error, I suspect it is because the service can't find the SageTV recording Schedule file. I have just run a test on this and get the symptoms you describe. An error should be posted in the Application event log (navigate to Control Panel > Administrative Tools > Event Viewer > Application). The last part of the error message will say 'The specified file was not found'. This is part of the minimal error checking ![]() So to resolve this, check that the Recording Schedule file exists. Another possibility is that the location of the TaskList.XML file is specified incorrectly in the .ini (i.e. your correction to my error). Double check against the latest download - the .ini file in the download is from my working WHS system. Let me know how you get on and good luck ![]() |
#9
|
|||
|
|||
Event Viewer message
I have recording_schedule.txt in the correct folder and the ini file is correct. here is the event viewer info. It seams to be a problem with a date/time element somewhere. The PC's time and date when I started the service was 9:24Pm on 1/14/2010 and when I started the service again a few minutes later I got the same error with the same date/time in the message.
![]() The description for Event ID ( 0 ) in Source ( STVLOS ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service failed on execute: ''14/01/2010 21:58:00'' is not a valid date and time. |
#10
|
|||
|
|||
Quote:
![]() I will work on a fix and post back here when I upload the correction ![]()
__________________
Server h/w : MB='ASUS P8P67 Pro', CPU='I5 2500K', Mem='8GB', HD='10.0TB', Tuners='BlackGold BGT3500/3550 (6xDVB-T), TBS 6981 (4xDVB-S2)' Server s/w : OS='WIN 7 X64', Services=' DigiGuide, SmartPower, STVSMP, MyMovies', Apps='SageTV 7.1.9, LM DVB Smart Recorder, XMLTV Importer, dvblogic' Client h/w : MB='Gigabyte Z77X-UP5 TH', CPU='i7 3770S', Mem='32GB', HD='10TB' Client s/w : OS='Win8 X64', Apps='SageTV 7.1.9 Client (V7 STV)' Extenders : 2 x HD300 (V7 STV) |
#11
|
|||
|
|||
I have uploaded a new version that has (hopefully) corrected date handling to allow non-UK date formats
![]()
__________________
Server h/w : MB='ASUS P8P67 Pro', CPU='I5 2500K', Mem='8GB', HD='10.0TB', Tuners='BlackGold BGT3500/3550 (6xDVB-T), TBS 6981 (4xDVB-S2)' Server s/w : OS='WIN 7 X64', Services=' DigiGuide, SmartPower, STVSMP, MyMovies', Apps='SageTV 7.1.9, LM DVB Smart Recorder, XMLTV Importer, dvblogic' Client h/w : MB='Gigabyte Z77X-UP5 TH', CPU='i7 3770S', Mem='32GB', HD='10TB' Client s/w : OS='Win8 X64', Apps='SageTV 7.1.9 Client (V7 STV)' Extenders : 2 x HD300 (V7 STV) |
#12
|
|||
|
|||
Thanks for the update
I installed and seems to work great. I really appreciate the effort.
![]() For any users that may need to switch versions, I found that I needed to un-register the service before I could copy the new exe file. 1. Open a command prompt 2. Navigate to the folder containing STVLOS.exe (C:\Program Files\STVLOS) and enter "stvlos.exe /uninstall" (no quotes) 3. Copy STVLOS.exe to this folder 3. enter "stvlos.exe /install" (no quotes) Last edited by GregW; 01-16-2010 at 12:52 PM. |
#13
|
|||
|
|||
I'm following this with interest since I have a WHS Sage server, but haven't yet tried to use LightsOut to manage power on it. My most heavily used clients are an HD100 and an old Hauppauge MediaMVP; does LightsOut play nicely with these devices? Can I configure the server to sleep in S3 and then awaken when the HD100 is powered up?
|
#14
|
|||
|
|||
Quote:
__________________
Server h/w : MB='ASUS P8P67 Pro', CPU='I5 2500K', Mem='8GB', HD='10.0TB', Tuners='BlackGold BGT3500/3550 (6xDVB-T), TBS 6981 (4xDVB-S2)' Server s/w : OS='WIN 7 X64', Services=' DigiGuide, SmartPower, STVSMP, MyMovies', Apps='SageTV 7.1.9, LM DVB Smart Recorder, XMLTV Importer, dvblogic' Client h/w : MB='Gigabyte Z77X-UP5 TH', CPU='i7 3770S', Mem='32GB', HD='10TB' Client s/w : OS='Win8 X64', Apps='SageTV 7.1.9 Client (V7 STV)' Extenders : 2 x HD300 (V7 STV) |
#15
|
|||
|
|||
Quote:
I have spotted one other thing, the Service failing with an I/O error (in the system log) which I think may be to do with LightsOut and STVLOS trying to update the TaskList.XML file at the same time - I have only seen this once but the result was that the service stopped and it wasn't obvious until I double checked the Calendar. It would be worth double checking the LightsOut calendar is correct if you are recording something important that you don't want to lose ![]() I will investigate this further to see if I can add some error handling for this so that the service doesn't stop ![]()
__________________
Server h/w : MB='ASUS P8P67 Pro', CPU='I5 2500K', Mem='8GB', HD='10.0TB', Tuners='BlackGold BGT3500/3550 (6xDVB-T), TBS 6981 (4xDVB-S2)' Server s/w : OS='WIN 7 X64', Services=' DigiGuide, SmartPower, STVSMP, MyMovies', Apps='SageTV 7.1.9, LM DVB Smart Recorder, XMLTV Importer, dvblogic' Client h/w : MB='Gigabyte Z77X-UP5 TH', CPU='i7 3770S', Mem='32GB', HD='10TB' Client s/w : OS='Win8 X64', Apps='SageTV 7.1.9 Client (V7 STV)' Extenders : 2 x HD300 (V7 STV) |
#16
|
|||
|
|||
I've followed the instructions and installed the software. Everything appears to install properly, but when I start the service, it starts and then stops immediately. Is this working as designed? (I'm guessing not). Might it have something to do with the fact that I'm still running LightsOut in evaluation, and have not yet purchased a license?
|
#17
|
|||
|
|||
At the moment the error checking is minimal
![]() Have you downloaded the latest version - The first version only worked with UK dates - if you aren't from the UK this could cause a problem - the latest version corrected this (V 0.1.0.22). I am currently working on improved error checking which should make it easier to tell what problems are caused by.
__________________
Server h/w : MB='ASUS P8P67 Pro', CPU='I5 2500K', Mem='8GB', HD='10.0TB', Tuners='BlackGold BGT3500/3550 (6xDVB-T), TBS 6981 (4xDVB-S2)' Server s/w : OS='WIN 7 X64', Services=' DigiGuide, SmartPower, STVSMP, MyMovies', Apps='SageTV 7.1.9, LM DVB Smart Recorder, XMLTV Importer, dvblogic' Client h/w : MB='Gigabyte Z77X-UP5 TH', CPU='i7 3770S', Mem='32GB', HD='10TB' Client s/w : OS='Win8 X64', Apps='SageTV 7.1.9 Client (V7 STV)' Extenders : 2 x HD300 (V7 STV) |
#18
|
|||
|
|||
Yes, I'm using the latest version. Here's the event description, I'm afraid it's over my head:
The description for Event ID ( 0 ) in Source ( STVLOS ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Service failed on execute: The specified file was not found. |
#19
|
|||
|
|||
Quote:
Double check that you have got a Tasklist.xml file in folder C:\Documents and Settings\All Users\Application Data\LightsOut and that the .ini file has got the line LightsOut=C:\Documents and Settings\All Users\Application Data\LightsOut\TaskList.xml. The ini file shipped with the latest version is correct but the initial one wasn't. I have also realised (after just checking) that the instructions specify the wrong location for this file ![]() Also check that SageTV has created a recording schedule file and that the .ini file points at it - check the location and the line in the ini file e.g. SageTV=C:\Program Files\SageTV\SageTV\recording_schedule.txt. Hopefuly this will resolve the issue ![]()
__________________
Server h/w : MB='ASUS P8P67 Pro', CPU='I5 2500K', Mem='8GB', HD='10.0TB', Tuners='BlackGold BGT3500/3550 (6xDVB-T), TBS 6981 (4xDVB-S2)' Server s/w : OS='WIN 7 X64', Services=' DigiGuide, SmartPower, STVSMP, MyMovies', Apps='SageTV 7.1.9, LM DVB Smart Recorder, XMLTV Importer, dvblogic' Client h/w : MB='Gigabyte Z77X-UP5 TH', CPU='i7 3770S', Mem='32GB', HD='10TB' Client s/w : OS='Win8 X64', Apps='SageTV 7.1.9 Client (V7 STV)' Extenders : 2 x HD300 (V7 STV) Last edited by logsvp; 01-18-2010 at 08:55 AM. Reason: spelling correction |
#20
|
|||
|
|||
The files are there. Tried to start the service again, and it worked this time. No idea why it didn't before, but it seems to be resolved. Thanks!
Now if I could wake the server when I power on the HD100, we'd really have something. I do have a router running DD-WRT -- is there any way to achieve this functionality? |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Does STV have a Browser- or Utility-based interface for advanced settings? | Savage1701 | SageTV Software | 4 | 07-08-2009 01:27 PM |
Question about possible functionality of SageTV | SGA | SageTV Software | 16 | 09-20-2008 04:57 AM |
Using HD-PVR, WHS, and SageTV Client | Beefcake550 | SageTV Software | 2 | 08-14-2008 01:16 PM |
Web Interface integration on WHS | JohnBCasey | SageTV Customizations | 4 | 04-09-2008 05:39 AM |
DD5.1 and PVR Functionality | ftlee | General Discussion | 5 | 03-04-2003 02:28 PM |