[Neues Modul] Spotify

Begonnen von neumann, 28 Mai 2017, 15:58:19

Vorheriges Thema - Nächstes Thema

suchmich1983

Hi,

ich hatte gar nicht gemerkt, dass die Integration nicht mehr funktioniert, weil ich das so selten nutze.

Im Prinzip funktioniert das Modul aber noch, einzig den Authorization Code müsst Ihr euch woanders wegholen, da scheinbar die Webseite des Entwicklers down ist.

Dazu könnt Ihr prinzipiell jeden Webserver nutzen.
Ihr legt das Modul also neu an und gebt als REDIRECT_URL den Webserver Eurer Wahl an.
Diese URL dann auch in der App in https://developer.spotify.com/ anpassen, sonst klappts nicht mit der Authorisierung.

Den Code könnt Ihr dann anschließend aus der Adresseleiste auslesen. Dort steht dann sowas wie "https://deineURL/blabla/?code=blablablabla

Bei mir läuft es nun wieder. Vermutlich läuft der Code irgendwann ab und das Modul stellt die Arbeit ein.

ahlermi

#286
Bei mir reicht das leider nicht:

2025.10.27 15:08:07 1: reload: Error:Modul 37_Spotify deactivated:
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"

2025.10.27 15:08:07 0: Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 368, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 368, near "0)"
Too many arguments for Cpanel::JSON::XS::encode_json at ./FHEM/37_Spotify.pm line 376, near "0)"
Not enough arguments for main::Spotify_apiRequest at ./FHEM/37_Spotify.pm line 376, near "0)"

Korrektur im 37_Spotify.pm

', encode_json {}, 'POST', 0);austauschen mit
', {}, 'POST', 0);
löst das Problem
PI4 FHEM, PI3 FHEM, 6 x Echo mit talk2fhem, Siri, SNIPS auf PI3 mit Samson UB1, YeeLight, Homematic, MAX!, 433Mhz, LaCross, Xiaomi Vacuum V1, ESPEasy, Gardena, Telegram, FLOORPLAN, HEOS, Xiaomi Aqara, Sonoff, SolvisMax, SolvisClient, HUE, ESPEasy für Bayernlüfter, Harmony, Tasmota, JKBMS, EASUN