WifiRemote - a tcp remote control server 0.8.3 [2014-07-20] | Page 38

Discussion in 'MediaPortal 1 Plugins' started by Shukuyen, May 5, 2011.

  1. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Shukuyen
    • Premium Supporter

    Shukuyen Community Plugin Dev

    Joined:
    May 8, 2008
    Messages:
    557
    Likes Received:
    209
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Lake of Constance
    Ratings:
    +261 / 0
    Home Country:
    Germany Germany
    Show System Specs
  4. MacGyverek

    MacGyverek Portal Pro

    Joined:
    January 27, 2010
    Messages:
    144
    Likes Received:
    23
    Gender:
    Male
    Location:
    Rydułtowy
    Ratings:
    +23 / 0
    Home Country:
    Poland Poland
    Show System Specs
  5. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    Have you installed MP 1.6 and the latest WifiRemote?
     
  6. Shukuyen
    • Premium Supporter

    Shukuyen Community Plugin Dev

    Joined:
    May 8, 2008
    Messages:
    557
    Likes Received:
    209
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Lake of Constance
    Ratings:
    +261 / 0
    Home Country:
    Germany Germany
    Show System Specs
    If you have (installed 1.6, like johan asked) please post the Configuration.log file after opening the configuration -> plugins section. Thanks!
     
  7. MacGyverek

    MacGyverek Portal Pro

    Joined:
    January 27, 2010
    Messages:
    144
    Likes Received:
    23
    Gender:
    Male
    Location:
    Rydułtowy
    Ratings:
    +23 / 0
    Home Country:
    Poland Poland
    Show System Specs
    I have 1.6 and latest version. I will make a log about 9:00 pm. Thx for help.
     
  8. MacGyverek

    MacGyverek Portal Pro

    Joined:
    January 27, 2010
    Messages:
    144
    Likes Received:
    23
    Gender:
    Male
    Location:
    Rydułtowy
    Ratings:
    +23 / 0
    Home Country:
    Poland Poland
    Show System Specs
    I attached a log files.

    Wifi Remote plugin is in folder ....plugin\process\WifiRemote.dll
    Mediaportal Configuration->Plugins->Process Plugins - no WiFi Remote Icon.
     

    Attached Files:

  9. Kevin Penny

    Kevin Penny Portal Member

    Joined:
    January 31, 2014
    Messages:
    7
    Likes Received:
    0
    Gender:
    Male
    Ratings:
    +0 / 0
    Home Country:
    Canada Canada
    I'm trying to design a plan of attack in creating an RTI (think Crestron etc) driver for MediaPortal - the wifiRemote is the perfect api to play with. My initial barrier to entry is hinging on the ability to access the api. So IF I have a REST client, and I sent a GET request to the machine with MediaPortal on it at 10.0.0.14 using port 8017 (default) with say the 'Identify' command - would it not be a GET request to http://10.0.0.14:8017/identify ?

    It seems I'm not able to find the documentation that references a sample full url and HTTP request example with information on method used etc. Is the payload in the body of the request only?

    Sincerely

    kevin
     
  10. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    Kevin, its no REST api, its a tcp/ip api. Check the MP wiki for documentation.

    MacGyverek, sorry but I have no clue.
     
  11. Shukuyen
    • Premium Supporter

    Shukuyen Community Plugin Dev

    Joined:
    May 8, 2008
    Messages:
    557
    Likes Received:
    209
    Gender:
    Male
    Occupation:
    Developer
    Location:
    Lake of Constance
    Ratings:
    +261 / 0
    Home Country:
    Germany Germany
    Show System Specs
    The dll file seems to be corrupt:
    Can you please delete the WifiRemote.dll and reinstall it via MP Extensions Installer?[DOUBLEPOST=1391252438][/DOUBLEPOST]
    Kevin,

    Johan is right, WifiRemote is not a HTTP REST service. You need to open a socket connection through TCP to the WifiRemote port, then send the json packages delimited with \r\n. I did it this way because I wanted to have a realtime two-way communication. A classic REST service is great for information that you want to poll from the service, for example getting information about a TV show in MP-Extended.

    The principle of WifiRemote is that you open a connection that both the client and the server use to send data back and forth. For example your client will be notified when the user starts playing some media file or when the facade (MediaPortal list views) changes. Without a persistent connection that wouldn't be possible.

    So depending which programming language you are using you need to find a way to connect to the socket, then just read and write the commands and messages as documented in the Wiki.
     
    Last edited: February 1, 2014
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!