SageTV Community  

Go Back   SageTV Community > Downloads > STVi Imports

Latest Files
Latest Files
Most Popular Files
Most Popular Files
Top Contributors
Top Contributors

Important Information
  • Use these files at your own risk!
  • Enjoy
  
Navigation
Main | Category Tree | Stats | Search
Downloads [Download Sleep Timer v1.3]
File Name: Sleep Timer v1.3 (181.4 KB) Download
Author: flachbar (Uploaded by flachbar)
Date Added: 03-11-2006
Downloads: 1090
Description
******************************
Sleep Timer (SageMC and default STV)
******************************

Updated: 2/23/2008

This plugin adds a simple sleep timer to SageTV, and works with the standard STV as well as with SageMC. The timer menu is accessible via the OSD Options menu, and can also be linked to any menu page via nielm's dynamic menus import. The usage should be straight forward, you can set sleep times of 15, 30, 60, and 90 minutes (the times are configurable) by selecting the corresponding button in the menu. The "Left" command cancels the dialog without any changes and brings you back to the previous menu.

Once the timer fires it will pop up a confirmation screen which will stay up for 15 seconds. There you can
  • Confirm the sleep request, Sage will go to sleep immediately
  • Cancel the timer
  • Extend the timer by multiple of 15 minutes (by cycling with "Left" or "Right" while on the corresponding button)
If you don't make any selection within 15 seconds, the confirmation screen will close itself, and Sage will go to sleep.

Optionally, you can configure the timer to execute a command line when it puts Sage to sleep. Add the following settings to Sage.properties:
  • plugins/df/SleepTimer/cmd the command line to execute
  • plugins/df/SleepTimer/cmd_args command line parameters (optional)
  • plugins/df/SleepTimer/cmd_workdir working directory for command (optional)
e.g.:

plugins/df/SleepTimer/cmd=C\:\\WINDOWS\\system32\\notepad.exe
plugins/df/SleepTimer/args=E:\\Program Files\\readme.txt


New in V0.6: if you want to ensure that SageTV always goes to sleep at at a specific time, you can enable a 'global' timer by setting the property plugins/df/SleepTimer/global_timer to a time in 24hr format, e.g.

plugins/df/SleepTimer/global_timer=23:30

The global timer will get activated once you start SageTV and put Sage to sleep every day at the specified time. If the standard sleep timer is active, it will override the global one. So e.g. if the global timer is set to 23:00, and you activate the standard timer at 20:00 to sleep in 90 minutes, Sage will enter sleep at 21:30, and the global timer will fire again at 23:00 on the next day. Don't worry if you don't need this functionality, it is disabled by default.

New in V0.7: you can send multiple IR commands via USB-UIRT when the timer fires. To configure the new commands, add the following properties to your Sage.properties (actual values are only examples):

plugins/df/SleepTimer/infrared_cmd0=TV_OFF
plugins/df/SleepTimer/infrared_cmd1=RCVR_OFF
plugins/df/SleepTimer/infrared_cmd2=
plugins/df/SleepTimer/infrared_cmd3=
plugins/df/SleepTimer/infrared_cmd4=
plugins/df/SleepTimer/tuning_plugin=E\:\\Video\\SageTV\\Common\\uu_irsage.dll
plugins/df/SleepTimer/plugin_port=0
plugins/df/SleepTimer/remote_name=Explorer3100

You can find the required parameters in the appropriate encoder section in your Sage.properties:
  • set tuning_plugin to mmc/encoders/[...]/tuning_plugin
  • set plugin_port to mmc/encoders/[...]/tuning_plugin_port
  • set remote_name to mmc/encoders/[...]/device_name
Then add the IR commands you want to send in the source setup for your tuning control (Setup Video Sources -> Select Source -> Tuner Control -> Learn New Command), and enter the name of the command into the infrared_cmd property in Sage.properties, e.g.

plugins/df/SleepTimer/infrared_cmd0=TV_OFF

