Dear @raazalghul ,
first of all: sorry for the delay - I’m pretty busy these times.
As you can see above I’ve stopped to use ths module but
your detailed report made it easy to spot.
The culprit is the placement of updatesEvery in your config. It sits outside the config: {} block
(next to module, position, classes), so MagicMirror never passes it to the module. The value is
silently ignored and the module falls back to its default of 1 second — so despite updatesEvery: 5
it’s actually polling the Spotify API once per second (~3,600 calls/hour), which is what
eventually trips Spotify’s rate limit.
Move the line one level down, into config:
{
module: "MMM-NowPlayingOnSpotify",
position: "top_right",
classes: "page1",
config: {
updatesEvery: 5,
showCoverArt: true,
clientID: "...",
clientSecret: "...",
redirectURI: "http://127.0.0.1:8888/callback"
}
},
At 5 s that’s ~720 calls/hour, well within limits. Each poll cycle makes exactly one API request,
so the interval maps directly to your API rate. No update or code change needed.
This should resolve your problem.
Have fun!
Warm regards,
Ralf