skuethe/MMM-Spotify

Spotify logo doesn't update while playing music

akshitgandhi opened this issue · 4 comments

Hi, I installed the latest release of the module and I am seeing an issue where despite playing music on my Spotify app, I can't see any updates on my MM. I turned on debug = true to get some idea on what's wrong but there was no verbose output. I have attached the console log here for some reference. Can I get some help to debug/fix this problem?

Thanks

`> magicmirror@2.18.0 start

[11.02.2022 03:00.39.748] [LOG] Starting MagicMirror: v2.18.0
[11.02.2022 03:00.39.762] [LOG] Loading config ...
[11.02.2022 03:00.39.774] [LOG] Loading module helpers ...
[11.02.2022 03:00.39.780] [LOG] No helper found for module: alert.
[11.02.2022 03:00.39.828] [LOG] Initializing new module helper ...
[11.02.2022 03:00.39.831] [LOG] Module helper loaded: updatenotification
[11.02.2022 03:00.39.834] [LOG] No helper found for module: clock.
[11.02.2022 03:00.40.188] [LOG] Initializing new module helper ...
[11.02.2022 03:00.40.191] [LOG] Module helper loaded: calendar
[11.02.2022 03:00.40.194] [LOG] No helper found for module: compliments.
[11.02.2022 03:00.40.197] [LOG] No helper found for module: weather.
[11.02.2022 03:00.40.249] [LOG] Initializing new module helper ...
[11.02.2022 03:00.40.254] [LOG] Module helper loaded: newsfeed
[11.02.2022 03:00.40.414] [LOG] Initializing new module helper ...
[11.02.2022 03:00.40.416] [LOG] Module helper loaded: MMM-Spotify
[11.02.2022 03:00.40.417] [LOG] All module helpers loaded.
[11.02.2022 03:00.40.674] [LOG] Starting server on port 8080 ...
[11.02.2022 03:00.40.722] [LOG] Server started ...
[11.02.2022 03:00.40.724] [LOG] Connecting socket for: updatenotification
[11.02.2022 03:00.40.727] [LOG] Starting module helper: updatenotification
[11.02.2022 03:00.40.728] [LOG] Connecting socket for: calendar
[11.02.2022 03:00.40.730] [LOG] Starting node helper for: calendar
[11.02.2022 03:00.40.731] [LOG] Connecting socket for: newsfeed
[11.02.2022 03:00.40.733] [LOG] Starting node helper for: newsfeed
[11.02.2022 03:00.40.734] [LOG] Connecting socket for: MMM-Spotify
[11.02.2022 03:00.40.736] [LOG] Sockets connected & modules started ...
[11.02.2022 03:00.42.275] [LOG] Launching application.
[3225:0211/030044.381889:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
[3266:0211/030044.774827:ERROR:sandbox_linux.cc(376)] InitializeSandbox() called with multiple threads in process gpu-process.
[11.02.2022 03:00.48.934] [LOG] Create new calendarfetcher for url: http://www.calendarlabs.com/ical-calendar/ics/76/US_Holidays.ics - Interval: 300000
[11.02.2022 03:00.49.017] [LOG] Create new newsfetcher for url: https://rss.nytimes.com/services/xml/rss/nyt/HomePage.xml - Interval: 300000
[11.02.2022 03:00.49.252] [INFO] Checking git for module: MMM-Spotify
[11.02.2022 03:00.49.325] [LOG] [SPOTIFY] MMM-Spotify Version: 2.1.0
[11.02.2022 03:00.49.341] [DEBUG] [SPOTIFY - test_mirror] Spotify version 2.1.0 Initialized...
[11.02.2022 03:00.49.414] [INFO] Checking git for module: default
[11.02.2022 03:00.49.845] [LOG] [SPOTIFY] Started with Account: test_mirror
[11.02.2022 03:00.50.180] [INFO] Calendar-Fetcher: Broadcasting 10 events.
[11.02.2022 03:00.50.800] [INFO] Newsfeed-Fetcher: Broadcasting 66 items.
`

There is no error from Spotify side here:

[11.02.2022 03:00.49.325] [LOG] [SPOTIFY] MMM-Spotify Version: 2.1.0
[11.02.2022 03:00.49.341] [DEBUG] [SPOTIFY - test_mirror] Spotify version 2.1.0 Initialized...
[11.02.2022 03:00.49.845] [LOG] [SPOTIFY] Started with Account: test_mirror

Do you have allowDevices set? If so, is the device you are testing part of that?
https://github.com/skuethe/MMM-Spotify#detail--default

I did not have any values inside allowDevices, but I tried again with and without adding devices to this list but still no luck. So for debugging I was printing out the response from Spoitfy here

if (result === "undefined" || code !== 200) {
and I was seeing that I was getting response code as 204. Do you have any ideas why I could be getting no reponse back / response other than 200? Btw I am testing from a free dummy account so not sure if Spotify APIs treat that separately

https://github.com/skuethe/MMM-Spotify#restrictions

Some of Spotify's API calls we are using are limited to premium accounts only! If you are using a free account, you will probably run into problems at some point

As mentioned, I cannot support this module for the free version of Spotify. If you are still having problems when using a premium account, let me know and re-open the issue. Thanks