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.

    MMM-Sonos - Display what is currently playing on your Sonos network

    Scheduled Pinned Locked Moved Entertainment
    25 Posts 8 Posters 7.5k 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.
    • H Offline
      hweigel
      last edited by

      @tbouron: first of all, very noice module, chapeau! Now the inevitable nag: is there any means of reducing the font size (especially the track)? Any hint/idea appreciated!

      T 1 Reply Last reply Reply Quote 0
      • T Offline
        tbouron Module Developer @hweigel
        last edited by

        @hweigel Thanks, that’s very much appreciated!

        The module specifies classes for each element, like this one for the track so you can customise the font size via your custom.css

        1 Reply Last reply Reply Quote 1
        • T Offline
          tbouron Module Developer
          last edited by

          Alright, so I took a deeper look and it turns out that my code to display groups had a bug which made devices reappear even though they were part of a group. That should be fixed now with version 1.2.0.

          I also added a new config flag to display the group’s full name, see README.md

          Regarding your comment @eliah on group volume, I disagree. The volume displayed is the global volume of group, which is exactly what the sonos app displays. Displaying volume of all members wouldn’t make sense here as this module doesn’t control the speakers (again, the sonos app does exactly this, it displays the group volume, then display individual speaker volume when, and only when, you change the volume)
          That’s why I’m going to skip your request. However if you strongly feel it should be there, the code is open source on GitHub so feel free to fork the repo and implement it :)

          And finally, simply git fetch origin && git pull origin master within MMM-Sonos folder to update the module. Enjoy!

          1 Reply Last reply Reply Quote 0
          • T Offline
            thchristensendk
            last edited by

            I am not able to get the module on the screen it is just blank when i play music on my Sonos units. My error log looks as below:

            Do anyone have an idea to what is wrong?

            0|mm | at createError (/home/pi/MagicMirror/modules/MMM-Sonos/node_mod ules/axios/lib/core/createError.js:16:15)
            0|mm | at settle (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/ axios/lib/core/settle.js:17:12)
            0|mm | at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/module s/MMM-Sonos/node_modules/axios/lib/adapters/http.js:237:11)
            0|mm | at IncomingMessage.emit (events.js:187:15)
            0|mm | at endReadableNT (_stream_readable.js:1090:12)
            0|mm | at process._tickCallback (internal/process/next_tick.js:63:19)
            0|mm | [15:26:18.931] [ERROR] (node:1174) UnhandledPromiseRejectionWarnin g: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 26)
            0|mm | [15:26:19.373] [ERROR] (node:1174) UnhandledPromiseRejectionWarnin g: Error: Request failed with status code 405
            0|mm | at createError (/home/pi/MagicMirror/modules/MMM-Sonos/node_mod ules/axios/lib/core/createError.js:16:15)
            0|mm | at settle (/home/pi/MagicMirror/modules/MMM-Sonos/node_modules/ axios/lib/core/settle.js:17:12)
            0|mm | at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/module s/MMM-Sonos/node_modules/axios/lib/adapters/http.js:237:11)
            0|mm | at IncomingMessage.emit (events.js:187:15)
            0|mm | at endReadableNT (_stream_readable.js:1090:12)
            0|mm | at process._tickCallback (internal/process/next_tick.js:63:19)
            0|mm | [15:26:19.380] [ERROR] (node:1174) UnhandledPromiseRejectionWarnin g: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 31)

            1 Reply Last reply Reply Quote 0
            • P Offline
              PH1TCH @tbouron
              last edited by

              @tbouron I totally understand your concept and I think you created a really cool and good looking MMM! However, the albumart would be a really nice addition. Is there really no chance of adding it to the module? Sorry for nagging :winking_face:

              StoffbeuteluweS 1 Reply Last reply Reply Quote 0
              • T Offline
                tbouron Module Developer
                last edited by

                @PH1TCH I don’t want to have to support something that I don’t use so I’m afraid I’m going to decline.

                However, seems you are lucky as someone created a fork that includes the album cover: https://github.com/armybean/MMM-Sonos

                1 Reply Last reply Reply Quote 0
                • StoffbeuteluweS Offline
                  Stoffbeuteluwe Project Sponsor @PH1TCH
                  last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote 0
                  • DesaydroneD Offline
                    Desaydrone
                    last edited by

                    Hello,

                    I install this module but i got this error :

                    0|mm  | Failed to get groups: No device found. Retrying in 1 seconds ...
                    

                    Did i made a mistake ?

                    T 1 Reply Last reply Reply Quote 0
                    • T Offline
                      tbouron Module Developer @Desaydrone
                      last edited by

                      @Desaydrone The error message suggest the plugin is not able to find a Sonos device on the network. Although, it automatically retries until it finds one.

                      Is there any other messages like this on the logs? Are you sure your speakers are on the same LAN?

                      1 Reply Last reply Reply Quote 0
                      • DesaydroneD Offline
                        Desaydrone
                        last edited by

                        @tbouron

                        Yes my sonos are on the same lan, i let it all the night and didn’t find them. I can ping them from my magic mirror.

                        And i don’t have any other messages in log :(

                        Can i send so command line to have more information ?

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