Ultimate Speakers: Difference between revisions
Created page with "Item 1: The Million Meter Bluetooth Speaker Item 2: A Bluetooth Speaker with WiFi connectivity, Wired Ethernet, TTL Serial Communications Port, Aux Audio Output (3.5 / 1/8"), with Battery BackUp, and the ability to 'broadcast' via Bluetooth to 4 other Bluetooth Speakers How? See the 'ingredients' below; ==== Bluetooth Connection and Aggregation Script ==== <syntaxhighlight lang="text"> #!/bin/sh ### REMEMBER: Speakers must be Paired and Trusted Manually with the blu..." |
|||
Line 5: | Line 5: | ||
How? See the 'ingredients' below; | How? See the 'ingredients' below; | ||
==== Bluetooth Connection and Aggregation Script ==== | ====Bluetooth Connection and Aggregation Script==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
#!/bin/sh | #!/bin/sh | ||
Line 200: | Line 200: | ||
if pactl list sinks short | grep -q "BlueToothDevices"; then | if pactl list sinks short | grep -q "BlueToothDevices"; then | ||
logger "BlueToothDevices exists. No need to create it." | logger "BlueToothDevices Combined Sink exists. No need to create it." | ||
else | else | ||
for i in $(seq 1 $((FoundDevicesCounter-1))); do | for i in $(seq 1 $((FoundDevicesCounter-1))); do | ||
Line 220: | Line 220: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Init.d Script (AKA Service / Daemon) to Monitor and Make Sure Bluetooth Speakers Stay Connected ==== | ====Init.d Script (AKA Service / Daemon) to Monitor and Make Sure Bluetooth Speakers Stay Connected==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
#!/bin/sh /etc/rc.common | #!/bin/sh /etc/rc.common | ||
Line 273: | Line 273: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Another Script (used when testing) to Disconnect Bluetooth Devices (Speakers) ==== | ====Another Script (used when testing) to Disconnect Bluetooth Devices (Speakers)==== | ||
<syntaxhighlight lang="text"> | <syntaxhighlight lang="text"> | ||
#!/bin/bash | #!/bin/bash |