1activegeek / docker-airconnect

AirConnect container for turning Chromecast into Airplay targets
238 stars 27 forks source link

Location of config.xml? #27

Closed townsmcp closed 3 years ago

townsmcp commented 3 years ago

Hi all, Sorry to be dumb, but where is the config.xml file stored? I want to edit it and set some players to not show up but I just cant seem to find the config file

1activegeek commented 3 years ago

Please take a look at a few of the other issues here that are closed such as #20 - these should point you in the right direction. Short answer - you have to specify the path when you mapped the file.

townsmcp commented 3 years ago

Not sure if anyone would be interested, however I sorted the problem out. I wanted to be able to only map non AirPlay Sonos devices. I have a mixture of AirPlay Sonos devices and non Airplay Sonos devices. I didnt want AirConnect to be mapping out AirPlay enabled Sonos devices (why have a device mapped twice?). I use Portainer so editing the Docker config etc is much easier than CLI (highly recommend Docker or some other GUI based setup) for configuring Docker.

There are 2 ways to achieve this:

So by default, there is no config.xml file - AirConnect performs a scan every time it starts up and uses those scan results to publish devices to AirPlay. To control the publication of non Airplay devices

As a side note, the same works for Chromecast devices however the env variabe name is set to AIRCAST_VAR and the command to export the config to file is aircast-x86-64 -i config.xml