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.
    • E
      el-lutschi last edited by

      Habe mein problem von vorhin gelöst indem ich npm und den javascript adapter aktualisiert habe.

      Nun bekomme ich aber sobald ich die auth. URL einfüge immer wieder folgende Meldung

      host.SmartHome	2018-02-27 21:07:19.728	info	Restart adapter system.adapter.spotify-premium.0 because enabled
      host.SmartHome	2018-02-27 21:07:19.728	error	instance system.adapter.spotify-premium.0 terminated with code 0 (OK)
      Caught	2018-02-27 21:07:19.728	error	by controller[0]: at IncomingMessage. (/opt/iobroker/node_modules/request/request.js:1085:12)
      Caught	2018-02-27 21:07:19.728	error	by controller[0]: at Request.emit (events.js:188:7)
      Caught	2018-02-27 21:07:19.728	error	by controller[0]: at emitOne (events.js:96:13)
      Caught	2018-02-27 21:07:19.727	error	by controller[0]: at Request. (/opt/iobroker/node_modules/request/request.js:1163:10)
      Caught	2018-02-27 21:07:19.727	error	by controller[0]: at Request.emit (events.js:191:7)
      Caught	2018-02-27 21:07:19.727	error	by controller[0]: at emitTwo (events.js:106:13)
      Caught	2018-02-27 21:07:19.727	error	by controller[0]: at Request.self.callback (/opt/iobroker/node_modules/request/request.js:186:22)
      Caught	2018-02-27 21:07:19.727	error	by controller[0]: at Request._callback (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:140:25)
      Caught	2018-02-27 21:07:19.726	error	by controller[0]: at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:992:13
      Caught	2018-02-27 21:07:19.726	error	by controller[0]: at createPlaybackInfo (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:338:27)
      Caught	2018-02-27 21:07:19.725	error	by controller[0]: TypeError: Cannot read property 'id' of null
      

      Das alte Skript funktioniert noch ohne Probleme.

      EDIT: Ich nehme alles zurück und behaute das Gegenteil 😄

      Keine Ahnung warum, aber nun funktioniert es plötzlich. Und das sehr gut.

      Also an dieser Stelle ein großes Danke für den Adapter. Ich freue mich schon auf kommende Funktionen 🙂

      1 Reply Last reply Reply Quote 0
      • S
        schubi82 last edited by

        Wird bei Euch die Variable "is_active" der Devices aktualisiert? Ich wollte eine Grafik nur anzeigen lassen, wenn das Gerät auch online und anspielbar ist, aber die Variable bleibt immer auf TRUE stehen… Oder ist das Objekt falsch?

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

          @schubi82:

          Wird bei Euch die Variable "is_active" der Devices aktualisiert? Ich wollte eine Grafik nur anzeigen lassen, wenn das Gerät auch online und anspielbar ist, aber die Variable bleibt immer auf TRUE stehen… Oder ist das Objekt falsch? `

          Hallo,

          ja, bei mir wird das aktualisiert. Wenn ich z.B. über den PC das Connect Gerät ändere, erscheint dies nach ein paar Sekunden auch so im Adapter.

          Habe den Wert selbst in einigen Scripts eingebaut.

          1 Reply Last reply Reply Quote 0
          • X
            xmace last edited by

            und nochmal:

            spotify-premium.0	2018-03-01 17:33:45.257	info	starting. Version 0.1.0 in /opt/iobroker/node_modules/iobroker.spotify-premium, node: v8.9.4
            host.iobrokerVM	2018-03-01 17:33:43.007	info	instance system.adapter.spotify-premium.0 started with pid 25017
            host.iobrokerVM	2018-03-01 17:33:12.977	info	Restart adapter system.adapter.spotify-premium.0 because enabled
            host.iobrokerVM	2018-03-01 17:33:12.977	error	instance system.adapter.spotify-premium.0 terminated with code 0 (OK)
            Caught	2018-03-01 17:33:12.977	error	by controller[0]: at emitOne (events.js:116:13)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at TLSSocket.socketErrorListener (_http_client.js:387:9)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at ClientRequest.emit (events.js:211:7)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at emitOne (events.js:116:13)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at Request.onRequestError (/opt/iobroker/node_modules/iobroker.spotify-premium/node_modules/request/request.js:878:8)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at Request.emit (events.js:211:7)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at emitOne (events.js:116:13)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at self.callback (/opt/iobroker/node_modules/iobroker.spotify-premium/node_modules/request/request.js:186:22)
            Caught	2018-03-01 17:33:12.976	error	by controller[0]: at Request._callback (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:232:17)
            Caught	2018-03-01 17:33:12.975	error	by controller[0]: at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:415:43
            Caught	2018-03-01 17:33:12.975	error	by controller[0]: TypeError: Cannot read property 'hasOwnProperty' of null
            spotify-premium.0	2018-03-01 17:33:12.883	info	terminating
            spotify-premium.0	2018-03-01 17:33:12.833	error	at emitOne (events.js:116:13)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at TLSSocket.socketErrorListener (_http_client.js:387:9)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at ClientRequest.emit (events.js:211:7)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at emitOne (events.js:116:13)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at Request.onRequestError (/opt/iobroker/node_modules/iobroker.spotify-premium/node_modules/request/request.js:878:8)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at Request.emit (events.js:211:7)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at emitOne (events.js:116:13)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at self.callback (/opt/iobroker/node_modules/iobroker.spotify-premium/node_modules/request/request.js:186:22)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at Request._callback (/opt/iobroker/node_modules/iobroker.spotify-premium/main.js:232:17)
            spotify-premium.0	2018-03-01 17:33:12.833	error	at /opt/iobroker/node_modules/iobroker.spotify-premium/main.js:415:43
            spotify-premium.0	2018-03-01 17:33:12.833	error	TypeError: Cannot read property 'hasOwnProperty' of null
            spotify-premium.0	2018-03-01 17:33:12.833	error	uncaught exception: Cannot read property 'hasOwnProperty' of null
            spotify-premium.0	2018-03-01 17:33:12.816	error	erron in Request
            
            1 Reply Last reply Reply Quote 0
            • wendy2702
              wendy2702 last edited by

              @xmace:

              und nochmal: `

              Da du````
              node: v8.9.4

              
              Hinweis:
              
              

              Installation Node.js
              Diese Anleitung bezieht sich auf nodejs 6.x

              Die Nutzung von Nodejs 8.x wäre ebenfalls möglich, jedoch muss das dort mitgelieferte npm 5.x nach der Installation unbedingt auf v4.x downgegradet werden mit

              sudo npm install -g npm@4

              npm 5.x enthält noch einen Bug, der bei ioBroker zu massiven Problemen führt.

              1 Reply Last reply Reply Quote 0
              • T
                tempestas last edited by

                ich kriege den Adapter nicht installiert.

                npm WARN enoent ENOENT: no such file or directory, open '/home/xxxxxxx/package.json'
                npm WARN xxxxxxxx No description
                npm WARN xxxxxxxxxxx No repository field.
                npm WARN xxxxxx No README data
                npm WARN xxxxx No license field.
                xxxxx @iobrokerNUC:~$
                
                

                ?? bin doch Linux Nichtkönner 😞

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

                  Wie hast du es denn versucht?

                  Gesendet von iPhone mit Tapatalk Pro

                  1 Reply Last reply Reply Quote 0
                  • T
                    tempestas last edited by

                    via admin katze von url installieren und via putty sudo npm install iobroker.spotify-premium

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

                      Du hast bei der Katze diesen Link rein kopiert:

                      https://github.com/twonky4/ioBroker.spotify-premium

                      ?

                      Kannst du davon mal das komplette Logfile posten bitte!

                      1 Reply Last reply Reply Quote 0
                      • T
                        tempestas last edited by

                        ich installiere gerade nochmal mit debug ausgänge. mal sehen

                        1 Reply Last reply Reply Quote 0
                        • T
                          tempestas last edited by

                          host.iobrokerNUC	2018-03-01 19:43:30.034	info	Update repository "default" under "http://download.iobroker.net/sources-dist.json"
                          iobroker	2018-03-01 19:43:29.565	info	exit 0
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/noble/node_modules/xpc-connection):
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-connection@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modules/iobroker.radar/node_modules/noble/node_modules/xpc-connection):
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/iobroker.js2fs/node_modules/chokidar/node_modules/fsevents):
                          iobroker	2018-03-01 19:43:29.485	info	npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wa
                          iobroker	2018-03-01 19:43:29.470	info	iobroker@1.0.0 /opt/iobroker└── iobroker.spotify-premium@0.1.0
                          iobroker	2018-03-01 19:41:45.099	info	npm install https://github.com/twonky4/ioBroker.spotify-premium/tarball/master --production --prefix "/opt/iobroker" (System call)
                          iobroker	2018-03-01 19:41:44.840	info	install https://github.com/twonky4/ioBroker.spotify-premium/tarball/master
                          iobroker	2018-03-01 19:41:44.176	info	url "https://github.com/twonky4/ioBroker.spotify-premium" --debug
                          
                          1 Reply Last reply Reply Quote 0
                          • wendy2702
                            wendy2702 last edited by

                            Mach mal bitte

                            node -v
                            
                            npm -v
                            
                            1 Reply Last reply Reply Quote 0
                            • T
                              tempestas last edited by

                              node 6.11.3

                              npm 4.6.1

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

                                servus, habe auch gerade versucht den adapter zu starten, installation passt, ohne problem aber ich bekomme die autorisierung nicht hin, bekomme immer diesen Fehler:

                                error	invalid session. You need to open the actual Authorization.Authorization_URL
                                

                                Mit freundlichen Grüßen

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

                                  Hast du den neu installiert?

                                  Wenn ja nach welcher Anleitung und mit welchem OS?

                                  Ist der Adapter wirklich nicht installiert?

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

                                    @fischi87:

                                    servus, habe auch gerade versucht den adapter zu starten, installation passt, ohne problem aber ich bekomme die autorisierung nicht hin, bekomme immer diesen Fehler:

                                    error	invalid session. You need to open the actual Authorization.Authorization_URL
                                    

                                    Mit freundlichen Grüßen `

                                    Du hast alle Schritte die im Adapter erklärt sind „Richtig“ ausgeführt?

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tempestas last edited by

                                      edit:

                                      ich war wieder zu blöd

                                      iobroker add spotify-premium fehlte mir.

                                      gut, dass ich mir mal rainers posting dazu in die favs gespeichert habe. nun kann ich mir den adapter anschauen

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

                                        Also fehlte die Instanz

                                        Machst du das nicht über die Admin Oberfläche?

                                        Gesendet von iPhone mit Tapatalk Pro

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tempestas last edited by

                                          doch hatte ich. passiert bei mir aber gelegentlich, dass da keine instanz mitkommt.

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

                                            Ok

                                            Ist das der neue Admin ?

                                            Gesendet von iPhone mit Tapatalk Pro

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            788
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            javascript
                                            95
                                            745
                                            191228
                                            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