• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

bluetooth audio meta data

Scheduled Pinned Locked Moved Unsolved Requests
6 Posts 3 Posters 932 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jedilkeme
    last edited by Jan 31, 2024, 6:18 PM

    ive been searching for a module that will display the audio meta data from a bluetooth connection to the magic mirror, and have yet to find one. does anyone know of such a module or be willing to help me find the right direction?

    K J 2 Replies Last reply Feb 2, 2024, 5:03 AM Reply Quote 0
    • K Offline
      kayakbabe @jedilkeme
      last edited by Feb 2, 2024, 5:03 AM

      @jedilkeme maybe looking for RDS or RBDS decoding will help. One standard is used in North America (don’t remember which the other is European).
      There are some fm receiver projects for the pi that discuss getting the meta data. https://hackaday.com/2021/09/07/an-inexpensive-fm-receiver-for-the-raspberry-pi/ could maybe lead you to info you need. Though I am not sure if bluetooth audio is encoded into the audio stream in the same way as FM. It likely is. But again, maybe not.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jedilkeme @jedilkeme
        last edited by Feb 3, 2024, 3:17 AM

        i figured out a very hacky solution taking the meta data off of the dbus and spitting it into a text file using grep and from the third party module site i found a simple text file module to display it.

        then, to get constant updating, i set it on a cronjob and found a script to make it run every 5 seconds.

        it works well, but the text blanks for milliseconds at a time and is noticeable, i am sure some adjusting of the cronjobs can hopefully make it appear to be more steady.

        W K 2 Replies Last reply Feb 3, 2024, 1:16 PM Reply Quote 0
        • W Offline
          wishmaster270 Module Developer @jedilkeme
          last edited by Feb 3, 2024, 1:16 PM

          @jedilkeme Hi, I do not have time to provide examples at the moment but I am pretty sure you can use my MMM-CommandToNotification module to call your script and my MMM-ValuesByNotification to display the information.

          It seems that dbus is the only way to get the information.

          1 Reply Last reply Reply Quote 0
          • K Offline
            kayakbabe @jedilkeme
            last edited by Feb 6, 2024, 4:41 AM

            @jedilkeme Are you playing audio on your mirror? Or just including it as an output source as if it were a player along with other speakers and wanting it to display? If you are just playing to the mirror with a speaker in it, maybe switch hardware to something like this… ScoutMakes FM Radio Board - STEMMA QT / Qwiic? there is lots of example code. And the data can be obtained over i2c . The you can use a notifications module like wishmaster270 suggests.

            https://www.adafruit.com/product/5651?gad_source=1&gclid=CjwKCAiAq4KuBhA6EiwArMAw1CkSTxJ_mtdJMa8nsHrugQ0K9NQJjcs-J5pREWLWUQjjNugFIrnUJRoCwfkQAvD_BwE

            J 1 Reply Last reply Feb 11, 2024, 11:49 PM Reply Quote 0
            • J Offline
              jedilkeme @kayakbabe
              last edited by Feb 11, 2024, 11:49 PM

              @kayakbabe i am using the mirror as a BlueTooth pass-through for my home audio set-up, i connect to the mirror via BlueTooth, it automatically connects to the house audio works well now. thanks for your input!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                1/6
                Last post
              Enjoying MagicMirror? Please consider a donation!
              MagicMirror created by Michael Teeuw.
              Forum managed by Sam, technical setup by Karsten.
              This forum is using NodeBB as its core | Contributors
              Contact | Privacy Policy