Read the statement by Michael Teeuw here.
MMM-NowPlayingOnSpotify
-
Hello everyone!
I recently added the MMM-NowPlayingOnSpotify to my magic mirror. It works but I want to try to make the pause icon functional.
I binded a eventListener click to the icon but here is the problem. Because of the fact (if I got this right) that the Dom is recreated every second (Every second the module asks the new data from spotify) the click event listener does not work properly. Sometimes the event is not triggerd because of the fact that the icon is not ready or binded.
Sometimes I trigger it, sometimes I don’t. Someone who knows how to solve it? I thought to update the dom every second instead of recreating it but that is a lot of adjustments I have to make.
If you have a idea, let me know please. Thanks!
ps: I know the module is meant to have a non-functional pause button but I would like to be able to pause music by touching the button on my mirror just because of the fact I don’t know if i’m going to implement voice control.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login