INTERACT FORUM

Networks and Remotes => Media Network => Topic started by: mgreg123 on March 12, 2015, 10:46:38 am

Title: Help with MC Commands in MCWS
Post by: mgreg123 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
Title: Re: Help with MC Commands in MCWS
Post by: Matt 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.
Title: Re: Help with MC Commands in MCWS
Post by: mgreg123 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.
Title: Re: Help with MC Commands in MCWS
Post by: Matt 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
Title: Re: Help with MC Commands in MCWS
Post by: mgreg123 on March 17, 2015, 12:22:13 pm
Matt,
I entered as shown below and few other ways and get XLM errors. How do I fix this?


http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=Theater
http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=10000
Title: Re: Help with MC Commands in MCWS
Post by: Matt 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.
Title: Re: Help with MC Commands in MCWS
Post by: mgreg123 on March 17, 2015, 06:54:42 pm
Matt,

I entered the codes exactly as you stated, they didn't work again.
Title: Re: Help with MC Commands in MCWS
Post by: JustinChase on March 17, 2015, 09:29:55 pm
Matt,
I entered as shown below and few other ways and get XLM errors. How do I fix this?


http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=Theater
http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=10000

try this...

http://192.168.1.39:52199/MCWS/v1/Playback/SetZone?Zone=Theater0&ZoneType=name

Title: Re: Help with MC Commands in MCWS
Post by: glynor 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:

(http://glynor.com/img/screenshots/MC20/MCWS-Response_Status-OK.png)
Title: Re: Help with MC Commands in MCWS
Post by: mgreg123 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
Title: Re: Help with MC Commands in MCWS
Post by: Mr ChriZ 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..
Title: Re: Help with MC Commands in MCWS
Post by: mgreg123 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