Mycroft Community Forum

New setup with Picroft bluetooth

Hi all, just want to say thumbs up to the mycroft team. Using it for a few days and loving it. My setup is the following:

  • Raspberry Pi 3 with pycroft
  • Logitech C310 webcam (input sound)
  • BlackWeb soundpebble speaker (output sound, using bluetooth and/or audio jack)
  • Created an sh script to autoconnect the bluetooth speaker at startup.
  • Homeassistant integration (works great with my setup)

So far so good! Looking forward to try some more skills and other things !

1 Like

Hi there @Redpotatoes, welcome to the community and glad you’re enjoying mycroft! :smiley:

Hey, that is great to hear.

Most people have had a pretty rough time working with bluetooth audio devices. If there’s anything you can share about your setup that would assist others please do :slight_smile:

Could you share? Would be interested in seeing this.

First,
At the command line do this once:
Bluetoothctl
Power on
Agent on
Default-agent
Scan on
Pair XX:XX:XX:XX:XX:XX (mac)
Trust XX:XX:XX:XX:XX:XX (mac)
Connect XX:XX:XX:XX:XX:XX (mac)
Quit

Once this is done, create a sh script like this:
nano bluetooth.sh (add the following)
#!/bin/bash
echo “power on \nagent on \ndefault-agent \nconnect XX:XX:XX:XX:XX:XX \nquit” | bluetoothctl

At the command line do this:
crontab -e (add the following)
@reboot sh /home/pi/bluetooth.sh &
***This does not work everytime

Alternative:
nano .bashrc (add the following at the end, note that this file gets overwritten if update.sh is ran)
sh /home/pi/bluetooth.sh &

I also installed the CMDSkill so I can run scripts with my voice, I modded .mycroft/mycroft.conf:

“CmdSkill”: {
“alias”: {
“connect bluetooth”: “sh /home/pi/bluetooth.sh”
}
}