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.

    Would this be possible?

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    17 Posts 4 Posters 4.3k Views 4 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.
    • B Offline
      bolish
      last edited by

      Hi,

      I believe you can do it with MMM-NotificationTrigger and MMM-RemoteControl.
      i.e :
      When Spotify stops, send notification “SPOTIFY STOP”. (within Spotify module)

      When “SPOTIFY STOP” is received by MMM-NotificationTrigger, send “HIDE MODULE Spotify” to MMM-RemoteControl.

      Of course, code is not correctly written, but that’s how I would do it. MMM-NotificationTrigger and MMM-RemoteControl are pretty easy to use.

      FYI, I’m already doing that with news / compliments modules. When news article is made bigger by the “Article_more-details” notification, then the compliment module is hidden.
      Once “article-less-details” is triggered, then the compliment module is shown again.

      Regards

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        motdog @bolish
        last edited by

        @bolish Thanks. I guess then I could also reverse it so when spotify plays music, it would hide the other module and then spotify would appear on my mirror.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bolish
          last edited by

          Correct.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @motdog
            last edited by

            @motdog
            Are you talking about “MMM-Spotify”?

            You can do it more simple way.
            Add this into your css/custom.css

            #SPOTIFY.pausing {
            display:none;
            }

            This could make module hiding when paused.

            M S 2 Replies Last reply Reply Quote 0
            • B Offline
              bolish
              last edited by

              When the boss talks… :-)
              Indeed it seems easier as @Sean proposed if you use his new MMM-Spotify module. (Which I will try soon also).
              I’ve learnt one more thing myself.
              Thanks.

              1 Reply Last reply Reply Quote 0
              • M Offline
                motdog @Guest
                last edited by

                @Sean yep. That’s it. So if I put another module in the same spot but after it in the config, Spotify would show up when playing and when paused/shut down the other module would show up?

                ? 1 Reply Last reply Reply Quote 0
                • ? Offline
                  A Former User @motdog
                  last edited by A Former User

                  @motdog
                  Later module will jump down when spotify is appeared.

                  M 1 Reply Last reply Reply Quote 0
                  • M Offline
                    motdog @Guest
                    last edited by motdog

                    @Sean after further review I am using MMM-NowPlayingonSpotify Would it work on that or do I need to install MMM-Spotify. Looks like they do the same thing, MMM-Spotify lets you control via voice if you so choose, which I don’t have set up but it shouldn’t be a problem I assume.

                    ? 1 Reply Last reply Reply Quote 0
                    • ? Offline
                      A Former User @motdog
                      last edited by A Former User

                      @motdog
                      Controlling spotify on MM (besides voice, there could be many possibilities, - sensors, or any programmable condition) is difference. If you need not, nothing different.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        motdog @Guest
                        last edited by

                        @Sean thanks. Ill try to modify the .css in the module I have and see what happens.

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