• 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.

Airplay 'Now Playing' module - help badly needed

Scheduled Pinned Locked Moved Development
16 Posts 8 Posters 11.9k Views 9 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.
  • ? Offline
    A Former User
    last edited by Jan 17, 2017, 2:12 PM

    Are there any updates to this module?

    1 Reply Last reply Reply Quote 1
    • B Offline
      Brice
      last edited by Jan 25, 2017, 1:24 PM

      I’m also interested in the development of this module.
      I’ve started to recompile Shairport-sync so it can write a plain .TXT file with the metadata each time a new song is detected, now I have to read the last line of this TXT file through a MM-module. But I don’t know if this is the right direction, editing the core of Shairport-sync seems like a bad idea (no updates, etc). I wish I could read metadatas via the pipe in a less complex way. Anyone has worked on this ? Thanks !

      1 Reply Last reply Reply Quote 0
      • S Offline
        surekap
        last edited by Jan 29, 2017, 9:25 PM

        ANNOUNCE: Check out https://github.com/surekap/MMM-ShairportMetadata

        Its my first attempt at writing anything in node.js so I basically wrote a python script to translate the XML from shairport-sync into json objects.
        The module manages a child process which pipes the XML to the Py script and reads the json and displays it.

        1 Reply Last reply Reply Quote 1
        • B Offline
          Brice
          last edited by Jan 30, 2017, 8:51 AM

          Thanks a lot @surekap for this amazing module. It works !
          Quick suggestions :

          • hide the module if no airplay device is connected / no song playing
          • align text & image on left/right depending on the module position (currently both centered in its container)
          S 1 Reply Last reply Jan 30, 2017, 11:29 AM Reply Quote 0
          • S Offline
            surekap @Brice
            last edited by Jan 30, 2017, 11:29 AM

            @Brice changes made. Check out the “alignment” config option.

            The hide behaviour is not perfect - takes a few seconds to hide the module - this is because we issue the hide command in case of ‘pfls’ [play flush] and ‘pend’ [play end] metadata commands. Unfortunately, the ‘pfls’ command is followed up with fresh metadata and it takes a few seconds for the ‘pend’ to come from the iPhone.

            Tested with playing and pausing repeatedly.

            1 Reply Last reply Reply Quote 1
            • 1
            • 2
            • 2 / 2
            • 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