Open useforgithub opened 1 month ago
Thanks for the post.
Could you post the docker command(s) you are using to invoke the player, please? Is it possible you are not mapping a configuration file into the Docker image?
Thanks for your reply.
Below is the command I'm using:
docker run -d --restart unless-stopped --net bridge --device /dev/snd \
-v /share/AppData/Shairplay/shairport-sync.conf:/etc/shairport-sync.conf \
--name shairport-sync\
mikebrady/shairport-sync -- -d hw:1
The config file could be read using cat /etc/shairport-sync.conf
in my airport-sync container, output below:
/ # cat /etc/shairport-sync.conf
general =
{
name = "Airplay-QNAP";
mqtt =
{
enabled = "yes";
hostname = "192.168.1.121";
port = 1883;
topic = "shairport";
publish_parsed = "yes";
publish_cover = "no";
};
metadata =
{
enabled = "no";
include_cover_art = "yes";
cover_art_cache_directory = "";
pipe_name = "/tmp/shairport-sync-metadata";
pipe_timeout = 5000;
};
};
/ #
I think I see the problem — you have nested the mqtt
and the metadata
stanzas inside the general
one. They should not be nested.
Thanks for the answer, since this is the first time I've used a non-default configuration, I searched through the issue last night and didn't find this mistake. Although I also looked at the configuration sample, I copied the corresponding node to my own configuration file,
I should modify it directly on the configuration sample,
Thanks a lot.
What happened?
I'm running a docker shairport-sync, when I tried to enable MQTT, the log says it's disabled (The diagnostic in configuration file didn't work too, then I add
-vv
to the running shell).Relevant log output
System Information.
QNAP NAS
Configuration Information.
PulseAudio or PipeWire installed?
How did you install Shairport Sync?
Docker
Check previous issues