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
MediaPortal Automation
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="JDWestoby" data-source="post: 842668" data-attributes="member: 72093"><p>Automation MediaPortal Process Plugin</p><p>=====================================</p><p> </p><p>This plugin enables MediaPortal to be driven by anything that can send strings</p><p>over TCP/IP sockets. it expects vertical home, alhtough you >could< drive Titan with it.</p><p> </p><p>A response is sent (but can be ignored) and anything that does not end with a '!'</p><p>has succeeded.</p><p> </p><p> </p><p>The general format of the string sent is -</p><p><Request Opt="Arg"/></p><p> </p><p>Opt is one of -</p><p>Command, Key, Press, Run, Screen</p><p> </p><p>Arg depends on the Opt.</p><p> </p><p> </p><p>Command Args -</p><p>Quit - closes the connection cleanly</p><p>Store - saves subsequent requests until a Quit received</p><p> </p><p> </p><p>Key are just the remote button keys, Args -</p><p>Back, Down, Enter, Home, Left, Mute, OK, Pause,</p><p>Play, record, Resume, Return, Right, Stop, Up,</p><p>Volume Down, Volume Up</p><p> </p><p>Press Arg is the label on the button (on the currently active screen)</p><p>to press. If the button does not exist it is a no-op.</p><p> </p><p> </p><p>Run allows running a named stored sequence or an external Bat/Cmd file.</p><p> </p><p>The path to the Bat/Cmd file is an option in the configuration</p><p>screen (More/F9 while on New button).</p><p> </p><p> </p><p>Screen is similar to Press but here the button is the name of a</p><p>top-level menu option.</p><p> </p><p> </p><p>To use, just send the XML fragments that correspond to the action</p><p>you would do if you were using the remote control</p><p>with some additional functionality.</p><p> </p><p> </p><p>For example sending -</p><p><Request Screen="TV"/></p><p><Request Press="Channel"</p><p><Request Press="BBC One"</p><p> </p><p>Will turn on the TV to BBC One.</p><p> </p><p>Note that it does not matter what TV Group 'BBC One' is in, it will</p><p>find the channel regardless.</p><p> </p><p> </p><p>(ASIDE - I use this to use MediaPortal as a clever Clock Radio driven by HomeSeer. The commands I send are -</p><p>Screen="Internet Radio"</p><p>Press="Radio 2"</p><p>Screen="Clock"</p><p>Press="Bright"</p><p>Because it is driven by HomeSeer it copes with GMT/BST switchover, ignoring weekends etc.)</p><p> </p><p>It is possible to test this using Telnet or the Automator plugin.</p><p> </p><p>The default port number is 6573 (can be changed using the</p><p>Automator windows plugin, see below).</p><p> </p><p> </p><p> </p><p> </p><p> </p><p>Automator MediaPortal Windows Plugin</p><p>====================================</p><p> </p><p>This windows plugin provides a way to test and demonstrate</p><p>the use of the Automation Process plugin from within</p><p>MediaPortal.</p><p> </p><p>It can drive both itself and a remote MediaPortal</p><p>(as long as the Automation plugin is installed).</p><p> </p><p>It allows the Automation plugin options to be changed</p><p>from inside MediaPortal (requires a restart).</p><p> </p><p> </p><p>The main screen has just a New button, this allows a</p><p>named automation sequence script to be created.</p><p> </p><p>Pressing More/F9 while on New brings up the Automation</p><p>configuration screen.</p><p> </p><p>Here there are two options</p><p>Port - port on which the automation plugin listens</p><p>Path - path to any external Bat/Cmd files</p><p> </p><p>Save - saves the changes</p><p> </p><p> </p><p>The [New] script window has buttons for -</p><p>Name - just identifies the sequence</p><p>Host/Port - for driving a remote MP Automation plugin</p><p>Description - just a reminder shown at the bottom of the main screen</p><p>List entries - for entering Opt="Arg" part of the request</p><p> </p><p>Click on any of these to bring up an on-screen keyboard and</p><p>enter/change the values.</p><p> </p><p>There is no need to enter the Command="Store", Command="Quit"</p><p>requests as these are automatically added when the requests</p><p>are sent.</p><p> </p><p> </p><p>When finished, press Save, this stores it in the Automation</p><p>options file. (There is also a Delete button allowing unwanted</p><p>script sequences to be deleted.)</p><p> </p><p>This will return to the main screen where the new script is</p><p>now in the list.</p><p> </p><p>Pressing the list button will execute the script.</p><p> </p><p>Moving onto the list and pressing More/F9 will return to the</p><p>script window allowing changes to be made or the sequence to</p><p>be deleted.</p><p> </p><p> </p><p> </p><p> </p><p>Installation</p><p>============</p><p> </p><p> </p><p>Download, unzip and run (as Administrator on Win7) SetUp.Cmd.</p><p>SetUp is designed for XP/Win7 and (should) pick up paths and the skin automatically.</p></blockquote><p></p>
[QUOTE="JDWestoby, post: 842668, member: 72093"] Automation MediaPortal Process Plugin ===================================== This plugin enables MediaPortal to be driven by anything that can send strings over TCP/IP sockets. it expects vertical home, alhtough you >could< drive Titan with it. A response is sent (but can be ignored) and anything that does not end with a '!' has succeeded. The general format of the string sent is - <Request Opt="Arg"/> Opt is one of - Command, Key, Press, Run, Screen Arg depends on the Opt. Command Args - Quit - closes the connection cleanly Store - saves subsequent requests until a Quit received Key are just the remote button keys, Args - Back, Down, Enter, Home, Left, Mute, OK, Pause, Play, record, Resume, Return, Right, Stop, Up, Volume Down, Volume Up Press Arg is the label on the button (on the currently active screen) to press. If the button does not exist it is a no-op. Run allows running a named stored sequence or an external Bat/Cmd file. The path to the Bat/Cmd file is an option in the configuration screen (More/F9 while on New button). Screen is similar to Press but here the button is the name of a top-level menu option. To use, just send the XML fragments that correspond to the action you would do if you were using the remote control with some additional functionality. For example sending - <Request Screen="TV"/> <Request Press="Channel" <Request Press="BBC One" Will turn on the TV to BBC One. Note that it does not matter what TV Group 'BBC One' is in, it will find the channel regardless. (ASIDE - I use this to use MediaPortal as a clever Clock Radio driven by HomeSeer. The commands I send are - Screen="Internet Radio" Press="Radio 2" Screen="Clock" Press="Bright" Because it is driven by HomeSeer it copes with GMT/BST switchover, ignoring weekends etc.) It is possible to test this using Telnet or the Automator plugin. The default port number is 6573 (can be changed using the Automator windows plugin, see below). Automator MediaPortal Windows Plugin ==================================== This windows plugin provides a way to test and demonstrate the use of the Automation Process plugin from within MediaPortal. It can drive both itself and a remote MediaPortal (as long as the Automation plugin is installed). It allows the Automation plugin options to be changed from inside MediaPortal (requires a restart). The main screen has just a New button, this allows a named automation sequence script to be created. Pressing More/F9 while on New brings up the Automation configuration screen. Here there are two options Port - port on which the automation plugin listens Path - path to any external Bat/Cmd files Save - saves the changes The [New] script window has buttons for - Name - just identifies the sequence Host/Port - for driving a remote MP Automation plugin Description - just a reminder shown at the bottom of the main screen List entries - for entering Opt="Arg" part of the request Click on any of these to bring up an on-screen keyboard and enter/change the values. There is no need to enter the Command="Store", Command="Quit" requests as these are automatically added when the requests are sent. When finished, press Save, this stores it in the Automation options file. (There is also a Delete button allowing unwanted script sequences to be deleted.) This will return to the main screen where the new script is now in the list. Pressing the list button will execute the script. Moving onto the list and pressing More/F9 will return to the script window allowing changes to be made or the sequence to be deleted. Installation ============ Download, unzip and run (as Administrator on Win7) SetUp.Cmd. SetUp is designed for XP/Win7 and (should) pick up paths and the skin automatically. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
MediaPortal Automation
Contact us
RSS
Top
Bottom