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
[Plugin]MicasaVerde Vera Controller
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="TyfoonGT" data-source="post: 1098656" data-attributes="member: 128271"><p>If anyone is interested; I have found a way to control MediaPortal via Vera.</p><p></p><p>For this to work you need to install Wifiremote plugin for Mediaportal. This enables a TCP/IP interface that accepts Json commands. Check out the wifiremote wiki for all the commands. You need to set Wifiremote to an authentication mode of NONE. Probably you can also work with username/password but I did not test this yet. Best to test wifiremote with e.g. aMPdroid so you are sure it's working correct in that way!</p><p></p><p>Below is the LUUP code that you can use to PAUSE. By changing the commands you can also do other stuff (Check out the wifiremote wiki for all the commands. ). This LUUP code can be used in e.g. scenes or PLEG etc. Replace IP with your mediaportals IP number and PORTNR with the WIFIremote port (default 8017).</p><p></p><p></p><p></p><p style="margin-left: 20px"><em>local Inlog="{\"Type\":\"identify\",\"Name\":\"Vera\",\"Application\":\"VeraGos\",\"Version\":\"0.0.1.1\",\"Authenticate\":{\"AuthMethod\":\"none\"}}"</em></p> <p style="margin-left: 20px"><em>local wmcCmd = "<strong>{\"Type\":\"command\", \"Command\":\"pause\"}</strong>"</em></p> <p style="margin-left: 20px"><em>local socket = require("socket")</em></p> <p style="margin-left: 20px"><em>tcp = assert(socket.connect("<strong>IP</strong>", <strong>PORTNR</strong>))</em></p> <p style="margin-left: 20px"><em>tcp:send(Inlog .. "\r\n")</em></p> <p style="margin-left: 20px"><em>luup.sleep(100)</em></p> <p style="margin-left: 20px"><em>tcp:send(wmcCmd .. "\r\n")</em></p> <p style="margin-left: 20px"><em>tcp:close()</em></p> <p style="margin-left: 20px"><em>return 0</em></p></blockquote><p></p>
[QUOTE="TyfoonGT, post: 1098656, member: 128271"] If anyone is interested; I have found a way to control MediaPortal via Vera. For this to work you need to install Wifiremote plugin for Mediaportal. This enables a TCP/IP interface that accepts Json commands. Check out the wifiremote wiki for all the commands. You need to set Wifiremote to an authentication mode of NONE. Probably you can also work with username/password but I did not test this yet. Best to test wifiremote with e.g. aMPdroid so you are sure it's working correct in that way! Below is the LUUP code that you can use to PAUSE. By changing the commands you can also do other stuff (Check out the wifiremote wiki for all the commands. ). This LUUP code can be used in e.g. scenes or PLEG etc. Replace IP with your mediaportals IP number and PORTNR with the WIFIremote port (default 8017). [INDENT][I]local Inlog="{\"Type\":\"identify\",\"Name\":\"Vera\",\"Application\":\"VeraGos\",\"Version\":\"0.0.1.1\",\"Authenticate\":{\"AuthMethod\":\"none\"}}" local wmcCmd = "[B]{\"Type\":\"command\", \"Command\":\"pause\"}[/B]" local socket = require("socket") tcp = assert(socket.connect("[B]IP[/B]", [B]PORTNR[/B])) tcp:send(Inlog .. "\r\n") luup.sleep(100) tcp:send(wmcCmd .. "\r\n") tcp:close() return 0[/I][/INDENT] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
[Plugin]MicasaVerde Vera Controller
Contact us
RSS
Top
Bottom