Closed XEROxMEXICANO closed 1 year ago
For spotify_manager do I delete the old code for refresh_devices? and replace it with the one you gave me?
Yes, delete & replace with what I gave you! Also be sure your client ID, Client secret and redirect uri are exactly the same in your developer app. and config file !!! I used: http://localhost:8888
It worked It can now play songs by itself Now I have to get audio to work, my headphones connect and play .wav files but wont pass through the audio from raspotify
I followed the direction from the links you sent me but I still cant get bluetooth working 100% https://sigmdel.ca/michel/ha/rpi/bluetooth_n_buster_01_en.html
What do you mean by 100% ? Getting it to work is tricky even Guy Dupont mentioned that in his first YouTube video! It's all about the configuration and getting bluealsa to startup upon boot.
Again, What do you mean by 100% ?
I can hear the .wav files. But using Spotifypod.py and click a song from spotify there is no audio
It's all about the configuration and getting bluealsa to startup upon boot.
Oh ok, do you have any tips on that?
If I can find the config file l will post it ... I may have just lucked out and it just worked it was hit and miss for me.
Give me awhile!
Thank you very much!
Awhile back I hope I didn't offend you - none was intended!
Oh no worries, sometimes I work on this project then I get upset that it doesn't work then i leave the project abandoned. I'm sorry if I caused you any worries.
No worries, I just attributed it to your being 17!
Can you now boot right into "Spot" operation (like Ricardo) without going through the trial-and-error process ???
yes when I turn on the pi it boots right into the program, in order to use it I need my phone before choosing a song
You're saying that you still have to select it from the Spotify Connect Device List? and does it select successfully immediately and can you do so repeatedly???
it works on the first try
Did you try more than once ???
No once I put the code you gave me all i have to do is just click it once
So it's working (like Ricardo's) without going through the trial-and-error process repeatedly?? Can you shut down your Spot reboot and try again and let me know the outcome!
When I reboot it, it does take a while to establish a connection, so i can't just load music off boot
However it did reconnect when you used the Spotify Connect device list? After approx. how many attempts?
I didn't count but around 5 minutes
What returns with the below command? alsamixer -D bluealsa
It loads a program with the speaker volume in the middle
You can select an audio card with F6.
Did you uninstall pulesaudio?
when I ran the code it just gives me error that the file doesn't exist so I think I uninstalled
when i press F6 i get the option defualt and hdmi 1 and enter device name, which one should i click?
Use the Default:
its ok I will try to find the information on my own, Thank you very much for your help!
https://github.com/dtcooper/raspotify/wiki/Play-via-Bluetooth-Speaker
https://github.com/Arkq/bluez-alsa
https://sigmdel.ca/michel/ha/rpi/bluetooth_n_buster_01_en.html
https://sigmdel.ca/michel/ha/rpi/bluetooth_in_rpios_02_en.html
There's a section on bluealsa configuration near the bottom of the below link: https://github.com/bablokb/pi-btaudio
See - below:
Bluealsa Configuration:
After installation, nano /etc/asound.conf and insert the MAC address of your bluetooth-device in the line starting with defaults.bluealsa.device:
pcm.!default "bluealsa" ctl.!default "bluealsa" defaults.bluealsa.interface "hci0" defaults.bluealsa.device "xxxxxxxxxxx" defaults.bluealsa.profile "a2dp"
Note that you can run
bluetoothctl devices
which should give you the MAC-address of your bluetooth-speaker.
That's it for configuration, all scripts and daemons will use this MAC-address.
Now is the time to restart your system. After booting has finished and all daemons are up and running, your Pi should automatically connect to your speaker or headset. If not, run btaudio-connect.
Create the below file if it isn't there!
sudo nano /etc/asound.conf
and add:
pcm.!default "bluealsa" ctl.!default "bluealsa" defaults.bluealsa.interface "hci0" defaults.bluealsa.device "XXXXXXXXXXX" Your MAC address! defaults.bluealsa.profile "a2dp"
thank you, you've been super helpful
I'm going to close this issue now
yeah I got the audio to work now, couldn't have done it without you
Yes when I went on the devices page it took a while for the pi to show up but I did get the pi device id
Currently I'm away from my pi but from what I remember is I can safely disconnect my phone from the pi. The speaker I am using are the airpods first gen
Yes I can
Hello I've finally got Spot to auto start and a bunch of other problems fixed but when I try to play a song it gives me this error
"playing spotify:album:6Bp2ojsBc8CtNaYipdxCLt spotify:track:3ZcLmonVVD1MTQtmQb8yf3 error! no devices"
I saw in the Github issue #4 someone had this error but they fixed it so I applied the fix to mine and it didn't do anything. Got a solution or an idea?