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

MMM-Sonos - To show what your SONOS is playing.

Scheduled Pinned Locked Moved Entertainment
29 Posts 17 Posters 26.1k Views 16 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.
  • F Offline
    flopp @flopp
    last edited by flopp Sep 4, 2019, 10:47 AM Sep 4, 2019, 10:46 AM

    @flopp said in MMM-Sonos - To show what your SONOS is playing.:

    When I play TV sound on my Beam it will show up in Magic Mirror even if that it seems to be that is should hide

                    // if Sonos Playbar is in TV mode, no title is provided and therefore the room should not be displayed
                    var isEmpty = (artist && artist.trim().length) == 0
                            && (track && track.trim().length) == 0
                            && (cover && cover.trim().length) == 0;
    
    

    I now have forked this and correct the problem and also done some small changes. Added radio station name when playing Radio. Showing artist and track when playing radio.
    https://github.com/flopp999/MMM-Sonos

    S 1 Reply Last reply Nov 12, 2019, 7:26 AM Reply Quote 0
    • B Offline
      BD0G
      last edited by Nov 12, 2019, 12:39 AM

      Looks like I am missing settings.json under /home/pi/node-sonos-http-api. I went to magicmirrors IP address:5005/zones and saw the output from my sonos one time , but then on reboot I can no longer get the output to show up by visiting the above specified URL . I think it may be a result of this missing settings.json file.

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stoffbeuteluwe Project Sponsor @flopp
        last edited by Nov 12, 2019, 7:26 AM

        @flopp when I play Apple Music from my Sonos, is no artwork showing, anybody same problem

        1 Reply Last reply Reply Quote 0
        • B Offline
          BD0G @cohron
          last edited by BD0G Nov 14, 2019, 3:00 AM Nov 14, 2019, 2:58 AM

          @cohron OK , Im getting somewhere. When I visit http://192.168.1.5:5005/zones after installing sonos-http-api and then doing npm install --production and then npm start. I do see a webpage of output information from my sonos device.

          However, when I run my sonos.sh file after creating it like this

          create another pm2 script named sonos.sh in ~ directory
          cd ~
          sonos.sh file contents:
          cd ~/node-sonos-http-api
          DISPLAY=:0 npm start

          pm2 start sonos.sh
          pm2 start mm
          pm2 save

          It does start sonos as noted here

          │ id │ name │ mode │ ↺ │ status │ cpu │ memory │
          ├────┼────────────────────┼──────────┼──────┼──────────┼──────────┼──────────┤
          │ 0 │ MagicMirror │ fork │ 2 │ stopped │ 0% │ 0b │
          │ 1 │ sonos │ fork │ 212 │ online │ 0% │ 2.4mb │

          Then if I visit the same address (http://192.168.1.5:5005/zones) to see if there is still output . There is not!

          I realize that the Magic Mirror is not started as I stopped it as I just wanted to see if there was still output on http://192.168.1.5:5005/zones

          Sonos is playing when I visit http://192.168.1.5:5005/zones so there should be data being output.

          1 Reply Last reply Reply Quote 0
          • B Offline
            BD0G
            last edited by BD0G Dec 16, 2019, 8:12 PM Dec 14, 2019, 8:07 PM

            I finally solved this. Turned out I left out the tilde (~) in front of the /node-sonos-http-api within the sonos.sh file. So in essence the directory was never switched to execute the npm start command. So even though my PM2 status of running processes showed Sonos as a running process it was not providing the output data so that the module could display it

            1 Reply Last reply Reply Quote 0
            • B Offline
              BD0G
              last edited by Dec 16, 2019, 8:06 PM

              Any way to remove the Source: specifier?

              I tried
              showSource:False,
              within the config.js to no avail.

              1 Reply Last reply Reply Quote 0
              • B Offline
                BD0G
                last edited by BD0G Dec 16, 2019, 8:31 PM Dec 16, 2019, 8:07 PM

                I added the code to my custom.css file that was entered within one of the first posts and expected it to provide a new layout and look , but nothing changed?

                Its as if the entries in the custom.css are not being recognized.

                Do I need to add .MMM-Sonos right above the entires?

                Update: Tried that and still no effect.

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gekberlin
                  last edited by Dec 31, 2019, 4:59 PM

                  Hi @Snille,
                  i tried to achieve to display the different zones side by side. Unfortunately I didn’t find a correct box to float. Could you give me a hint ?

                  Happy new Year in advance from Berlin

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    cowboysdude Module Developer
                    last edited by Dec 12, 2022, 11:58 AM

                    VERY late to the party but Thank you so much for this…works like a charm!!!

                    M 1 Reply Last reply Jul 11, 2023, 12:30 PM Reply Quote 0
                    • M Offline
                      msulzer @cowboysdude
                      last edited by Jul 11, 2023, 12:30 PM

                      I started my magic mirror project recently and I am struggling to customize the module as follows:

                      Module on the Left side of the Mirror:
                      3d2dca81-f65b-43d0-b8ef-92943b46c273-grafik.png

                      Could somebody please be so kind and share the changes I need to make.

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