ich versuche gerade das Binding für Spotify einzurichten gemäß:
https://tutorials-raspberrypi.de/remote ... inrichten/
Die Anleitung ist sehr gut, leider bekomme ich beim Ausführen der Authentifizierung den Fehler "INVALID_CLIENT: Invalid client".
Was habe ich gemacht:
- Ich habe mich bei Spotify-Developer angemeldet und mir eine spotify_client_id & spotify_client_secret erstellt.
- In der spotify.py steht die Zeile [REDIRECT_URI = 'http://openhabianpi:8080/static/spotify-auth.html']
- Bei Spotify wurde die Redirect Adresse "openhabianpi:8080" angegeben
Beim Authentifizieren erscheint dann der Fehler "INVALID_CLIENT: Invalid client"
Wenn ich das Skript manuell ausführe bekomme ich folgende Ausgabe:
Skript: (/usr/bin/python /etc/openhab2/scripts/spotify.py)
_______________________________________________________________________
[20:26:57] openhabian@openHABianPi:~$ /usr/bin/python /etc/openhab2/scripts/spot ify.py
Successfully got state from OpenHab: spotify_client_id
Successfully got state from OpenHab: spotify_client_secret
Successfully got state from OpenHab: spotify_access_token
Successfully got state from OpenHab: spotify_refresh_token
Successfully got state from OpenHab: spotify_token_issued
Successfully got state from OpenHab: spotify_token_expiry
-- Calling Token Refresh Service
{'Content-Length': '63', 'Keep-Alive': 'timeout=600', 'Server': 'nginx', 'Connec tion': 'keep-alive', 'Date': 'Sun, 07 Oct 2018 18:27:37 GMT', 'Content-Type': 'a pplication/json'}
{u'error_description': u'Invalid client', u'error': u'invalid_client'}
Successfully got state from OpenHab: spotify_auth_code
-- Calling Token Service for the first time
{'Content-Length': '63', 'Keep-Alive': 'timeout=600', 'Server': 'nginx', 'Connec tion': 'keep-alive', 'Date': 'Sun, 07 Oct 2018 18:27:37 GMT', 'Content-Type': 'a pplication/json'}
{u'error_description': u'Invalid client', u'error': u'invalid_client'}
-- Calling Service: Update
{u'error': {u'status': 401, u'message': u'Invalid access token'}}
-> Item node missing from response

Successfully posted state to OpenHab: spotify_lastConnectionDateTime = 2018-10-0 7T18:27:37+0000
Done in 0.6149559021 seconds
[20:27:37] openhabian@openHABianPi:~$
_______________________________________________________________________
Kann mir jemand bei der Fehlersuche unterstützen?