INTERACT FORUM

Please login or register.

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

Author Topic: Help with MC Commands in MCWS  (Read 3402 times)

mgreg123

  • Junior Woodchuck
  • **
  • Posts: 92
Help with MC Commands in MCWS
« on: March 12, 2015, 10:46:38 am »

Hi,
I cant figure out what I'm doing wrong. The command below is from the MC commands zones get information support page. This is suppose to be the configuration of my zones(local host) That said, shouldn't  in Web gizmo taken me to Theater zone? Below the command is the error received. Any help would be appreciated.

michael:password@192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone="ZoneName0">Theater</Item> "ZoneID0">10000</Item> "ZoneGUID0">{00B6C5FC-76E0-44C1-B6BE-0E175F741643}</Item>

Error received: This XML file does not appear to have any style information associated with it. The document tree is shown below
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Help with MC Commands in MCWS
« Reply #1 on: March 17, 2015, 11:10:43 am »

I don't understand why you've got XML in the URL.  That's not going to work.
Logged
Matt Ashland, JRiver Media Center

mgreg123

  • Junior Woodchuck
  • **
  • Posts: 92
Re: Help with MC Commands in MCWS
« Reply #2 on: March 17, 2015, 11:31:05 am »

Could you give me an example of how to enter my zone data to select zone then audio followed by albums? However you think is best.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Help with MC Commands in MCWS
« Reply #3 on: March 17, 2015, 11:35:57 am »

To set the zone using a name, you use:
MCWS/v1/Playback/SetZone?Zone=Name0&ZoneType=Name
Logged
Matt Ashland, JRiver Media Center

mgreg123

  • Junior Woodchuck
  • **
  • Posts: 92
Re: Help with MC Commands in MCWS
« Reply #4 on: March 17, 2015, 12:22:13 pm »

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42445
  • Shoes gone again!
Re: Help with MC Commands in MCWS
« Reply #5 on: March 17, 2015, 02:22:32 pm »

I call:
http://localhost:52199/MCWS/v1/Playback/SetZone?Zone=stereo&ZoneType=name

And I get:
<Response Status="OK"/>

And the zone switches.

I don't understand what you could be getting that's different.
Logged
Matt Ashland, JRiver Media Center

mgreg123

  • Junior Woodchuck
  • **
  • Posts: 92
Re: Help with MC Commands in MCWS
« Reply #6 on: March 17, 2015, 06:54:42 pm »

Matt,

I entered the codes exactly as you stated, they didn't work again.
Logged

JustinChase

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3276
  • Getting older every day
Logged
pretend this is something funny

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Help with MC Commands in MCWS
« Reply #8 on: March 18, 2015, 06:42:32 am »

Error received: This XML file does not appear to have any style information associated with it. The document tree is shown below

This is expected if you're viewing the results in a browser.  Any time the browser gets an XML document back without associated CSS it shows that message, which is just saying "I got XML without formatting information, so I'm just going to show you the XML".  The detail is below the line:

Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

mgreg123

  • Junior Woodchuck
  • **
  • Posts: 92
Re: Help with MC Commands in MCWS
« Reply #9 on: March 18, 2015, 09:16:27 am »

Yes that's the Error received: This XML file does not appear to have any style information associated with it. The document tree is shown below <Response Status="OK"/> with these 2 entries below:
http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=name
http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=Theater

What works WITHOUT ZONE control is this: michael:password@192.168.1.39:52199/Gizmo/library.html?LibraryLocation=1000&Token=bQkQDg3r See screen shot below
Logged

Mr ChriZ

  • Citizen of the Universe
  • *****
  • Posts: 4375
  • :-D
Re: Help with MC Commands in MCWS
« Reply #10 on: March 19, 2015, 08:32:41 am »

Are you saying that you get the Status OK but the zone is not changing as requested?
As Glynor pointed out the "This XML file does not appear to have any style information associated with it." message can be ignored..

mgreg123

  • Junior Woodchuck
  • **
  • Posts: 92
Re: Help with MC Commands in MCWS
« Reply #11 on: March 19, 2015, 09:09:42 am »

ChriZ,

Not Exactly, On the local machine the zone is changing say from Deck to no zone listed. But on Web Gizmo the GUI is correct but it shows for selection the last zone played Deck. Any advice?

Thanks for your response.
Michael G
Logged
Pages: [1]   Go Up