Fabrizz / MMM-OnSpotify

Highly customizable MM2 module that displays what you are listening to in Spotify. Compatible with MMM-LiveLyrics and DynamicTheming.
MIT License
53 stars 9 forks source link

Notification Payload not correct #77

Closed martbrad11 closed 2 weeks ago

martbrad11 commented 3 weeks ago

I'm trying to use the Notifications to run in a script. I can see the NOW_PLAYING notification but it's payload is always '[Object' Can you help me understand why, I expected a song ID

Fabrizz commented 2 weeks ago

Hey, are you stringifying the response?

https://github.com/Fabrizz/MMM-OnSpotify/blob/77af57cef839dc7a5ad457f75ca99ea73a9dba93/MMM-OnSpotify.js#L349-L362

The data sent seems to be correct. Are you listening when the song changes or are you sending a GET_PLAYING notification?

martbrad11 commented 2 weeks ago

I was listening when the song changes, not sure if I was "stringifying" the response. Moved on now and decided to do my project another way outside MagicMirror Thanks