Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. [Vorlage] Spotify Skript

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [Vorlage] Spotify Skript

    This topic has been deleted. Only users with topic management privileges can see it.
    • twonky
      twonky last edited by

      Danke wendy! Ist jetzt drin 🙂

      1 Reply Last reply Reply Quote 0
      • 0
        0018 last edited by

        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

        1 Reply Last reply Reply Quote 0
        • wendy2702
          wendy2702 last edited by

          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

          1 Reply Last reply Reply Quote 0
          • AxelF1977
            AxelF1977 last edited by

            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

            1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 last edited by

              Welche Version habt ihr installiert?

              Gesendet von iPhone mit Tapatalk Pro

              1 Reply Last reply Reply Quote 0
              • 0
                0018 last edited by

                @wendy2702:

                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

                1 Reply Last reply Reply Quote 0
                • twonky
                  twonky last edited by

                  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

                  1 Reply Last reply Reply Quote 0
                  • 0
                    0018 last edited by

                    Kannst du den Adapter veröffentlichen, das er auch im Admin unter Adapter auftaucht?

                    1 Reply Last reply Reply Quote 0
                    • 0
                      0018 last edited by

                      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.2

                      
                      Die ReturnURL wurde im Log abgeschnitten.
                      1 Reply Last reply Reply Quote 0
                      • wendy2702
                        wendy2702 last edited by

                        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.7

                        
                        Gruß
                        
                        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> 
                        
                        1 Reply Last reply Reply Quote 0
                        • twonky
                          twonky last edited by

                          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 🙂

                          1 Reply Last reply Reply Quote 0
                          • wendy2702
                            wendy2702 last edited by

                            @twonky:

                            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 🙂 `

                            Hi,

                            Danke für das schnelle Fixen aber irgendetwas stimmt mit den Playlists zumindest bei mir noch nicht:

                            999_playlists.jpg

                            Gruß

                            1 Reply Last reply Reply Quote 0
                            • twonky
                              twonky last edited by

                              Die Werte Track_List und Track_List_String werden erstmal wie in Luckys Script befüllt.

                              Wenn du in die Werte von Track_List guckst kannst du die Attribute "states" und "Track_ID" sehen. Diese werden genau wie in Luckys Script befüllt, der Adapter sollte also Abwährtskompatibel sein. Zusätzlich wird der val-Wert mit einem Array aus: {id, title, artist} befüllt, was du wohl im admin siehtst. Das macht die Weiterverarbeitung in JS einfacher.
                              3596_playlist.jpg

                              1 Reply Last reply Reply Quote 0
                              • wendy2702
                                wendy2702 last edited by

                                Hi,

                                in Luckys script sieht es aber bei den Playlists so für mich aus:

                                999_playlists_ok.jpg

                                Ich habe mal ein Issue auf Github dazu aufgemacht. Hoffe das ist OK.

                                Gerade gesehen, um 11:43 hat der Adapter einen restart gemacht ohne das irgendetwas am System gemacht wurde:

                                ! ````
                                host.openmediavault 2018-02-16 11:43:23.030 error instance system.adapter.spotify-premium.0 terminated with code 6 (uncaught exception)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Decoder.add (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/index.js:246:12)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Decoder.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/socket.io-parser/node_modules/component-emitter/index.js:134:20)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Decoder. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Manager.ondecoded (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/manager.js:332:8)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Manager.Emitter.emit (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-emitter/index.js:133:20)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Manager. (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/node_modules/component-bind/index.js:21:15)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Socket.onpacket (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:236:12)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Socket.onack (/opt/iobroker/node_modules/iobroker.js-controller/node_modules/socket.io-client/lib/socket.js:312:9)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at Socket. (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:724:13)
                                spotify-premium.0 2018-02-16 11:43:22.006 error at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:698:40
                                spotify-premium.0 2018-02-16 11:43:22.006 error TypeError: callback is not a function
                                spotify-premium.0 2018-02-16 11:43:22.004 error uncaught exception: callback is not a function

                                1 Reply Last reply Reply Quote 0
                                • twonky
                                  twonky last edited by

                                  Ich war bereits dran und dank deines Screenshots habe ich verstanden was du meinst. Du kannst dir gerne Version https://github.com/twonky4/ioBroker.spotify-premium angucken.

                                  In Version 0.0.7 ist nun auch der letzte Fehler behoben. Der trat auf wenn der Spotify Session Token abgelaufen war. War aber in Luckys Skript auch schon so.

                                  1 Reply Last reply Reply Quote 0
                                  • wendy2702
                                    wendy2702 last edited by

                                    0.0.7 installiert.

                                    Sieht erstmal gut aus.

                                    Danke für den schnellen fix!

                                    1 Reply Last reply Reply Quote 0
                                    • 0
                                      0018 last edited by

                                      Kurze Frage: Wenn ich die Updates aus eigener URL installiere, muss ich dann jedesmal die alte Spotify Instanz löschen und eine neue manuell anlegen?

                                      EDIT: Das habe ich jetzt mal gemacht und nun klappt es auch bei mir mit der 0.0.7

                                      1 Reply Last reply Reply Quote 0
                                      • E
                                        el-lutschi last edited by

                                        Hallo zusammen,

                                        gibt es eigentlich die Möglichkeit, wenn ich am PC im Spotify Programm die Lautstäre ändere, diese an das Skript zurück gemeldet wird?

                                        Wenn ich aktuell die Laustäkre über den PC oder das Handy ändere, bleibt im Skript der Player -> Volume Wert immer gleich.

                                        Außerdem frage ich mich wozu unter Devices noch einmal ein Volume Wert für jedes einzelne Gerät ist? Wenn ich dort etwas ändere passiert nichts an der Lautstärke.

                                        1 Reply Last reply Reply Quote 0
                                        • twonky
                                          twonky last edited by

                                          @el-lutschi:

                                          Wenn du die Lautstärke über den PC oder der Spotify App änderst wird diese im Intervall von 5 Sekunden aktualisiert in dem State PlaybackInfo.Device.volume_percent. Aber nur wenn der Player auch abspielt.

                                          Die volume_percent States unter den Devices werden derzeit nur aktualisiert wenn du Devices.Get_Devices aufrufst.

                                          Ändern kannst du die Lautstärke immer über Player.Volume

                                          1 Reply Last reply Reply Quote 0
                                          • E
                                            el-lutschi last edited by

                                            @twonky:

                                            @el-lutschi:

                                            Wenn du die Lautstärke über den PC oder der Spotify App änderst wird diese im Intervall von 5 Sekunden aktualisiert in dem State PlaybackInfo.Device.volume_percent. Aber nur wenn der Player auch abspielt.

                                            Die volume_percent States unter den Devices werden derzeit nur aktualisiert wenn du Devices.Get_Devices aufrufst.

                                            Ändern kannst du die Lautstärke immer über Player.Volume `

                                            Erstmal vielen Dank für die Antwort. Leider aktualisiert sich bei mir der Volume Wert nicht, wenn ich am PC oder in der App etwas ändere. Die andere Richtung funktioniert allerdings.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            909
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript
                                            95
                                            745
                                            191033
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo