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

Would this be possible?

Scheduled Pinned Locked Moved Unsolved Troubleshooting
17 Posts 4 Posters 3.4k 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.
  • M Offline
    motdog
    last edited by Mar 20, 2019, 1:32 PM

    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 Mar 20, 2019, 9:52 PM Reply Quote 0
    • B Offline
      bolish
      last edited by Mar 20, 2019, 3:14 PM

      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 Mar 20, 2019, 3:55 PM Reply Quote 0
      • M Offline
        motdog @bolish
        last edited by Mar 20, 2019, 3:55 PM

        @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 Mar 20, 2019, 9:32 PM

          Correct.

          1 Reply Last reply Reply Quote 0
          • ? Offline
            A Former User @motdog
            last edited by Mar 20, 2019, 9:52 PM

            @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 Mar 20, 2019, 10:33 PM Reply Quote 0
            • B Offline
              bolish
              last edited by Mar 20, 2019, 9:55 PM

              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 Mar 20, 2019, 10:33 PM

                @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 Mar 20, 2019, 10:51 PM Reply Quote 0
                • ? Offline
                  A Former User @motdog
                  last edited by A Former User Mar 20, 2019, 10:53 PM Mar 20, 2019, 10:51 PM

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

                  M 1 Reply Last reply Mar 21, 2019, 1:23 PM Reply Quote 0
                  • M Offline
                    motdog @Guest
                    last edited by motdog Mar 21, 2019, 1:25 PM Mar 21, 2019, 1:23 PM

                    @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 Mar 21, 2019, 1:38 PM Reply Quote 0
                    • ? Offline
                      A Former User @motdog
                      last edited by A Former User Mar 21, 2019, 1:39 PM Mar 21, 2019, 1:38 PM

                      @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 Mar 21, 2019, 2:46 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/17
                        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