Read the statement by Michael Teeuw here.
Would this be possible?
-
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
-
@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.
-
Correct.
-
@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.
-
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. -
@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?
-
@motdog
Later module will jump down when spotify is appeared. -
@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.
-
@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. -
@Sean thanks. Ill try to modify the .css in the module I have and see what happens.