MySleepTimer (1 Viewer)

smurf

Portal Member
April 12, 2009
48
8
I don't know what I done but now it works! Thank you for your support!
 

Tropics

Portal Member
April 13, 2009
24
2
Home Country
Austria Austria
@Anthrax
i don't use MCE Remote. I'm using IMON where i've set up a specific keyboard key or shortcut.

Maybe I can help for IMON-users:

I did it this way:

1. In MP Plugin configuration I chose Action_Type "ACTION_TOGGLE_MUSIC_GAP" wich I don't need at all. This Function is normally mapped to Keyboard "G" inside MP.

2. In IMON Manager I now defined a function called "SleepTimer", using Keybord "G" and mapped it to the "Timer"-key on my remote. Works perfect and has even the right keyname on the remote control :D

is this really a good idea? that way you are always toggling music playback behaviour when using the Timer button. i don't need a key for "toggle music gap" but afaik you can't disable that the bass player responds to that action. i would need an action which has no side effects.

maybe there is a possibility for the plugin to add a new action when installing, that would be the ideal way i guess.
 

Tropics

Portal Member
April 13, 2009
24
2
Home Country
Austria Austria
i use action_show_msn_osd now, seems to work and can't have any side effects for me. however, i still think the plugin should define its own action. or just tell me there is no way to do that ;)
 

Anthrax

Portal Pro
February 15, 2007
157
48
pretty much in the center
Home Country
Germany Germany
Hello Tropics,

oh damn, you just found my weak spot ;)

I would love to have that special action as well (i.e. SET_MYSLEEPTIMER) but this would lead to (little) changes within the MediaPortal code imho :(

So this one goes out to the devs once again:
What would it take to sqeeze a new ActionType into the internal enumeration??? Am I able to do this on my behalf - guess not...
 

Tropics

Portal Member
April 13, 2009
24
2
Home Country
Austria Austria
i had a look at the mediaportal source code and, as i guess you already know, all the actions are defined as a enum in a source file. i don't think there is a way to change that during runtime (but i know nothing of c#, i'm more into c++). ideally it should be more like a lookup table where plugins can add their own stuff.

however, there are quite some things in there which are not part of the core, like the before mentioned ACTION_SHOW_MSN_OSD. maybe you can get them to add ACTION_SLEEP (maybe even ACTION_SLEEP_STOP, which would allow to set a different button to stop the sleeping timer) in the next revision? doesn't sound too much to ask. or you could even submit a patch, relieving them from implementing it.
 

antgash

Portal Pro
January 6, 2009
55
1
46
san francisco
Home Country
United States of America United States of America
i installed this plugin and did the setup, and nothing happens when i hit the yellow button. i'm using a logitech harmony 550 remote. i set up the remote with mediaportal as the HTPC (in the remote software) and i told mediaportal that my remote is a windows media center remote... could that be causing the problem? i programmed one of the extra buttons on my remotes lcd screen as "yellow" and thought hitting that button would do the trick... no dice. any advice?

UPDATE: i just went back in the posts a bit and found this:
Try to show the teletext inside MediaPortal and see what happens if you press the yellow button...
And then try to change the settings for the other two condions ("Fullscreen" & "No condition") to yellow button action as well - that should do the trick

regards,
Anthrax
will give this a try when i get home...
 

deepnight73

Portal Pro
October 15, 2008
386
6
oh nice, i have updated MP to 1.0.2 and now the plugin works :), it realy count,
(notice, timer stop funktion dosnt work after i press the yellow button after buttontimeout, it only shows the rest of the time)
 

Users who are viewing this thread

Top Bottom