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 Plugins
EventGhostPlus
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="DaBIGOne" data-source="post: 1039486" data-attributes="member: 118220"><p>It seems to me you have to get freaky in Eventghost by keeping track of the volume.</p><p>You need to make a variable wherein you keep the last value of system.volume.xx and compare it with a new event.</p><p>If it's higher it was volume up, if it was lower it was volume down.</p><p></p><p>You can create variable in Eventghost by using python command: eg.globals.variablename = [value]</p><p>Where it says [value] take a value that's never a real value so you can check if your variable is not set by the volume control yet.</p><p>something like 1000 or something if the value goes from 0-100.</p><p></p><p>Let's say at start of eventghost you set your variable:</p><p>[CODE]eg.globals.volumelevel = 1000[/CODE]</p><p></p><p>You can create a simple python script and let it trigger by system.volume.value to determine if it was volume up or down:</p><p>you need the value clean of your event, maybe you can do that with eg.event.suffix, maybe you have to use some other string operand to get that, you'll have to find that out a bit (google is your friend). For now I assume that eg.event.suffix will get you the right info. (mind the indentations, very important in python)</p><p></p><p>[CODE]if !(eg.globals.volumelevel = 1000): #check if the volume level was set before.</p><p> if (eg.globals.volumelevel > eg.event.suffix): #Volume down?</p><p> eg.TriggerEvent("system.volume.down") #Trigger a new event for volume down</p><p> if (eg.globals.volumelevel < eg.event.suffix): #Volume up?</p><p> eg.TriggerEvent("system.volume.up") #Trigger a new event for volume up</p><p>eg.globals.volumelevel = eg.event.suffix #Change the "remembered" volumelevel so you can check it at the next event.[/CODE]</p><p> </p><p></p><p>hope I pointed you a the right direction.</p><p></p><p>Da BIG One.[DOUBLEPOST=1384117336][/DOUBLEPOST]</p><p></p><p>I found that the latest version doesn't work under older version Media Portal, so I have to check that, for now you can work around by reverting back to 1.1.3.2 (you can also extract the DLL from the mpe1 and overwrite the EventGhost.dll in C:\Program Files(x86)\Team Mediaportal\MediaPortal\plugins\process)</p><p>You can download the 1.1.3.2 version<a href="https://dl.dropboxusercontent.com/u/34203831/EventGhostPlus.dll" target="_blank"> EventGhost.dll here</a></p><p></p><p>I'll try to find a fix as soon as I find time for it.</p></blockquote><p></p>
[QUOTE="DaBIGOne, post: 1039486, member: 118220"] It seems to me you have to get freaky in Eventghost by keeping track of the volume. You need to make a variable wherein you keep the last value of system.volume.xx and compare it with a new event. If it's higher it was volume up, if it was lower it was volume down. You can create variable in Eventghost by using python command: eg.globals.variablename = [value] Where it says [value] take a value that's never a real value so you can check if your variable is not set by the volume control yet. something like 1000 or something if the value goes from 0-100. Let's say at start of eventghost you set your variable: [CODE]eg.globals.volumelevel = 1000[/CODE] You can create a simple python script and let it trigger by system.volume.value to determine if it was volume up or down: you need the value clean of your event, maybe you can do that with eg.event.suffix, maybe you have to use some other string operand to get that, you'll have to find that out a bit (google is your friend). For now I assume that eg.event.suffix will get you the right info. (mind the indentations, very important in python) [CODE]if !(eg.globals.volumelevel = 1000): #check if the volume level was set before. if (eg.globals.volumelevel > eg.event.suffix): #Volume down? eg.TriggerEvent("system.volume.down") #Trigger a new event for volume down if (eg.globals.volumelevel < eg.event.suffix): #Volume up? eg.TriggerEvent("system.volume.up") #Trigger a new event for volume up eg.globals.volumelevel = eg.event.suffix #Change the "remembered" volumelevel so you can check it at the next event.[/CODE] hope I pointed you a the right direction. Da BIG One.[DOUBLEPOST=1384117336][/DOUBLEPOST] I found that the latest version doesn't work under older version Media Portal, so I have to check that, for now you can work around by reverting back to 1.1.3.2 (you can also extract the DLL from the mpe1 and overwrite the EventGhost.dll in C:\Program Files(x86)\Team Mediaportal\MediaPortal\plugins\process) You can download the 1.1.3.2 version[URL='https://dl.dropboxusercontent.com/u/34203831/EventGhostPlus.dll'] EventGhost.dll here[/URL] I'll try to find a fix as soon as I find time for it. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
EventGhostPlus
Contact us
RSS
Top
Bottom