INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: NEW: The command line allows making MCWS web service calls  (Read 1986 times)

DoubtingThomas

  • Citizen of the Universe
  • *****
  • Posts: 564
NEW: The command line allows making MCWS web service calls
« on: March 19, 2013, 10:02:58 am »

Quote
NEW: The command line allows making MCWS web service calls: MC18.exe "/MCWS/v1/Playback/Pause?State=-1"

The example command above works, but I get no output from the command below.

mc18.exe "/MCWS/v1/Playback/Info?Zone=-1"


Running

wget -q -O - http://localhost:52199/MCWS/v1/Playback/Info?Zone=-1

gives the expected XML output.



Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Logged
Matt Ashland, JRiver Media Center

kstuart

  • Citizen of the Universe
  • *****
  • Posts: 1955
  • Upgraded to MC22 Master using preorder discount
Re: NEW: The command line allows making MCWS web service calls
« Reply #2 on: March 19, 2013, 11:47:59 am »

Can someone clarify what we can do differently now ?

Previously, in order to pause MC18 from another PC on the local lan, the following had to be done:

* Implement Media Network on MC18

* Run the following glynor script on the other PC (only relevant portion shown here):

oXMLHTTP.open "GET", "http://192.168.N.N:NNNN/MCWS/v1/Playback/PlayPause?Zone=-1&ZoneType=ID", False, "computer", "password"
oXMLHTTP.send

Can this be done differently now?  Or is the new implementation for a similar, yet different situation ?

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: NEW: The command line allows making MCWS web service calls
« Reply #3 on: March 19, 2013, 11:54:31 am »

If you're controlling across the network, you need to call the web service over the network (so not with the command line).
Logged
Matt Ashland, JRiver Media Center

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42441
  • Shoes gone again!
Re: NEW: The command line allows making MCWS web service calls
« Reply #4 on: March 19, 2013, 11:58:07 am »

Can someone clarify what we can do differently now ?

You can call MCWS functions (on the local computer) from the command line.

There are a lot of things you can do with MCWS that weren't possible with the command line before.

More here and an example:
http://yabb.jriver.com/interact/index.php?topic=79245
Logged
Matt Ashland, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: NEW: The command line allows making MCWS web service calls
« Reply #5 on: March 19, 2013, 02:18:22 pm »

This is awesome, by the way.  Thanks, Matt.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/
Pages: [1]   Go Up