MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    UNSOLVED Would this be possible?

    Troubleshooting
    4
    17
    2048
    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.
    • M
      motdog last edited by

      I have the Spotify module that I love, but when I am not playing music I hate the black space in the corner where I have it located. Could I set it up so that when I am not playing Spotify music that another module shows in the space and when I play music, the module disappears? I know on the remote module I can manually hide and show modules but I want it done automatically. Can it be done?

      ? 1 Reply Last reply Reply Quote 0
      • B
        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
          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
            bolish last edited by

            Correct.

            1 Reply Last reply Reply Quote 0
            • ?
              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
                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
                  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
                  • ?
                    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
                      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
                      • ?
                        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
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy