shairport-sync: support mqtt based remote control
[feed/packages.git] / sound / shairport-sync / files / shairport-sync.config
index 96917af6cc8c1e407d81caa8c59f508ffc035598..42a4acf1d7d4938afcff25a06490b07dfffcf551 100644 (file)
@@ -1,13 +1,13 @@
 # Use your own config file
 config shairport-sync 'shairport_sync_file'
-       option disabled '1'
+       option enabled '0'
        option respawn '1'
        option conf_custom '1'
        option conf_file '/etc/shairport-sync.conf'
 
 # Use OpenWrt UCI config
 config shairport-sync 'shairport_sync'
-       option disabled '1'
+       option enabled '0'
        option respawn '1'
        # General
        option name 'Shairport-Sync-%v-%h'
@@ -37,6 +37,10 @@ config shairport-sync 'shairport_sync'
        # Session Control
        option sesctl_run_before_play_begins '' # /etc/shairport-sync-start.sh
        option sesctl_run_after_play_ends '' # /etc/shairport-sync-stop.sh
+       option sesctl_run_before_entering_active_state '' # /path/to/script.sh
+       option sesctl_run_after_exiting_active_state '' # /path/to/script.sh
+       option sesctl_run_if_an_unfixable_error_is_detected '' # /path/to/script.sh
+       option sesctl_run_when_volume_is_set '' # /path/to/script.sh
        option sesctl_wait_for_completion '' # no/yes
        option sesctl_session_interruption '' # no/yes
        option sesctl_session_timeout '' # 120
@@ -56,6 +60,17 @@ config shairport-sync 'shairport_sync'
        # Stdout
        option stdout_latency_offset '' # 0
        option stdout_buffer_length '' # 44100
+       # MQTT: https://github.com/mikebrady/shairport-sync/blob/master/MQTT.md
+       option mqtt_enabled 'no'
+       option mqtt_hostname '127.0.0.1'
+       option mqtt_port '1883'
+       option mqtt_username '' # empty = no authentication
+       option mqtt_password '' # empty = no authentication
+       option mqtt_topic 'shairport'
+       option mqtt_publish_raw 'no'
+       option mqtt_publish_parsed 'no'
+       option mqtt_publish_cover 'no'
+       option mqtt_enable_remote 'no'
        # AO
        option ao_latency_offset '' # 0
        option ao_buffer_length '' # 44100