SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV v7 Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV v7 Customizations This forums is for discussing and sharing user-created modifications for the SageTV version 7 application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss plugins for SageTV version 7 and newer.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-23-2010, 01:25 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Basic Sleep Timer for SageTV V7

This is a basic sleep timer that is accessible from the video playback screen of SageTV V7. I tried to recreate the sleep timer that was available for SageMC as an addon. I used the plug in all the time, and could not live without it

1. From Media Player screen select options
2. From options menu select Sleep Timer
3. Select time for when Sage should go to sleep
4. To cancel select the off value

When the timer is up it puts sage to sleep using the sage command "Power Off".

Let me know if you see any issues.

Thanks,
Josh

Release Notes:
1.0.0 - Inital build
1.1.3 - Added and option to cancel when sage is about to go to sleep.
- Changed the sleep command from SageCommand("Power Off") -> Exit()

Last edited by jvl711; 05-26-2010 at 06:27 PM.
Reply With Quote
  #2  
Old 05-23-2010, 01:47 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
cool, thanks for that.
now, for an advanced sleep timer, perhaps port over the auto-sleep timer that automatically sleeps Sage if you don't touch the remote for a certain length of time.
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #3  
Old 05-26-2010, 03:28 AM
chrisc983 chrisc983 is offline
Sage Advanced User
 
Join Date: Mar 2006
Posts: 229
When I use the timer it puts the screen saver on instead of turning it off. Is their another option I need to change to make it turn off the hd200? or does this not work with the hd200? Thanks.
__________________
Sage WHS - Intel Q6700, 4GB, Norco 5 bay hot swap x2, WD Black(OS), 6TB (dvd, bluray, music, pictures, videos) LG Blu-ray player, HVR-1600 x2 OTA
SageMC 6.3.9b pre-release 23
HD200: 46" LCD & HD200:26" LCD
Reply With Quote
  #4  
Old 05-26-2010, 05:56 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by chrisc983 View Post
When I use the timer it puts the screen saver on instead of turning it off. Is their another option I need to change to make it turn off the hd200? or does this not work with the hd200? Thanks.
I do not know if there is a way to turn off the HD200 from an STV. If anyone knows how to do this please let me know. The main reason for this plugin was to stop an HD200 from recording live tv when I go to sleep. It does full fill that, but I would prefer if it could shut of the HD200.
Reply With Quote
  #5  
Old 05-26-2010, 06:26 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
New version should be up in the repository shortly.

1.0.0 - Inital build
1.1.3 - Added and option to cancel when sage is about to go to sleep.
- Changed the sleep command from SageCommand("Power Off") -> Exit()

Now the sleep timer turns of HD100/HD200 when timer is up. Using Exit() command.
Reply With Quote
  #6  
Old 05-26-2010, 11:25 PM
chrisc983 chrisc983 is offline
Sage Advanced User
 
Join Date: Mar 2006
Posts: 229
Thanks for that tweak, works great. This just reminds me again of why I love the Sage Community especially the devs. Post request and if its possible they will make it happen. I was thinking about getting Tivo Premiere but probably not after using v7.
__________________
Sage WHS - Intel Q6700, 4GB, Norco 5 bay hot swap x2, WD Black(OS), 6TB (dvd, bluray, music, pictures, videos) LG Blu-ray player, HVR-1600 x2 OTA
SageMC 6.3.9b pre-release 23
HD200: 46" LCD & HD200:26" LCD
Reply With Quote
  #7  
Old 05-27-2010, 07:38 AM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by chrisc983 View Post
Thanks for that tweak, works great. This just reminds me again of why I love the Sage Community especially the devs. Post request and if its possible they will make it happen. I was thinking about getting Tivo Premiere but probably not after using v7.
You are welcome! Sleep timer was something I could not live without.
Reply With Quote
  #8  
Old 05-29-2010, 02:44 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by jvl711 View Post
New version should be up in the repository shortly.

1.0.0 - Inital build
1.1.3 - Added and option to cancel when sage is about to go to sleep.
- Changed the sleep command from SageCommand("Power Off") -> Exit()

Now the sleep timer turns of HD100/HD200 when timer is up. Using Exit() command.
can you make it so that this is selectable between Exit and Power Off? I use this on a PC and don't need the sleep timer to exit the SageTV program, just put it to sleep.

In addition, is there a way to revert back to 1.0.0?
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.

Last edited by ke6guj; 05-29-2010 at 02:49 PM.
Reply With Quote
  #9  
Old 05-30-2010, 03:03 AM
CANightHawk CANightHawk is offline
Sage User
 
Join Date: Jul 2008
Posts: 54
I agree with ke6guj -- I too use the Sleep Timer on a PC -- and imagine my shock when I woke up in the middle of the night with flooding light coming from the TV because it had quit to the desktop instead of sleeping SageTV ..

I thought the idea was to lull me off to sleep, not make me think that aliens were invading

A preference item or switch of some sort would be nice. OR two separate plugins: "Sleep Timer for PC", "Sleep Timer for HD200".

Cheers
Reply With Quote
  #10  
Old 05-30-2010, 11:22 PM
chrisc983 chrisc983 is offline
Sage Advanced User
 
Join Date: Mar 2006
Posts: 229
also if possible if their is way to have the hd200 turn off after a certain time of inactivity would be great as well. Thanks.
__________________
Sage WHS - Intel Q6700, 4GB, Norco 5 bay hot swap x2, WD Black(OS), 6TB (dvd, bluray, music, pictures, videos) LG Blu-ray player, HVR-1600 x2 OTA
SageMC 6.3.9b pre-release 23
HD200: 46" LCD & HD200:26" LCD
Reply With Quote
  #11  
Old 05-31-2010, 03:39 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by CANightHawk View Post
I agree with ke6guj -- I too use the Sleep Timer on a PC -- and imagine my shock when I woke up in the middle of the night with flooding light coming from the TV because it had quit to the desktop instead of sleeping SageTV ..

I thought the idea was to lull me off to sleep, not make me think that aliens were invading

A preference item or switch of some sort would be nice. OR two separate plugins: "Sleep Timer for PC", "Sleep Timer for HD200".

Cheers
Even if I sleep Sage it will go to the desktop, and Sage will go to the task tray. Is this not what you wanted? Do you want an option to just stop playback?

I will add an option to select Sleep/Turn Off. I am going to default it to Turn Off though. Let me know if you think it needs a stop playback option as well.
Reply With Quote
  #12  
Old 05-31-2010, 03:42 PM
jvl711's Avatar
jvl711 jvl711 is offline
Sage Fanatic
 
Join Date: Jan 2004
Posts: 825
Quote:
Originally Posted by chrisc983 View Post
also if possible if their is way to have the hd200 turn off after a certain time of inactivity would be great as well. Thanks.
I will think about writing this, you are now the second person who has asked for it. I want to add it as another plugin though. I think I might make it as another Screen Saver Option. That way I am already using the built in hooks for inactivity.

Would it be OK if it did not Turn Off/Sleep Sage when MediaPlayer is in use. That is the way screen saver currently works.
Reply With Quote
  #13  
Old 05-31-2010, 03:47 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by jvl711 View Post
Even if I sleep Sage it will go to the desktop, and Sage will go to the task tray. Is this not what you wanted? Do you want an option to just stop playback?

I will add an option to select Sleep/Turn Off. I am going to default it to Turn Off though. Let me know if you think it needs a stop playback option as well.
however you had 1.0.0 set up was fine. It did not send Sage to the task tray and show the desktop, playback just stopped and the screen saver just came on
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #14  
Old 05-31-2010, 03:51 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
Quote:
Originally Posted by jvl711 View Post
I will think about writing this, you are now the second person who has asked for it. I want to add it as another plugin though. I think I might make it as another Screen Saver Option. That way I am already using the built in hooks for inactivity.

Would it be OK if it did not Turn Off/Sleep Sage when MediaPlayer is in use. That is the way screen saver currently works.
the way the auto sleep timer worked was that if you were watching a show and did not touch the remote for a period of time (say two hours), that it would automatically sleep Sage. The reason it worked this way was that if you left Sage on to go to sleep, it would automatically sleep sage after a couple hours. YOu wouldn't need to manually set the timer to do this. Also, some people don't think to stop LiveTV when they turn off the TV and leave the house. With autosleep, it automatically sleeps Sage after a couple hours so that you don't have Sage markng a ton of show watched just because Sage was left playing LiveTV.
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #15  
Old 01-06-2011, 12:04 PM
Tomahawk51's Avatar
Tomahawk51 Tomahawk51 is offline
Sage Aficionado
 
Join Date: Oct 2005
Posts: 320
I've been loving the plugin, so thanks for making it. I wonder if you have any input or suggestions for this scenario:

It's tough to program a remote control macro due to the Options menu seemingly changing the number of items it displays (e.g. Comskip sometimes is there, if it ran). Is there another way to more reliably bring up the Sleep Timer dialog in Sage than: (hit option, hit down 7 times, hit enter ....).

Background:
I use an HD100 and want to set my TV and Sage to sleep. It works great if I go through separate steps on either remote every-time. I programmed my Harmony remote to do this for the TV, and Sage, but the number of down arrow commands in the options menu changes with context of differing shows.

Off topic -
My wife reported that if she plays a folder of shows she didn't think the sleep timer worked. Not sure as I didn't try to replicate that. Not a big deal anyway.
Reply With Quote
  #16  
Old 02-19-2011, 01:06 AM
gregmac gregmac is offline
Sage User
 
Join Date: Jun 2009
Location: Kingston
Posts: 32
This is a handy plugin, I use it on my bedroom HD300 all the time. Great job.

However, I have a request.. Since I use comskip and/or watch video files, shows are typically ~22 or ~44 minutes. Doesn't really line up with the 15, 30 or 60 minutes I have to choose, and I've found myself awake staring at the menu screen a couple of times (Not sure why, a show in the background puts me mostly to sleep, but the bright light and no sound seems to get my attention). I'm not sure what the best user experience would be though to change this..

I had 3 ideas:
  • Allow the list of times to be customized somehow. (This seems complex, as it would either require a whole bunch of UI added, or require messy editing of the .properties files)
  • Add an entry (and maybe remove some of the existing entries) for "Enter time manually". This would prompt the user to enter a time themselves.
  • Add an option "Sleep when current recording is finished". This would just sleep as soon as whatever you're watching ends. This is nice as it removes the need to even think about time left. Giving the user a few seconds to cancel would probably be good..
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
Sleep Timer in SageMC jbilich SageMC Custom Interface 3 12-02-2006 01:40 AM
Sleep timer can't switch off MVP ? Gaurav SageTV Media Extender 1 06-17-2006 08:34 AM
Sage Sleep Timer walts81 SageTV Customizations 10 09-17-2005 08:34 PM
Problem with sleep timer budgie SageTV Customizations 1 08-22-2005 07:42 PM
Sleep Timer sharker SageTV Software 0 02-18-2005 02:05 PM


All times are GMT -6. The time now is 01:28 PM.


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