INTERACT FORUM

Please login or register.

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

Author Topic: How to target playlist to zone with batch file  (Read 1124 times)

akhunaton

  • Regular Member
  • World Citizen
  • ***
  • Posts: 136
  • I Love Music
How to target playlist to zone with batch file
« on: September 09, 2014, 06:25:10 pm »

My batch file works great for whatever the current zone is:

@ECHO OFF
start MC20.exe /PlayReplace TREEPATH="Playlists\*Genre Lists\Classical"

I want to target an external zone (raspberry). I tried this but it does not work:

@ECHO OFF
start MC20.exe /PlayReplace TREEPATH="\\Playlists\*Genre Lists\Classical|zone=10450"

I found the zone id by going to /MCWS/v1/Playback/Zones:

<Response Status="OK">
<Item Name="NumberZones">4</Item>
<Item Name="CurrentZoneID">0</Item>
<Item Name="CurrentZoneIndex">0</Item>
<Item Name="ZoneName0">Player</Item>
<Item Name="ZoneID0">0</Item>
<Item Name="ZoneGUID0">{492AFDD5-7A9E-426A-91E9-5EFF67D80BE1}</Item>
<Item Name="ZoneName1">Studio</Item>
<Item Name="ZoneID1">10428</Item>
<Item Name="ZoneGUID1">{692D8B43-EF82-4AD8-95D2-0D2F5149373B}</Item>
<Item Name="ZoneName2">Raspberry</Item>
<Item Name="ZoneID2">10450</Item>
<Item Name="ZoneGUID2">{143b7f4a023e95f2b4fd6bc9679501c8}</Item>
</Response>

thanks for your help.
Logged

gappie

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 4566
Re: How to target playlist to zone with batch file
« Reply #1 on: September 10, 2014, 04:19:21 am »

i think you need to use an other number for the zone.. i guess the number you use is an internal number.. i use zone=0 for my first zone etc...

 :)
gab
Logged
Pages: [1]   Go Up