raywo / MMM-NowPlayingOnSpotify

A module for MagicMirror displaying the song currently playing on Spotify.
MIT License
205 stars 43 forks source link

Pihole - api.spotify.com spam #89

Open AFCM1 opened 3 years ago

AFCM1 commented 3 years ago

Hello,

I have this module running fine on my Rpi. This same Rpi is also hosting a Pihole instance. Few days ago, I noticed that my Pihole query logs was filled with queries from api.spotify.com

Is that a normal behaviour? If not what should I do to stop these API spams?

Fabrizz commented 3 years ago

Yeah, depending on how you configured it it reaches Spotify X times per minute to fetch the current playback. Spotify Api Endpoint

mattbruman commented 3 years ago

Yeah, depending on how you configured it it reaches Spotify X times per minute to fetch the current playback. Spotify Api Endpoint

Where can I edit how often it pings? Right now by default its twice every second that seems excessive for just needed to know what song is playing.

Fabrizz commented 3 years ago

Yeah, depending on how you configured it it reaches Spotify X times per minute to fetch the current playback. Spotify Api Endpoint

Where can I edit how often it pings? Right now by default its twice every second that seems excessive for just needed to know what song is playing.

I don't know if the updatesEvery config option changes the polling rate to spotify or just the dom builder, but try that.

DJB1966 commented 3 years ago

Did anyone find a fixed problem with api.spotify.com pihole spam I'm having the same problem?

l3d00m commented 2 years ago

@DJB1966 set config updatesEvery: 5 or something, it specifies in seconds how often spotify is fetched. this will make your progress bar jump more though IIRC.