question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alarm audio playback to a Bluetooth speaker from Raspberry Pi Zero W

See original GitHub issue

Hi,

Firstly the plugin is awesome I have managed to integrate a number of sensors and Webhooks into the capability however I am looking to getting the alarm to play audio to a connected bluetooth speaker on the Pi.

I have managed to test and verify a bluetooth speaker with the pi and configured the connection with bluetoothctl and succeed in getting audio to playback using bluealsa. The Pi will auto reconnect to the bluetooth speaker when it boots.

I have set the location of the audio file in the config and installed but I am unsure what command is being used to initiate the playback. In order to push via bluetooth and not default to HDMI (which I think its doing) you need to insert arguments into the playback instruction:

aplay -D bluealsa /home/pi/alarm.wav

Would there be any way to have this feature added? Or if it is a function that is currently built in could you point me in the right direction to resolve?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:31 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
HumanSkunkcommented, Aug 27, 2020

Let me know if you want me to test anything or generate any logs if you need anything to help debug it. Happy to help.

1reaction
MiguelRipoll23commented, Aug 23, 2020

That’s understandable.

I’ll check this out next week and look for alternatives.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there an elegant way to play Audio on the Zero W?
Another solution would be to use Bluetooth. Because it's a Pi Zero W, you'll be able to connect to a standard Bluetooth speaker....
Read more >
How to play sound and make noise with your Raspberry Pi
To fix this, open up a terminal window and run sudo raspi-config . When the menu appears, go to Advanced Options and select...
Read more >
Set up a Bluetooth Speaker with a Raspberry Pi - OKdo
This project shows how to connect a Bluetooth speaker to your Raspberry Pi or Pi 400 and offers troubleshooting advice. Getting Bluetooth speakers...
Read more >
How to Use Bluetooth Speaker with Raspberry Pi
Although there are few options for wired audio out from Raspberry Pi, a wireless Bluetooth speaker may be useful for some projects.
Read more >
Music on Console, ALSA, and Bluetooth on Raspbian Stretch
... Orange Pi Zero running with Armbian a few weeks ago. Things got interesting when I tried to pump the sound out to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found