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
myVoice Open Beta
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="MrMad" data-source="post: 273073" data-attributes="member: 12886"><p>Hi booyakasha!</p><p>I am working on a home automation plugin which currently dim the lights when starting/pausing/stopping a video.</p><p>What I would also like is to get voice support for it, so I can just say things like "Dim to level five". I think the right way would be to use your plugin in some way.</p><p>The things I have thought about for communication is for me to listen for OnAction, OnMessage or OnPropertyChanged.</p><p>Since both Actions and GUIMessages seem to be using enums in MediaPortal that are not available for me to change, it seems the best way for me would be to listen for changes of a certain property.</p><p>For example I could listen for the property #Lights.level and set the level accordingly.</p><p>That would however need changes to MyVoice...</p><p>What would you think about extending the functionality of MyVoice, so you can set properties?</p><p>So I could just add something like:</p><p></p><p>[CODE]</p><p><grammarrule></p><p> <type>PROPERTY</type></p><p> <id>98765</id></p><p> <description>Dim the lights</description></p><p> <phrase></p><p> <id>1</id></p><p> <voice>Livingroom level</voice></p><p> <option>NUMBERS</option></p><p> <property>#LightDevice.1</property></p><p> <window></window></p><p> <response></response></p><p> <soundfile></soundfile></p><p> <exefile></exefile></p><p> </phrase></p><p></grammarrule>[/CODE]</p><p></p><p>If I then say "Livingroom level five", MyVoice would do </p><p>[CODE]GUIPropertyManager.SetProperty("#LightDevice.1", "5");[/CODE]</p><p></p><p>and my plugin would then set device 1 (livingroom) to dim level 5.</p><p></p><p>What do you think, is that doable? Or is there a better way for me to accomplish something like that?</p><p></p><p>(I think that since the handling in MyVoice would be quite general, other plugins could also benefit from this.)</p></blockquote><p></p>
[QUOTE="MrMad, post: 273073, member: 12886"] Hi booyakasha! I am working on a home automation plugin which currently dim the lights when starting/pausing/stopping a video. What I would also like is to get voice support for it, so I can just say things like "Dim to level five". I think the right way would be to use your plugin in some way. The things I have thought about for communication is for me to listen for OnAction, OnMessage or OnPropertyChanged. Since both Actions and GUIMessages seem to be using enums in MediaPortal that are not available for me to change, it seems the best way for me would be to listen for changes of a certain property. For example I could listen for the property #Lights.level and set the level accordingly. That would however need changes to MyVoice... What would you think about extending the functionality of MyVoice, so you can set properties? So I could just add something like: [CODE] <grammarrule> <type>PROPERTY</type> <id>98765</id> <description>Dim the lights</description> <phrase> <id>1</id> <voice>Livingroom level</voice> <option>NUMBERS</option> <property>#LightDevice.1</property> <window></window> <response></response> <soundfile></soundfile> <exefile></exefile> </phrase> </grammarrule>[/CODE] If I then say "Livingroom level five", MyVoice would do [CODE]GUIPropertyManager.SetProperty("#LightDevice.1", "5");[/CODE] and my plugin would then set device 1 (livingroom) to dim level 5. What do you think, is that doable? Or is there a better way for me to accomplish something like that? (I think that since the handling in MyVoice would be quite general, other plugins could also benefit from this.) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
myVoice Open Beta
Contact us
RSS
Top
Bottom