NEWS
[Vorlage] Spotify Skript
-
Mhm ok. Mittlerweile wirft das Skript auch einen Fehler. Vielleicht kannst du damit was anfangen:
! host.raspbian 2018-02-13 00:12:25.343 error instance system.adapter.javascript.0 terminated with code 0 (OK)
! Caught 2018-02-13 00:12:25.343 error by controller[0]: at IncomingMessage.g (events.js:292:16)
! Caught 2018-02-13 00:12:25.343 error by controller[0]: at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1085:12)
! Caught 2018-02-13 00:12:25.343 error by controller[0]: at Request.emit (events.js:188:7)
! Caught 2018-02-13 00:12:25.343 error by controller[0]: at emitOne (events.js:96:13)
! Caught 2018-02-13 00:12:25.342 error by controller[0]: at Request. (/opt/iobroker/node_modules/request/request.js:1163:10)
! Caught 2018-02-13 00:12:25.342 error by controller[0]: at Request.emit (events.js:191:7)
! Caught 2018-02-13 00:12:25.342 error by controller[0]: at emitTwo (events.js:106:13)
! Caught 2018-02-13 00:12:25.341 error by controller[0]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22)
! Caught 2018-02-13 00:12:25.341 error by controller[0]: at Request._callback (script.js.Spotify.Spotify:173:24)
! Caught 2018-02-13 00:12:25.341 error by controller[0]: at script.js.Spotify.Spotify:349:92
! Caught 2018-02-13 00:12:25.340 error by controller[0]: TypeError: Cannot read property 'replace' of null
! javascript.0 2018-02-13 00:12:25.210 error at IncomingMessage.g (events.js:292:16)
! javascript.0 2018-02-13 00:12:25.210 error at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1085:12)
! javascript.0 2018-02-13 00:12:25.210 error at Request.emit (events.js:188:7)
! javascript.0 2018-02-13 00:12:25.210 error at emitOne (events.js:96:13)
! javascript.0 2018-02-13 00:12:25.210 error at Request. (/opt/iobroker/node_modules/request/request.js:1163:10)
! javascript.0 2018-02-13 00:12:25.210 error at Request.emit (events.js:191:7)
! javascript.0 2018-02-13 00:12:25.210 error at emitTwo (events.js:106:13)
! javascript.0 2018-02-13 00:12:25.210 error at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22)
! javascript.0 2018-02-13 00:12:25.210 error at Request._callback (script.js.Spotify.Spotify:173:24)
! javascript.0 2018-02-13 00:12:25.210 error at script.js.Spotify.Spotify:349:92
! javascript.0 2018-02-13 00:12:25.210 error TypeError: Cannot read property 'replace' of null
! javascript.0 2018-02-13 00:12:25.210 error uncaught exception: Cannot read property 'replace' of null
! javascript.0 2018-02-13 00:12:25.148 warn Object "javascript.0.Spotify.Playlists.Symphoniacs–Symphoniacs.id" does not exist
! javascript.0 2018-02-13 00:12:25.139 warn Object "javascript.0.Spotify.Playlists.MeineShazam-Titel.id" does not exist
! javascript.0 2018-02-13 00:12:24.787 warn at Object. (script.js.Spotify.Spotify:652:118)
! javascript.0 2018-02-13 00:12:24.783 warn getState "javascript.0.Spotify.Playlists.MeineShazam-Titel.id" not found (3)
! javascript.0 2018-02-13 00:12:24.782 warn at Object. (script.js.Spotify.Spotify:652:42)
! javascript.0 2018-02-13 00:12:24.757 warn getState "javascript.0.Spotify.Playlists.MeineShazam-Titel.owner" not found (3)Sagt dir das was? Er hat es nämlich geschafft die Playlist MeineShazam anzulegen, aber ohne Musiktitel. Alle weiteren Playlists fehlen bzw die Songs aus MeineShazam.
Edit: Ok ich konnte den Fehler beheben. Ich hatte eine mittlerweile leere Playlist in Spotify die ich abonniert hatte. Diese war nicht mehr verfügbar und hat wohl den Fehler erzeugt. Wäre natürlich trotzdem nett wenn das Skript sowas abfängt, aber jetzt keine muss
-
Hallo zusammen,
bei mir funktioniert der Get Paylist Button auch nicht. Im Log habe ich allerdings keine Meldungen.
Gruß
Chris
EDIT: OK jetzt geht es. Ich musste das Skript nach der Authorisierung nochmal neustarten.
-
Ich habe das Skript von Lucky mal in einen Adapter gepackt: https://github.com/twonky4/ioBroker.spotify-premium
Wäre toll wenn noch jemand außer mir das testen könnte
-
Hi,
nutzt der Adapter exakt dieselben Datenpunkt/Objekte wie das Script?
Muss ich die Objekte vorher löschen oder reicht es zum test das Script zu stoppen?
Ich hoffe die Konfig ist selbsterklärend !?
Gruß
-
Ist das SONOS Problem zwischenzeitlich erledigt? Oder geht das leider noch nicht? Irgendwo hier im Thread stand ja mal, dass SONOS aktuell nicht will?
Wenn es erledigt ist, teste ich den Adapter sehr gerne!
-
Die Datenpunkte unterscheiden sich nur am Anfang, da Lucky Script im javascript-Container läuft, ansonsten ist alles gleich:
Lucky Skript: javascript.0.Spotify.Player.Play
Adapter: spotify-premium.0.Player.Play
Löschen musst du nix, die beiden Sachen sollten sich nicht in die quere kommen. Das aktivieren funktioniert ähnlich wie Luckys Skript und ist in den Adapter Einstellungen beschrieben.
-
Adapter installiert.
1. Texte zur Einrichtung teilweise kein "schönes Deutsch"
2. Nach erfolgreicher Authorisierung geht "Get_User_Playlist" & "Get_Devices" nicht. Adapter musst erneut gestartet werden. Problem wurde glaube ich hier schon mal erwähnt.
3. Weiß nicht warum aber Adapter und Script zeigen unterschiedliche Devices an.
Jetzt Views an die neuen Objecte anpassen … :shock:
-
1. okay? Ich hätte das vielleicht nicht spät Abends machen sollen Weißt du wie github funktioniert? Ich bin für Pull Request offen
2. Das war mir noch nicht bekannt. Lässt sich vlt. automatisieren, ich gucke mal. Alternative wäre, es in der Anleitung zu erwähnen.
3. :shock: Sollte eigentlich nicht so sein.
-
Kein Thema.
Das mit dem text steht auch im Script so glaube ich. Ist mir eben zum ersten mal aufgefallen und auch nur Kosmetik.
Pull request… noch nie gemacht :oops:
EDIT: habe das mit dem Pull Request mal versucht
-
Danke wendy! Ist jetzt drin
-
Hi,
habe den Adapetr installiert. Leider bekomme ich ich bei der Return_URL die Fehlermdlung vom Browser:
"Missing required parameter: client_id"
Obwohl ich die richtige Client ID im Adapter eingetragen habe. Adapterneustart bringt auch keinen Erfolg.
Beim Script hatte ich eigentlich keine Probleme und die Return_Url hat immer gepasst.
Woran kann es liegen?
Hier der Debug-Log dazu:
! ````
spotify-premium.0 2018-02-15 20:53:46.489 debug keine Token in Serverantwort gefunden !
spotify-premium.0 2018-02-15 20:53:46.488 debug false
spotify-premium.0 2018-02-15 20:53:46.145 debug GetToken
spotify-premium.0 2018-02-15 20:53:46.135 debug call listener Authorization.Authorization_Return_URI
spotify-premium.0 2018-02-15 20:53:46.132 debug stateChange spotify-premium.0.Authorization.Authorization_Return_URI {"val":"https://accounts.spotify.com/de/authorize/?client_id=&response_type=code&redirect_uri=http%3A%2F%2Flocalhost&state=gmUXZsm
spotify-premium.0 2018-02-15 20:53:33.140 debug no listener for Authorization.Authorization_URL found
spotify-premium.0 2018-02-15 20:53:33.137 debug stateChange spotify-premium.0.Authorization.Authorization_URL {"val":"https://accounts.spotify.com/de/authorize/?client_id=&response_type=code&redirect_uri=http%3A%2F%2Flocalhost&state=gmUXZsmRB64W1N
spotify-premium.0 2018-02-15 20:53:27.829 debug call listener Authorization.Authorized
spotify-premium.0 2018-02-15 20:53:27.828 debug stateChange spotify-premium.0.Authorization.Authorized {"val":false,"ack":true,"ts":1518724407814,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518722954877}
spotify-premium.0 2018-02-15 20:53:27.817 debug no listener for Authorization.Authorization_URL found
spotify-premium.0 2018-02-15 20:53:27.816 debug stateChange spotify-premium.0.Authorization.Authorization_URL {"val":"https://accounts.spotify.com/de/authorize/?client_id=&response_type=code&redirect_uri=http%3A%2F%2Flocalhost&state=gmUXZsmRB64W1N
spotify-premium.0 2018-02-15 20:53:27.803 debug no listener for Authorization.State found
spotify-premium.0 2018-02-15 20:53:27.802 debug stateChange spotify-premium.0.Authorization.State {"val":"gmUXZsmRB64W1NdEQj3N","ack":false,"ts":1518724407783,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518724407783}
spotify-premium.0 2018-02-15 20:53:27.789 debug call listener Authorization.Get_Authorization
spotify-premium.0 2018-02-15 20:53:27.778 debug request_authorization
spotify-premium.0 2018-02-15 20:53:27.776 debug stateChange spotify-premium.0.Authorization.Get_Authorization {"val":true,"ack":false,"ts":1518724407761,"q":0,"from":"system.adapter.admin.0","lc":1518723138793}
spotify-premium.0 2018-02-15 20:51:52.502 debug call listener Authorization.Authorized
spotify-premium.0 2018-02-15 20:51:52.499 debug stateChange spotify-premium.0.Authorization.Authorized {"val":false,"ack":true,"ts":1518724312486,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518722954877}
spotify-premium.0 2018-02-15 20:51:52.462 warn no Token set
spotify-premium.0 2018-02-15 20:51:52.361 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2
spotify-premium.0 2018-02-15 20:51:52.283 debug statesDB connected
spotify-premium.0 2018-02-15 20:51:52.176 debug objectDB connected
spotify-premium.0 2018-02-15 20:49:22.740 info terminating
spotify-premium.0 2018-02-15 20:42:37.638 warn no Token set
spotify-premium.0 2018-02-15 20:42:37.529 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2
spotify-premium.0 2018-02-15 20:42:32.741 info terminating
spotify-premium.0 2018-02-15 20:39:37.825 warn no Token set
spotify-premium.0 2018-02-15 20:39:37.720 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2
spotify-premium.0 2018-02-15 20:35:33.463 info terminating
spotify-premium.0 2018-02-15 20:34:08.802 warn no Token set
spotify-premium.0 2018-02-15 20:34:08.709 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2
spotify-premium.0 2018-02-15 20:34:03.918 info terminating
spotify-premium.0 2018-02-15 20:33:09.703 warn no Token set
spotify-premium.0 2018-02-15 20:33:09.611 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2
spotify-premium.0 2018-02-15 20:33:00.507 info terminating
spotify-premium.0 2018-02-15 20:31:50.554 warn no Token set
spotify-premium.0 2018-02-15 20:31:50.435 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2
spotify-premium.0 2018-02-15 20:31:44.855 info terminating -
Hm,
Bei mir läuft es bis auf das ich vorhin Probleme hatte die Playlists zu laden.
Das muss ich morgen weiter untersuchen.
Gesendet von iPhone mit Tapatalk Pro
-
Hi, danke für das Script. Ich würde es gerne nutzen. Aber leider habe auch ich den Fehler bei der Return_URL:
"Missing required parameter: client_id"
Ich habe der URL dann meine ID hinzugefügt. Aber die eingetragene spotify-premium.0.Authorization.Authorization_Return_URI bringt keinen Erfolg.
spotify-premium.0.Authorization.Authorized bleibt leider bei false
-
Welche Version habt ihr installiert?
Gesendet von iPhone mit Tapatalk Pro
-
Welche Version habt ihr installiert?
Gesendet von iPhone mit Tapatalk Pro ` Ich habe die 0.0.3 gestern erstmalig installiert.
Mfg
Gesendet von meinem SM-G920F mit Tapatalk
-
Ich habe gerade Version https://github.com/twonky4/ioBroker.spotify-premium veröffentlicht. Enthalten ist:
-
Überprüfen das die Konfiguration korrekt gesetzt ist
-
Behoben: Adapter Konfiguration über den admin Version 2
-
Behoben: Neustart nach Autorisation nicht mehr nötig
-
-
Kannst du den Adapter veröffentlichen, das er auch im Admin unter Adapter auftaucht?
-
So hab die 0.0.4 gleich mal getestet.
Der Fehler mit der "Missing required parameter: client_id" ist weg, jetzt habe ich eine URL die mir zurück gegeben wird.
Allerdings sagt mir das Log das kein Token in der Antwort gefunden wurde.
Hier der Log.
! ````
spotify-premium.0 2018-02-16 09:44:07.852 debug keine Token in Serverantwort gefunden !
spotify-premium.0 2018-02-16 09:44:07.851 debug false
spotify-premium.0 2018-02-16 09:44:07.362 debug GetToken
spotify-premium.0 2018-02-16 09:44:07.349 debug call listener Authorization.Authorization_Return_URI
spotify-premium.0 2018-02-16 09:44:07.346 debug stateChange spotify-premium.0.Authorization.Authorization_Return_URI {"val":"http://localhost/?code=AQByC5ButU52487c9uM-ZpgiZBUV2RWMRrTIrV-ldnS9ldUGXB00voVeNqdOv4DI4aBzx1u7ZWna2ieBTPUgoaKMd8pZdO_a4AB
spotify-premium.0 2018-02-16 09:43:46.161 debug no listener for Authorization.Authorization_URL found
spotify-premium.0 2018-02-16 09:43:46.159 debug stateChange spotify-premium.0.Authorization.Authorization_URL {"val":"https://accounts.spotify.com/de/authorize/?client_id=4c643584dda542b1a669576278017993&response_type=code&redirect_uri=http%3A%2F%
spotify-premium.0 2018-02-16 09:43:23.027 debug call listener Authorization.Authorized
spotify-premium.0 2018-02-16 09:43:23.022 debug stateChange spotify-premium.0.Authorization.Authorized {"val":false,"ack":true,"ts":1518770603011,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518722954877}
spotify-premium.0 2018-02-16 09:43:23.019 debug no listener for Authorization.Authorization_URL found
spotify-premium.0 2018-02-16 09:43:23.014 debug stateChange spotify-premium.0.Authorization.Authorization_URL {"val":"https://accounts.spotify.com/de/authorize/?client_id=4c64b6dadda542b1a669576278017993&response_type=code&redirect_uri=http%3A%2F%
spotify-premium.0 2018-02-16 09:43:23.009 debug no listener for Authorization.State found
spotify-premium.0 2018-02-16 09:43:23.007 debug stateChange spotify-premium.0.Authorization.State {"val":"sQEZPiuPAR4TZij1U02x","ack":false,"ts":1518770602991,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770602991}
spotify-premium.0 2018-02-16 09:43:22.998 debug call listener Authorization.Get_Authorization
spotify-premium.0 2018-02-16 09:43:22.986 debug request_authorization
spotify-premium.0 2018-02-16 09:43:22.984 debug stateChange spotify-premium.0.Authorization.Get_Authorization {"val":true,"ack":false,"ts":1518770602972,"q":0,"from":"system.adapter.admin.0","lc":1518723138793}
spotify-premium.0 2018-02-16 09:43:06.350 debug call listener Authorization.Authorized
spotify-premium.0 2018-02-16 09:43:06.347 debug stateChange spotify-premium.0.Authorization.Authorized {"val":false,"ack":true,"ts":1518770586333,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518722954877}
spotify-premium.0 2018-02-16 09:43:06.329 warn no Token set
spotify-premium.0 2018-02-16 09:43:06.220 info starting. Version 0.0.4 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v6.12.2Die ReturnURL wurde im Log abgeschnitten.
-
Moin,
ich habe mit Version 0.1.0 begonnen die lief eigentlich. Dann auf 0.3.0 upgedatet und jetzt geht es nicht mehr.
Adapter restartet sich ständig siehe logfile:
! ````
host.openmediavault 2018-02-16 09:50:08.553 info Restart adapter system.adapter.spotify-premium.0 because enabled
host.openmediavault 2018-02-16 09:50:08.553 error instance system.adapter.spotify-premium.0 terminated with code 0 (OK)
spotify-premium.0 2018-02-16 09:50:08.447 info terminating
spotify-premium.0 2018-02-16 09:50:08.440 debug call listener Authorization.Authorization_Return_URI
spotify-premium.0 2018-02-16 09:50:08.440 debug ack: true
spotify-premium.0 2018-02-16 09:50:08.440 debug stateChange spotify-premium.0.Authorization.Authorization_Return_URI {"val":"","ack":true,"ts":1518771008437,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770589810}
spotify-premium.0 2018-02-16 09:50:08.438 debug no listener for Authorization.Authorization_URL found
spotify-premium.0 2018-02-16 09:50:08.437 debug stateChange spotify-premium.0.Authorization.Authorization_URL {"val":"","ack":true,"ts":1518771008435,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770589808}
spotify-premium.0 2018-02-16 09:50:08.434 debug cleaned everything up...
spotify-premium.0 2018-02-16 09:50:08.434 error at IncomingMessage.g (events.js:260:16)
spotify-premium.0 2018-02-16 09:50:08.434 error at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1085:12)
spotify-premium.0 2018-02-16 09:50:08.434 error at Request.emit (events.js:169:7)
spotify-premium.0 2018-02-16 09:50:08.434 error at emitOne (events.js:77:13)
spotify-premium.0 2018-02-16 09:50:08.434 error at Request. (/opt/iobroker/node_modules/request/request.js:1163:10)
spotify-premium.0 2018-02-16 09:50:08.434 error at Request.emit (events.js:172:7)
spotify-premium.0 2018-02-16 09:50:08.434 error at emitTwo (events.js:87:13)
spotify-premium.0 2018-02-16 09:50:08.434 error at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22)
spotify-premium.0 2018-02-16 09:50:08.434 error at Request._callback (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:111:32)
spotify-premium.0 2018-02-16 09:50:08.434 error at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:965:31
spotify-premium.0 2018-02-16 09:50:08.434 error ReferenceError: DummyBody is not defined
spotify-premium.0 2018-02-16 09:50:08.432 error uncaught exception: DummyBody is not defined
spotify-premium.0 2018-02-16 09:50:08.430 debug Intervall202
spotify-premium.0 2018-02-16 09:50:08.292 debug Spotify API Call.../v1/me/player
spotify-premium.0 2018-02-16 09:50:08.292 debug
spotify-premium.0 2018-02-16 09:50:03.504 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.504 debug stateChange spotify-premium.0.Devices.MirkosEcho.Use_for_Playback {"val":false,"ack":true,"ts":1518771003476,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.504 debug no listener for Devices.MirkosEcho.volume_percent found
spotify-premium.0 2018-02-16 09:50:03.504 debug stateChange spotify-premium.0.Devices.MirkosEcho.volume_percent {"val":40,"ack":true,"ts":1518771003476,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895965}
spotify-premium.0 2018-02-16 09:50:03.504 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.504 debug stateChange spotify-premium.0.Devices.MirkosEcho.Use_for_Playback {"val":false,"ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.504 debug no listener for Devices.MirkosEcho.type found
spotify-premium.0 2018-02-16 09:50:03.504 debug stateChange spotify-premium.0.Devices.MirkosEcho.type {"val":"Speaker","ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895965}
spotify-premium.0 2018-02-16 09:50:03.504 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.503 debug stateChange spotify-premium.0.Devices.MirkosEcho.Use_for_Playback {"val":false,"ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.503 debug no listener for Devices.MirkosEcho.name found
spotify-premium.0 2018-02-16 09:50:03.503 debug stateChange spotify-premium.0.Devices.MirkosEcho.name {"val":"Mirkos Echo","ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.503 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.502 debug stateChange spotify-premium.0.Devices.MirkosEcho.Use_for_Playback {"val":false,"ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.502 debug no listener for Devices.MirkosEcho.is_restricted found
spotify-premium.0 2018-02-16 09:50:03.502 debug stateChange spotify-premium.0.Devices.MirkosEcho.is_restricted {"val":false,"ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.501 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.501 debug stateChange spotify-premium.0.Devices.MirkosEcho.Use_for_Playback {"val":false,"ack":true,"ts":1518771003475,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.501 debug no listener for Devices.MirkosEcho.is_active found
spotify-premium.0 2018-02-16 09:50:03.501 debug stateChange spotify-premium.0.Devices.MirkosEcho.is_active {"val":false,"ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.501 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.499 debug stateChange spotify-premium.0.Devices.MirkosEcho.Use_for_Playback {"val":false,"ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.499 debug no listener for Devices.MirkosEcho.id found
spotify-premium.0 2018-02-16 09:50:03.499 debug stateChange spotify-premium.0.Devices.MirkosEcho.id {"val":"9f51cd781b1bae1e890e3008598f347c5af0a8b3","ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895964}
spotify-premium.0 2018-02-16 09:50:03.499 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.499 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.Use_for_Playback {"val":false,"ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895950}
spotify-premium.0 2018-02-16 09:50:03.499 debug no listener for Devices.Arbeitszimmer.volume_percent found
spotify-premium.0 2018-02-16 09:50:03.499 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.volume_percent {"val":27,"ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895963}
spotify-premium.0 2018-02-16 09:50:03.499 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.498 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.Use_for_Playback {"val":false,"ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895950}
spotify-premium.0 2018-02-16 09:50:03.497 debug no listener for Devices.Arbeitszimmer.type found
spotify-premium.0 2018-02-16 09:50:03.497 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.type {"val":"Speaker","ack":true,"ts":1518771003474,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895963}
spotify-premium.0 2018-02-16 09:50:03.497 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.497 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.Use_for_Playback {"val":false,"ack":true,"ts":1518771003473,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895950}
spotify-premium.0 2018-02-16 09:50:03.497 debug no listener for Devices.Arbeitszimmer.name found
spotify-premium.0 2018-02-16 09:50:03.497 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.name {"val":"Arbeitszimmer","ack":true,"ts":1518771003473,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895952}
spotify-premium.0 2018-02-16 09:50:03.497 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.497 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.Use_for_Playback {"val":false,"ack":true,"ts":1518771003473,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895950}
spotify-premium.0 2018-02-16 09:50:03.489 debug no listener for Devices.Arbeitszimmer.is_restricted found
spotify-premium.0 2018-02-16 09:50:03.487 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.is_restricted {"val":false,"ack":true,"ts":1518771003473,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895952}
spotify-premium.0 2018-02-16 09:50:03.486 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.486 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.Use_for_Playback {"val":false,"ack":true,"ts":1518771003473,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895950}
spotify-premium.0 2018-02-16 09:50:03.485 debug no listener for Devices.Arbeitszimmer.is_active found
spotify-premium.0 2018-02-16 09:50:03.485 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.is_active {"val":false,"ack":true,"ts":1518771003472,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895952}
spotify-premium.0 2018-02-16 09:50:03.471 debug call listener /.Use_for_Playback$/
spotify-premium.0 2018-02-16 09:50:03.471 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.Use_for_Playback {"val":false,"ack":true,"ts":1518771003470,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518770895950}
spotify-premium.0 2018-02-16 09:50:03.444 debug no listener for Devices.Arbeitszimmer.id found
spotify-premium.0 2018-02-16 09:50:03.444 debug stateChange spotify-premium.0.Devices.Arbeitszimmer.id {"val":"368fa7e1b34a63b9cefed55d7dd71e1279df1803","ack":true,"ts":1518771003431,"q":0,"from":"system.adapter.spotify-premium.0","lc":15187708959
spotify-premium.0 2018-02-16 09:50:03.287 debug call listener Authorization.Authorized
spotify-premium.0 2018-02-16 09:50:03.287 debug stateChange spotify-premium.0.Authorization.Authorized {"val":true,"ack":true,"ts":1518771003284,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518771003284}
spotify-premium.0 2018-02-16 09:50:03.286 debug no listener for Authorization.User_ID found
spotify-premium.0 2018-02-16 09:50:03.286 debug stateChange spotify-premium.0.Authorization.User_ID {"val":"12345678","ack":true,"ts":1518771003280,"q":0,"from":"system.adapter.spotify-premium.0","lc":1518771003280}
spotify-premium.0 2018-02-16 09:50:03.281 debug Spotify API Call.../v1/me/player/devices
spotify-premium.0 2018-02-16 09:50:03.280 debug
spotify-premium.0 2018-02-16 09:50:03.131 debug Spotify API Call.../v1/me
spotify-premium.0 2018-02-16 09:50:03.131 debug
spotify-premium.0 2018-02-16 09:50:03.130 debug Spotify Token aus Datei gelesen !
spotify-premium.0 2018-02-16 09:50:03.121 info starting. Version 0.0.3 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v4.8.7Gruß Mirko @twonky: kann das etwas mit meinem Pull Request zu tun haben!? EDIT: gerade die 0.4.0 installiert… leider immer noch dasselbe Problem: >! ```` 2018-02-16 10:05:13.593 - info: spotify-premium.0 terminating 2018-02-16 10:05:13.607 - error: host.openmediavault instance system.adapter.spotify-premium.0 terminated with code 0 (OK) 2018-02-16 10:05:13.607 - info: host.openmediavault Restart adapter system.adapter.spotify-premium.0 because enabled 2018-02-16 10:05:43.625 - info: host.openmediavault instance system.adapter.spotify-premium.0 started with pid 14297 2018-02-16 10:05:44.021 - info: spotify-premium.0 starting. Version 0.0.4 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v4.8.7 2018-02-16 10:05:49.354 - error: spotify-premium.0 uncaught exception: DummyBody is not defined 2018-02-16 10:05:49.356 - error: spotify-premium.0 ReferenceError: DummyBody is not defined at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:973:31 at Request._callback (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:127:32) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request. <anonymous>(/opt/iobroker/node_modules/request/request.js:1163:10) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at IncomingMessage. <anonymous>(/opt/iobroker/node_modules/request/request.js:1085:12) at IncomingMessage.g (events.js:260:16) 2018-02-16 10:05:49.475 - info: spotify-premium.0 terminating 2018-02-16 10:05:49.485 - error: host.openmediavault instance system.adapter.spotify-premium.0 terminated with code 0 (OK) 2018-02-16 10:05:49.485 - info: host.openmediavault Restart adapter system.adapter.spotify-premium.0 because enabled 2018-02-16 10:05:59.171 - info: host.openmediavault object change system.adapter.spotify-premium.0 2018-02-16 10:05:59.178 - info: host.openmediavault instance system.adapter.spotify-premium.0 started with pid 14378 2018-02-16 10:05:59.526 - info: spotify-premium.0 starting. Version 0.0.4 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v4.8.7 2018-02-16 10:06:00.025 - info: host.openmediavault instance system.adapter.yr.0 started with pid 14390 2018-02-16 10:06:00.375 - info: yr.0 starting. Version 1.0.6 in /opt/iobroker/node_modules/iobroker.yr, node: v4.8.7 2018-02-16 10:06:00.565 - info: yr.0 got weather data from yr.no 2018-02-16 10:06:04.869 - error: spotify-premium.0 uncaught exception: DummyBody is not defined 2018-02-16 10:06:04.871 - error: spotify-premium.0 ReferenceError: DummyBody is not defined at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:973:31 at Request._callback (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:127:32) at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22) at emitTwo (events.js:87:13) at Request.emit (events.js:172:7) at Request. <anonymous>(/opt/iobroker/node_modules/request/request.js:1163:10) at emitOne (events.js:77:13) at Request.emit (events.js:169:7) at IncomingMessage. <anonymous>(/opt/iobroker/node_modules/request/request.js:1085:12) at IncomingMessage.g (events.js:260:16) 2018-02-16 10:06:04.882 - info: spotify-premium.0 terminating 2018-02-16 10:06:04.892 - error: host.openmediavault instance system.adapter.spotify-premium.0 terminated with code 0 (OK) 2018-02-16 10:06:04.892 - info: host.openmediavault Restart adapter system.adapter.spotify-premium.0 because enabled 2018-02-16 10:06:05.602 - info: host.openmediavault instance system.adapter.yr.0 terminated with code 0 (OK)</anonymous></anonymous></anonymous></anonymous>
-
Danke wendy2702 das Log hat geholfen! Der stamm noch aus Luckys Script. Ich nehme aber an dort es nicht aufgefallen da die javascript-engine vom Javascript-Adapter nicht alles so sehr genau nimmt.
Version https://github.com/twonky4/ioBroker.spotify-premium ist nun released.
@0018: Den Adapter zu veröffentlich ist leider nicht so einfach, da muss ich mich erstmal belesen