Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. [Vorlage] Spotify Skript

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.3k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.4k

[Vorlage] Spotify Skript

Scheduled Pinned Locked Moved Skripten / Logik
javascript
745 Posts 95 Posters 266.0k Views 41 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    el-lutschi
    wrote on last edited by
    #249

    @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
    0
    • X Offline
      X Offline
      xmace
      wrote on last edited by
      #250

      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
      0
      • wendy2702W Online
        wendy2702W Online
        wendy2702
        wrote on last edited by
        #251

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

        Bitte keine Fragen per PN, die gehören ins Forum!

        Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tempestas
          wrote on last edited by
          #252

          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 :(

          <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

          1 Reply Last reply
          0
          • wendy2702W Online
            wendy2702W Online
            wendy2702
            wrote on last edited by
            #253

            Wie hast du es denn versucht?

            Gesendet von iPhone mit Tapatalk Pro

            Bitte keine Fragen per PN, die gehören ins Forum!

            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

            1 Reply Last reply
            0
            • T Offline
              T Offline
              tempestas
              wrote on last edited by
              #254

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

              <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

              1 Reply Last reply
              0
              • wendy2702W Online
                wendy2702W Online
                wendy2702
                wrote on last edited by
                #255

                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!

                Bitte keine Fragen per PN, die gehören ins Forum!

                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  tempestas
                  wrote on last edited by
                  #256

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

                  <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    tempestas
                    wrote on last edited by
                    #257
                    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
                    

                    <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

                    1 Reply Last reply
                    0
                    • wendy2702W Online
                      wendy2702W Online
                      wendy2702
                      wrote on last edited by
                      #258

                      Mach mal bitte

                      node -v
                      
                      npm -v
                      

                      Bitte keine Fragen per PN, die gehören ins Forum!

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      1 Reply Last reply
                      0
                      • T Offline
                        T Offline
                        tempestas
                        wrote on last edited by
                        #259

                        node 6.11.3

                        npm 4.6.1

                        <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

                        1 Reply Last reply
                        0
                        • fischi87F Offline
                          fischi87F Offline
                          fischi87
                          wrote on last edited by
                          #260

                          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
                          0
                          • wendy2702W Online
                            wendy2702W Online
                            wendy2702
                            wrote on last edited by
                            #261

                            Hast du den neu installiert?

                            Wenn ja nach welcher Anleitung und mit welchem OS?

                            Ist der Adapter wirklich nicht installiert?

                            Bitte keine Fragen per PN, die gehören ins Forum!

                            Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                            1 Reply Last reply
                            0
                            • wendy2702W Online
                              wendy2702W Online
                              wendy2702
                              wrote on last edited by
                              #262

                              @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?

                              Bitte keine Fragen per PN, die gehören ins Forum!

                              Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                              1 Reply Last reply
                              0
                              • T Offline
                                T Offline
                                tempestas
                                wrote on last edited by
                                #263

                                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

                                <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

                                1 Reply Last reply
                                0
                                • wendy2702W Online
                                  wendy2702W Online
                                  wendy2702
                                  wrote on last edited by
                                  #264

                                  Also fehlte die Instanz

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

                                  Gesendet von iPhone mit Tapatalk Pro

                                  Bitte keine Fragen per PN, die gehören ins Forum!

                                  Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                  1 Reply Last reply
                                  0
                                  • T Offline
                                    T Offline
                                    tempestas
                                    wrote on last edited by
                                    #265

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

                                    <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

                                    1 Reply Last reply
                                    0
                                    • wendy2702W Online
                                      wendy2702W Online
                                      wendy2702
                                      wrote on last edited by
                                      #266

                                      Ok

                                      Ist das der neue Admin ?

                                      Gesendet von iPhone mit Tapatalk Pro

                                      Bitte keine Fragen per PN, die gehören ins Forum!

                                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                      1 Reply Last reply
                                      0
                                      • T Offline
                                        T Offline
                                        tempestas
                                        wrote on last edited by
                                        #267

                                        Nein.

                                        leider kann ich mich mal wieder nicht authen.

                                        Die im Browser angezeigte URI bleibt genau die gleiche, die ich auch eingegeben habe aus dem Adapter. Ich sehe dann auch, dass ich verbinden soll, mache ich und dann kommt wie erwartet "invalid redirect uri".

                                        Nur, dass in der Adresszeile halt das gleiche drin steht wie vorher. Ich bekomme nichts, um es in die auth Zeile einzugeben

                                        genau genommen passiert auf der spotify account page halt einfach gar nichts, wenn ich mich anmelden will. Wenn ich was falsches angebe reagiert sie und sagt falsches PW, beim richtigen passiert einfach… nichts

                                        <size="85">ioBroker | 21 Adapter | Ubuntu Server | intel NUC | Homematic CCU2 | Hue | Osram Lightify| Sonos | 2x Instar Cam | Samsung Tab A 2016 im Holzrahmen| 3x Echo dot | 1x Echo | Neato Botvac D5</size>

                                        1 Reply Last reply
                                        0
                                        • wendy2702W Online
                                          wendy2702W Online
                                          wendy2702
                                          wrote on last edited by
                                          #268

                                          Das sieht nur genauso aus.

                                          Hast du bestimmt nicht Zeichen für Zeichen verglichen, oder doch !?

                                          Einfach kopieren und einfügen.

                                          Gesendet von iPhone mit Tapatalk Pro

                                          Bitte keine Fragen per PN, die gehören ins Forum!

                                          Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          782

                                          Online

                                          32.4k

                                          Users

                                          81.6k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe