MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Community Skins and Plugins » MediaPortal Plugins


Reply
 
LinkBack Thread Tools Display Modes
Old 2008-10-25, 15:33   #1 (permalink)
Portal Member
 
Join Date: Feb 2007
Location: Im Harz
Age: 28
Posts: 97
Thanks: 20
Thanked 26 Times in 6 Posts

Country:


Lightbulb Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]

Hi MediaPortal afficinados,

anybody around here using MediaPortal as his/her over-the-counter (but highly addictive) sleeping agent?

Well, I sure as heck do

Ever since I started using MediaPortal some two years ago, I was missing the essential funtionality every cheap old TV has - a simple push-button sleep timer...
So spending one sleepless night I finally managed to program one myself.

So I'd like to share this with you guys.


MySleepTimer - MediaPortal Process Plugin
=========================================

- just install "MySleepTimer.mpi" (should appear in "MediaPortal Plugins-Skins Installer" some time soon as well)
- configure via MediaPortal configuration

- ActionType: Sets the desired MediaPortal Action/Event to trigger and set up the sleep timer inside MediaPortal
- when using the default "ACTION_REMOTE_YELLOW_BUTTON"
- make sure you have your Remote set up to perform this action when pressing this button (the attached config pic shows the DEFAULT configuration - make sure the Action "Remote Yellow Button" is set for ALL CONDITIONS that you need)
- ShutdownType: This is what should happen once the timer elapsed
(- force: this should be handled with care )
- maximum sleep time: Sets the maximum amount of minutes you want to set
- steps: everytime the selected 'action' is performed the sleep time is incremented by this many minutes
- notification interval: Sets the interval for the notification window to pop up telling you how much time is left
- usage inside MediaPortal

- perform the selected 'action' to enable the timer (a little popup window is displayed)
- repeat this action to increase the sleep time
- once you go beyond the maximum sleep time the timer is stopped until you do 'action' once again
- when set a notification window will show you how much time is left
[Update thx to xmats: when there is any type of playback running, the first time you perform 'action' will set the timer to use the remaining playtime + 1 minute. Do 'action' and increase the timer value as usual]

regards,
Anthrax

PS: tell me want you think about it and please don't be shy

@MediaPortal Dev-Team: I noticed some strange behavior when using the WindowsController.ExitWindows() method with standby or hibernate. Setting these results my system to immediately standby/hibernate whenever trying to resume from such state. This loops infinitly
Any chance to get write access to the plugins repository in order to upload the sources there???


Code:
-v1.0.3.0 - Thx to Zdeny there have been some improvements in the timer setup logic inside MediaPortal -v1.0.2.0 - Code redesign, delayed notification, button time out, sleep behavior -v1.0.1.1 - Bugfix Release: fixed the doubled action bug (thx to Paranoid Delusion)
Source Code:
Release site:
Attached Thumbnails
Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]-mysleeptimer_01.png   Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]-mysleeptimer_02.png   Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]-mysleeptimer_03.png   Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]-mysleeptimer_04.png   Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]-mysleeptimer_logo.png  

Updated Plugin: MySleepTimer [Latest Version: 1.0.3.0]-config.png  
Attached Files
File Type: mpi MySleepTimer_1.0.2.0.mpi (160.6 KB, 198 views)
File Type: mpi MySleepTimer_1.0.1.1.mpi (13.8 KB, 64 views)
File Type: mpi MySleepTimer_1.0.3.0.mpi (161.3 KB, 481 views)

Last edited by Anthrax; 2009-04-15 at 10:44..
Anthrax is offline   Reply With Quote
Old 2008-10-25, 16:58   #2 (permalink)
Design Group Member
 
catavolt's Avatar
 
Join Date: Aug 2007
Location: Glashütten (Hochtaunus)
Posts: 1,876
Thanks: 906
Thanked 406 Times in 265 Posts

Country:


Default

Hi Anthrax,

This issue has been solved a loooooong time ago with myAlarm. There you have a button for the sleeptimer. Have a good night!
__________________
Best Regards
catavolt
catavolt is online now   Reply With Quote
Old 2008-10-25, 17:43   #3 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 9,893
Thanks: 409
Thanked 549 Times in 478 Posts

Country:

My System

Default

Anthrax

This is a feature that has been asked for, for a very long time, rtv was going to do one, if my memory servers me correctly, but may not be seen till MP1.0 is out the door.

This really does need to be handled by the menu's inside MP (not everyone has mce remote, doing both would be great) and some sort of visual indicator that it is active, S in corner of screen would be cool, with minutes left even cooler , or maybe a visual time left displayed at your defined interval ie 15mins, saw that in options, do not know how its meant to work, as nothing shown, is there are no graphical changes involved for this to work.

Love the various options that can be set, that definately knocks MyAlarms basic sleeptimer, which if you are dozing off is a pain to access, so very unuser friendly.

Will definately give this a try, just wish i knew what i was setting exactly, because pressing a remote button x amount of times can easily lead to one press to many
__________________
Ray

Fix for "IMDB with AKA" by Deda for MP's internal Movie database.
Check your codecs are fine with Filmerit.
How to post your logs
Paranoid Delusion is offline   Reply With Quote
Old 2008-10-25, 18:02   #4 (permalink)
Portal Member
 
Join Date: Feb 2007
Location: Im Harz
Age: 28
Posts: 97
Thanks: 20
Thanked 26 Times in 6 Posts

Country:


Default

Hi guys,

kinda developed/released this in a hurry so i might've given some more explanations...

@catavolt: that's what i was using ever since - but to be honest and as Paranoid Delusion said: it's a pain in the butt to set up when you're in the twilight zone between awake and asleep

@ Paranoid Delusion: this plugin is not limited to the MCE Remote (just works perfectly on my one). You can set a load of predefined actions in the config screen. Just try "ACTION_PAUSE" (space bar per default) and press this inside MediaPortal some times - then it should all make sense to you, because there is a little notification window popping up as you press space... try pressing it numerous times and you see how easy it would be to set it up. then wait for the notification interval to elapse and keep an close eye on the screen, because there will be a 3sec popup window telling you how much time there is left

bye and good night,
Anthrax
Anthrax is offline   Reply With Quote
Old 2008-10-25, 18:51   #5 (permalink)
Super Moderator
 
Paranoid Delusion's Avatar
 
Join Date: Jun 2005
Location: Cheshire UK
Posts: 9,893
Thanks: 409
Thanked 549 Times in 478 Posts

Country:

My System

Default

Nice, just tried PAUSE, now thats what i mean when i say show in GUI for a couple of secs when time reached, looking good for a plugin that is much wanted

__________________
Ray

Fix for "IMDB with AKA" by Deda for MP's internal Movie database.
Check your codecs are fine with Filmerit.
How to post your logs
Paranoid Delusion is offline   Reply With Quote
Old 2008-10-25, 20:39   #6 (permalink)
Portal Member
 
Join Date: Jul 2006
Posts: 111
Thanks: 2
Thanked 2 Times in 2 Posts


Default

I'm excited ! !!whoop whoop

giving it a go now. This is looooong over due.

Thanks Anthrax
TranceManNZ is offline   Reply With Quote
Old 2008-10-25, 22:46   #7 (permalink)
MP Donator
 
Join Date: May 2008
Age: 28
Posts: 2,285
Thanks: 87
Thanked 262 Times in 116 Posts

Country:

My System

Default

Hi Anthrax

this is a really long time awaited plugin (for me). I'll try it tomorrow.

Here a few features i like:
- define a free key / shortcut on the keyboard for this plugin
- off / sleep time should be displayed on the top left corner when pressing the defined key
- at a specific remaining time (free configurable) a counter should be displayed until shutdown
- that's all :-)
disaster123 is online now   Reply With Quote
Old 2008-10-26, 08:53   #8 (permalink)
MP Donator
 
Join Date: Jan 2008
Posts: 17
Thanks: 5
Thanked 0 Times in 0 Posts

Country:


Default

Been looking for something like this for a while, since I usually fall asleep watching a movie.

Does the plugin take into account if something is playing ? I'd want to set it up to go to sleep/shut down 10 minutes after the movie has stopped playing unless I do something ?
xmats is offline   Reply With Quote
Old 2008-10-26, 09:14   #9 (permalink)
Portal Member
 
Join Date: Feb 2007
Location: Im Harz
Age: 28
Posts: 97
Thanks: 20
Thanked 26 Times in 6 Posts

Country:


Default

Hi xmats,

maybe i dont get your point - why do you want it to shutdown 10 min after the movie is finished?
I bet you are one these guys who wake up just before the final twist of the movie - i wish i would have this skill (no more sitting through the boring part of a movie) ;-)

Anybody else feeling the need for this feature?
How would you like to set it up?
As of now when you go beyond the maximum sleep time the timer stops - so maybe i could fit this setting between reaching the max and stopping the timer?

Last edited by Anthrax; 2008-10-26 at 09:25..
Anthrax is offline   Reply With Quote
Old 2008-10-26, 09:31   #10 (permalink)
MP Donator
 
Join Date: Jan 2008
Posts: 17
Thanks: 5
Thanked 0 Times in 0 Posts

Country:


Default

Hi

I'm not very good at waking up before the movie ends unfortunately :-)

I just don't want to leave the computer on all night after I've fallen asleep and the movie has ended, so I'm looking for a way to shut it off automatically.

I guess I can set the sleeptimer to 5 or 10 minutes longer than the movie is, but it would be nice if the plugin could determine when the movie is playing and suspend countdown during that time, and then when the movie stops and MP returns to the menu, the timer would re-start ?
xmats is offline   Reply With Quote
Reply

Bookmarks

Tags
latest, mysleeptimer, plugin, updated

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Start MediaPortal with MyTV plugin instead of Home plugin str4ng3r Television (MyTV frontend and TV-Server) 2 2008-09-06 17:21
MCE display plugin in cybrdisplay plugin not working in vista? wim168 External Display 4 2008-07-18 09:57
Ein neues Plugin von einem bestehenden Plugin programmiertechnisch ableiten? bartmanson Plugins & Erweiterungen 10 2008-05-19 23:07
VLC Plugin des aktuellen Dreambox Plugin auch funktionierend für das Dbox Plugin ? domy Plugins & Erweiterungen 6 2007-10-13 19:11
memory plugin-newbie plugin dev. questions newbie23 MediaPortal Plugins 13 2005-09-08 20:19


All times are GMT +1. The time now is 10:11.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden