From 687fd16758e34e3e2b0686a88110d1e97399f36c Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Tue, 10 Aug 2021 22:04:37 +0100 Subject: [PATCH] Update MQTT.md --- MQTT.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/MQTT.md b/MQTT.md index da21a3fc..3189a54a 100644 --- a/MQTT.md +++ b/MQTT.md @@ -1,3 +1,21 @@ +MQTT in Shairport Sync +==== +To enable Shairport Sync to act as an MQTT publisher, you need to: +1. Install the mosquitto library: +``` +# apt install libmosquitto-dev +``` +2. Add the configuration flag `--with-mqtt-client` to the list of parameters to the `./configure...` command, for example: +``` +$ ./configure --with-mqtt-client --sysconfdir=/etc --with-alsa --with-avahi --with-ssl=openssl --with-systemd +``` + +If Shairport Sync has MQTT support, it will have the string `mqtt` in its configuration string. For example: +``` +$ shairport-sync -V +3.3.8-OpenSSL-Avahi-ALSA-metadata-mqtt-sysconfdir:/etc +``` + Setting Up MQTT Publishing ====