Super-Simple-Raspberry-Pi-Audio-Receiver-Install icon indicating copy to clipboard operation
Super-Simple-Raspberry-Pi-Audio-Receiver-Install copied to clipboard

Bluetooth Meta-data?

Open mrwulff opened this issue 7 years ago • 5 comments

I am using this in my car with a 5 inch screen with video in. Is it possible for me to add the mp3 tag info on this using something like pygame? And album art?

mrwulff avatar Oct 29 '17 21:10 mrwulff

This is a good question, I like the idea of getting the meta data at the moment I am at a loss at how to do this. I will place it as a potential feature. If you do find a way to get it done and outline it either here or in a pull request I will gladly add it

BaReinhard avatar Nov 30 '17 18:11 BaReinhard

I am also very interested in this. As I posted on another issue as well, the following post provides some python code that goes into that direction: https://www.raspberrypi.org/forums/viewtopic.php?p=635509#p635509

I am happy to help work on it, unfortunately it is quite hard to dig up any info on how to. If anyone has helpful resources, that would be great.

sikaiser avatar Apr 02 '18 19:04 sikaiser

So, I did some tinkering and I built a super simple little GUI that displays track title and artist name from Bluetooth meta data. It also has buttons for previous, play/pause, and next. I built it using Tkinter based on the code that I already referenced above (it uses dbus to access/control the bluez Mediaplayer).

It should be quite easy to expand and is overall a very small and light script. If you would like to build your own gui from scratch, the basic code to interact with the bluetooth data can be found here: https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=87138&start=25#p641517 (the code that I mentioned in my previous post is not functional, but has been cleaned up in the post I'm linking to now).

I'm sharing my code here as a .txt file. Just rename it to .py. I'm quite unfamiliar with github, so I didn't know how else to do this.

avrcp.txt

Edit: I tested it on Kubuntu (16.04), since my Raspberry Pi is currently headless. I hope it also works on Raspian.

sikaiser avatar Apr 05 '18 21:04 sikaiser

awesome. now do album art. jk

mrwulff avatar Apr 05 '18 22:04 mrwulff

I still try to remake code from forum, and now on my bitbucket i did make little app with arguments- it allows to display temporary notifications on Raspbian os.: https://bitbucket.org/dzbiku/one_blue Still in progress, if someone wants to help or something, feel free to contact me. At the moment I want to add FM transmiter to play music in my direct from phone to old car audio.

ghost avatar Apr 19 '18 21:04 ghost