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 1.1k 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.
    • kayakbabeK Offline
      kayakbabe @jedilkeme
      last edited by

      @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

        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.

        wishmaster270W kayakbabeK 2 Replies Last reply Reply Quote 0
        • wishmaster270W Offline
          wishmaster270 Module Developer @jedilkeme
          last edited by

          @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
          • kayakbabeK Offline
            kayakbabe @jedilkeme
            last edited by

            @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 Reply Quote 0
            • J Offline
              jedilkeme @kayakbabe
              last edited by

              @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
              • First post
                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