home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Talk
TV-Server on WHS - Collection of fixes and workarounds
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="yhoogi" data-source="post: 503122" data-attributes="member: 69599"><p><strong>WHS Power Management & TV Service Scheduler</strong></p><p></p><p><strong>Topic: Power Management & Scheduled Records with automatic WHS Wakeup </strong></p><p></p><p></p><p><strong>For:</strong> all versions</p><p></p><p><strong>Ref:</strong> See </p><ul> <li data-xf-list-type="ul"> Ref-1: <a href="http://www.home-server-blog.de/add-ins/strom-und-laufzeitverwaltung/lightsout/#en" target="_blank">LightsOut Power Management & Scheduler</a></li> <li data-xf-list-type="ul"> Ref 2: <a href="http://forum.home-server-blog.de/viewtopic.php?f=38&t=4974&start=0" target="_blank">WHS Blog Wakeup Script with LightsOut</a></li> </ul><p></p><p><strong>Description:</strong> </p><p>LightsOut as a nice power management AddIn with a calender and client presence monitoring function. Main features are:</p><ul> <li data-xf-list-type="ul"> Scheduled wakeup and power down (shut-Down/Sleep/Hibernate) of the WHS</li> <li data-xf-list-type="ul"> Automatic wake-up (via client software/WOL) and stay awake in case an approved client is present</li> <li data-xf-list-type="ul"> Shutdown / Start-Up services during before/at end of power down periods (e.g. TV-Service )</li> </ul><p></p><p>A documentation is available on the Web-Site (see Ref1)</p><p></p><p>A forum member wrote a handy <a href="http://forum.home-server-blog.de/viewtopic.php?f=38&t=4974&start=0" target="_blank">script</a> running in the background and updating the task scheduler for wake-up in time of a programmed record by regularly checking the SQL server TV-record database.</p><p>I would like to express my thanks to him as the script is rather powerful, providing not only TV record schedule, but also further features, like process monitoring (more to come).</p><p><strong>Hi Larry, keep up the good work!</strong></p><p>If I am not mistaken, he is also available in the German MP forum <a href="https://forum.team-mediaportal.com/plugins-erweiterungen-178/progr-aufnahmen-whs-lightsout-kalender-uebertragen-51231/#post350223" target="_blank">WHS Script</a>, but it seems like the script is only maintaned in (Ref2) with the newest features.</p><p></p><p></p><p></p><p>Installation</p><ul> <li data-xf-list-type="ul"> Install LightsOut on WHS as AddIn</li> <li data-xf-list-type="ul"> Install the LightsOut Client on all required clients (available in the WHS Software Folder)</li> <li data-xf-list-type="ul"> In the LightsOut Settings include in the "Start/Stop these services on Suspend/Resume" enter "TVService" (This will shut down and restart the TV-Service = no issues due to hibernate/standby of the TV server) </li> <li data-xf-list-type="ul"> Put the latest script available under (Ref2 = "WHS_LO_Erw.vbs") in a subfolder on C:\ (e.g. c:\scripts)</li> <li data-xf-list-type="ul"> Modify the following section (at least):<br /> <p style="margin-left: 20px"><br /> '**************************************************************<br /> 'Einstellungen<br /> '**************************************************************<br /> 'Logs / Debug<br /> Log=1 'Set 1 for Logfiles 0=no log<br /> Logpfad="c:\" 'Logfile path<br /> <br /> 'Für LightsOut<br /> Aktion=2 'Lightsout power down mode 0=no power down, 1=Standby, 2=Hibernate, 3=ShutDown<br /> <br /> 'for TaskScheduler<br /> PLUser= "<WHS Admin account ; normally Administrator>" 'e.g. "Administrator"<br /> PLPW= "<Your Admin Password>"<br /> <br /> 'For Mediaportal<br /> CheckMP= 1 'for use without Mediaportal =0 ; qith MP = 1<br /> SQLServer= "<ServerName\SQLEXPRESS>" ' e.g. "MyWHS\SQLEXPRESS"<br /> SQLUser= "sa"<br /> SQLPW= "MediaPortal"<br /> DWH= "MpTvDb"<br /> Zeitdiff = 8 'No. Number of Minutes before record<br /> </p> There are further options, but I would like to keep the merits to the author (as well as bug reports <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" /> )<br /> </li> <li data-xf-list-type="ul"> at first run of the script a new task is created which needs to be modified:<ul> <li data-xf-list-type="ul"> open Scheduled Tasks </li> <li data-xf-list-type="ul"> open properties of "MP_Aufnahmen"</li> <li data-xf-list-type="ul"> enable on the advanced properties that the Computer shall be reactivated for task execution</li> <li data-xf-list-type="ul"> disable that the task shall be terminated after a certain period </li> </ul></li> <li data-xf-list-type="ul"> Create a new task for "WHS_LO_Erw.vbs" with the following settings:<ul> <li data-xf-list-type="ul"> Task shall be run at System Start (to ensure to start the scheduler during bootup)</li> <li data-xf-list-type="ul"> Enter your admin account & password</li> </ul></li> </ul><p></p><p>Thats it</p><p></p><p>Cheers</p><p></p><p></p><p>Edit: For clarification:</p><p>The script does not create calender entries in LightsOut. It is purely handled via the scheduler, waking up the WHS at scheduled event (in time for the recording) and keeping him awake for the duration of the recording</p><p>Standby/Hibernate is initiated by the LO conditions (e.g. 10min without LO client available)</p><p>There are some other conditions in the script to keep the WHS awake, like for specified IP addresses present (means some other computer), if a specific task is run (e.g. start of internet explorer), etc. - but thats another story.</p></blockquote><p></p>
[QUOTE="yhoogi, post: 503122, member: 69599"] [b]WHS Power Management & TV Service Scheduler[/b] [B]Topic: Power Management & Scheduled Records with automatic WHS Wakeup [/B] [B]For:[/B] all versions [B]Ref:[/B] See [LIST] [*] Ref-1: [URL="http://www.home-server-blog.de/add-ins/strom-und-laufzeitverwaltung/lightsout/#en"]LightsOut Power Management & Scheduler[/URL] [*] Ref 2: [URL="http://forum.home-server-blog.de/viewtopic.php?f=38&t=4974&start=0"]WHS Blog Wakeup Script with LightsOut[/URL] [/LIST] [B]Description:[/B] LightsOut as a nice power management AddIn with a calender and client presence monitoring function. Main features are: [LIST] [*] Scheduled wakeup and power down (shut-Down/Sleep/Hibernate) of the WHS [*] Automatic wake-up (via client software/WOL) and stay awake in case an approved client is present [*] Shutdown / Start-Up services during before/at end of power down periods (e.g. TV-Service ) [/LIST] A documentation is available on the Web-Site (see Ref1) A forum member wrote a handy [URL="http://forum.home-server-blog.de/viewtopic.php?f=38&t=4974&start=0"]script[/URL] running in the background and updating the task scheduler for wake-up in time of a programmed record by regularly checking the SQL server TV-record database. I would like to express my thanks to him as the script is rather powerful, providing not only TV record schedule, but also further features, like process monitoring (more to come). [B]Hi Larry, keep up the good work![/B] If I am not mistaken, he is also available in the German MP forum [URL="https://forum.team-mediaportal.com/plugins-erweiterungen-178/progr-aufnahmen-whs-lightsout-kalender-uebertragen-51231/#post350223"]WHS Script[/URL], but it seems like the script is only maintaned in (Ref2) with the newest features. Installation [LIST] [*] Install LightsOut on WHS as AddIn [*] Install the LightsOut Client on all required clients (available in the WHS Software Folder) [*] In the LightsOut Settings include in the "Start/Stop these services on Suspend/Resume" enter "TVService" (This will shut down and restart the TV-Service = no issues due to hibernate/standby of the TV server) [*] Put the latest script available under (Ref2 = "WHS_LO_Erw.vbs") in a subfolder on C:\ (e.g. c:\scripts) [*] Modify the following section (at least): [INDENT] '************************************************************** 'Einstellungen '************************************************************** 'Logs / Debug Log=1 'Set 1 for Logfiles 0=no log Logpfad="c:\" 'Logfile path 'Für LightsOut Aktion=2 'Lightsout power down mode 0=no power down, 1=Standby, 2=Hibernate, 3=ShutDown 'for TaskScheduler PLUser= "<WHS Admin account ; normally Administrator>" 'e.g. "Administrator" PLPW= "<Your Admin Password>" 'For Mediaportal CheckMP= 1 'for use without Mediaportal =0 ; qith MP = 1 SQLServer= "<ServerName\SQLEXPRESS>" ' e.g. "MyWHS\SQLEXPRESS" SQLUser= "sa" SQLPW= "MediaPortal" DWH= "MpTvDb" Zeitdiff = 8 'No. Number of Minutes before record [/INDENT] There are further options, but I would like to keep the merits to the author (as well as bug reports :P ) [*] at first run of the script a new task is created which needs to be modified: [LIST] [*] open Scheduled Tasks [*] open properties of "MP_Aufnahmen" [*] enable on the advanced properties that the Computer shall be reactivated for task execution [*] disable that the task shall be terminated after a certain period [/LIST] [*] Create a new task for "WHS_LO_Erw.vbs" with the following settings: [LIST] [*] Task shall be run at System Start (to ensure to start the scheduler during bootup) [*] Enter your admin account & password [/LIST] [/LIST] Thats it Cheers Edit: For clarification: The script does not create calender entries in LightsOut. It is purely handled via the scheduler, waking up the WHS at scheduled event (in time for the recording) and keeping him awake for the duration of the recording Standby/Hibernate is initiated by the LO conditions (e.g. 10min without LO client available) There are some other conditions in the script to keep the WHS awake, like for specified IP addresses present (means some other computer), if a specific task is run (e.g. start of internet explorer), etc. - but thats another story. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Talk
TV-Server on WHS - Collection of fixes and workarounds
Contact us
RSS
Top
Bottom