if you have learned a new command "TV_OFF" for your USB-UIRT. You can specify up to 5 commands in Sage.properties, which will be sent via USB-UIRT in 1 second intervals.


Forum thread:
http://forums.sagetv.com/forums/showthread.php?t=16310



Installation :
  • unzip the installation file into SageTV directory (e.g. C:\Program Files\SageTV\SageTV). Make sure to preserve the directory structure. This will copy gkusnick.sagetv.jar, df_safgeutils.jar, and df_sleep_timer.jar to JARs and sleep_timer.xml to STVs\SageTV3
  • restart SageTV
  • make a backup of your current STV file
  • import sleep_timer.xml: Settings->Import STVi (SageMC), or sleep_timer_default_stv.stv (Default STV)
If you want to link the timer using nielm's dynamic menus do the following:
  • install nielm's dynamic menu import (http://www.sage-community.org/index....icMenu#preview)
  • go to the menu where you want to add the timer
  • bring up the options menu of nielm's dynamic menu
  • select 'Edit this menu page'
  • select 'Add menu item'
  • select 'Add internal screen' and select 'Sleep Timer'
  • enter a name for the menu
  • make sure to save the menu definition file
Configuration:

The following options can be configured in Sage.properties (or SageClient.properties if you use the client) :
  • plugins/df/SleepTimer/sleep_times comma separated list of 4 sleep durations, default is 15,30,60,90
  • plugins/df/SleepTimer/link_to_OSD set to 'false' if you don't want the button in the OSD options menu
  • plugins/df/SleepTimer/cmd command line to execute when timer fires
  • plugins/df/SleepTimer/cmd_args command line parameters (optional)
  • plugins/df/SleepTimer/cmd_workdir working directory for command (optional)
  • plugins/df/SleepTimer/global_timer time for global timer in 24hr format HH:MM
Examples:

plugins/df/sleepTimer/sleep_times=5,10,15,30
plugins/df/sleepTimer/link_to_OSD=false
plugins/df/SleepTimer/cmd=C\:\\WINDOWS\\system32\\notepad.exe
plugins/df/SleepTimer/cmd_args=E:\\Program Files\\readme.txt
plugins/df/sleepTimer/global_timer=23:30



Version history:

v0.3:
- initial version

v0.4:
- added link to OSD options menu
- made menu transparent

v0.5:
- fixed transparency for menu when linked via dynamic menus
- added optional command line execution on sleep

v0.6:
- incorporated SageMC support into the same import file
- added configuration for sleep durations
- added global timer
- show status of timer after confirmation dialog is closed

v0.7:
- new controls allow to set a specific time (standard STV only)
- send up to 5 commands via USB-UIRT when Sage is entering sleep

v0.8:
- fixed options menu for SageMC

v0.9:
- fixed name of link_to_OSD property name, did not have prefix "plugins/df"
- include new version of import library which fixes incorrect import on MVPs using SageMC
- moved code into separate JAR file, df_sageplugins.jar no longer needed for this plugin

v1.0:
- fixed incompatibility with SageMC 6.10
- added functionality to set specific time to SageMC version

v1.1:
- now compatible with SageTV 6.0 beta and SageMC 6.13

v1.2:
- included latest mod by JREKiwi for default STV
- tested compatibility with SageMC 6.3.4
- packaged new JAR files (now requiring Java 1.6)

v1.3:
- now compatible with SageMC 6.3.7+
Images
Sleep Timer v1.3 by flachbar on 03-11-2006
Sleep Timer v1.3 by flachbar on 03-11-2006
Sleep Timer v1.3 by flachbar on 03-15-2006
Sleep Timer v1.3 by flachbar on 03-11-2006
Sleep Timer v1.3 by flachbar on 03-11-2006
Downloads [Download Sleep Timer v1.3]


DownloadsII 5.1.1 by CyberRanger & Jelle
Based on ecDownloads 4.1 © Ronin

All times are GMT -6. The time now is 12:42 AM.


Powered by vBulletin® Version 3.7.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2003-2005 SageTV, LLC. All rights reserved.