Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Sonos-HTTP-API Installation für Newbies, Dummies und mich

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    Sonos-HTTP-API Installation für Newbies, Dummies und mich

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      hsjan @skokarl last edited by

      @skokarl

      Besten Dank,
      schaue ich mir morgen mal an.

      S 1 Reply Last reply Reply Quote 0
      • S
        skokarl @hsjan last edited by

        @hsjan

        lass uns am Ende mal an Deinen Erfahrungen und dem Ergebnis teilhaben 👍

        1 Reply Last reply Reply Quote 0
        • H
          hsjan @skokarl last edited by

          @skokarl

          Super, mit deinen Anregungen habe ich "glaube ich" es jetzt verstanden. APP aus und Adapter ausgeschaltet. 😊 Ich habe die Blockly´s mal angeschaut. Ich denke auch soweit verstanden.
          Die Senderauswahl muss für jedes Gerät angelegt werden? (Übertrag in den Datenpunkt der dann wieder einen Trigger auslöst.)
          Oder wie hast du es hinbekommen, dass nicht jedes mal alle Sender an den unterschiedlichen Geräten umgestellt werden.
          Da hab ich noch nicht wirklich eine Idee, nochmals ganz großen Dank an dich.

          S 1 Reply Last reply Reply Quote 0
          • S
            skokarl @hsjan last edited by skokarl

            @hsjan sagte in Sonos-HTTP-API Installation für Newbies, Dummies und mich:

            @skokarl

            Die Senderauswahl muss für jedes Gerät angelegt werden? (Übertrag in den Datenpunkt der dann wieder einen Trigger auslöst.)
            Da hab ich noch nicht wirklich eine Idee, nochmals ganz großen Dank an dich.

            Ich geb Dir mal ne Idee....

            1.) fang mal mit einer Box an.....Start, Stop, Senderwechsel

            2.) dann zwei Boxen, Gruppe bilden, Start, Stop, Gruppe auflösen ( join, leave ),

            mach langsam, sonst verrennst Du Dich wieder...nicht soviel auf einmal.

            3.) über gesetzte Schalter Gruppe bilden, Start, Stop, Gruppe auflösen

            Du musst Dir über verschiedene Schalter Gruppenzustände bilden können bevor Du ein Play auf den Chef
            loslässt ( Play kriegt nur die Masterbox )

            und wenn Du an zwei Orten verschiedene Musik spielen willst, brauchst Du vermutlich auch ein zweites Blockly,
            aber so fit bin ich in Blockly auch nicht.

            Ich hab die Erfahrung gemacht dass alles am "saubersten" funktioniert wenn Du die Gruppen immer frisch
            bildest und am Ende wieder auflöst, so hast Du immer einen definierten Status.

            H 1 Reply Last reply Reply Quote 0
            • H
              hsjan @skokarl last edited by

              @skokarl

              Hast recht, ich werde jetzt erstmal mit den Basics anfangen und dann kommt vermutlich alles andere von selbst.
              Ach, für mich sehen deine Blockly´s ab sehr professionell aus.
              Melde mich wieder wenn ich erste Ergebnisse präsentieren kann.

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User last edited by A Former User

                Hi Ihr, ich blick nicht mehr durch.
                Ich hatte jetzt jahrelang Songs http api erfolgreich laufen. Jetzt bin ich auf die neuste Raspbian-Version gesprungen, hab alles in Docker umgezogen, und bekomme jetzt Songs-HTTP-API nicht mehr installiert.
                Der erste Versuch das in Docker zu installieren ist daran gescheitert, dass es für meinen Prozessor aarch64 wohl kein Image gibt. Wenn hier jemand widerspricht, würde ich mich sehr über eine Anleitung für Dummys freuen.

                Mein zweiter Anlauf war, es genauso zu installieren, wie damals, nämlich nach dieser Anleitung für Dummys (wie mich). Aber hier scheitere ich daran, dass der Befehl npm nicht existiert und ich keine zu mir passende Anleitung finde das nachzuweisen installieren. Ich will mir auf keinen Fall die Nodejs-Version die drauf ist zerschießen, so dass am Ende ioBroker nicht mehr läuft.

                Hat dieses Problem jemand schon erfolgreich geknackt und kann mir helfen?

                Hier mal die letzten Terminal-Einträge/Ausgaben:


                pi@HomeServer01:~ $ sudo apt-get install wget
                Paketlisten werden gelesen… Fertig
                Abhängigkeitsbaum wird aufgebaut… Fertig
                Statusinformationen werden eingelesen… Fertig
                wget ist schon die neueste Version (1.21-1+deb11u1).
                Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt:
                libfuse2
                Verwenden Sie »sudo apt autoremove«, um es zu entfernen.
                0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                pi@HomeServer01:~ $ wget https://github.com/jishi/node-sonos-http-api/archive/master.zip
                unzip master.zip
                cd node-sonos-http-api-master
                npm install --production
                --2022-10-25 11:04:35-- https://github.com/jishi/node-sonos-http-api/archive/master.zip
                Auflösen des Hostnamens github.com (github.com)… 140.82.121.4
                Verbindungsaufbau zu github.com (github.com)|140.82.121.4|:443 … verbunden.
                HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
                Platz: https://codeload.github.com/jishi/node-sonos-http-api/zip/refs/heads/master [folgend]
                --2022-10-25 11:04:37-- https://codeload.github.com/jishi/node-sonos-http-api/zip/refs/heads/master
                Auflösen des Hostnamens codeload.github.com (codeload.github.com)… 140.82.121.10
                Verbindungsaufbau zu codeload.github.com (codeload.github.com)|140.82.121.10|:443 … verbunden.
                HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
                Länge: nicht spezifiziert [application/zip]
                Wird in »master.zip.1« gespeichert.

                master.zip.1 [ <=> ] 772,20K 4,22MB/s in 0,2s

                2022-10-25 11:04:38 (4,22 MB/s) - »master.zip.1« gespeichert [790732]

                Archive: master.zip
                44096ce9103e30c58832bf4bdf52f2bcb11fd676
                replace node-sonos-http-api-master/.eslintrc? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/.eslintrc
                replace node-sonos-http-api-master/.gitattributes? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/.gitattributes
                replace node-sonos-http-api-master/.gitignore? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/.gitignore
                replace node-sonos-http-api-master/ISSUE_TEMPLATE.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/ISSUE_TEMPLATE.md
                replace node-sonos-http-api-master/LICENSE.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/LICENSE.md
                replace node-sonos-http-api-master/README.md? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/README.md
                replace node-sonos-http-api-master/lib/actions/aldilifeMusic.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/lib/actions/aldilifeMusic.js
                replace node-sonos-http-api-master/lib/actions/amazonMusic.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/lib/actions/amazonMusic.js
                replace node-sonos-http-api-master/lib/actions/appleMusic.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/lib/actions/appleMusic.js
                replace node-sonos-http-api-master/lib/actions/bbcSounds.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/lib/actions/bbcSounds.js
                replace node-sonos-http-api-master/lib/actions/clearqueue.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/lib/actions/clearqueue.js
                replace node-sonos-http-api-master/lib/actions/clip.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: y
                inflating: node-sonos-http-api-master/lib/actions/clip.js
                replace node-sonos-http-api-master/lib/actions/clipall.js? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
                inflating: node-sonos-http-api-master/lib/actions/clipall.js
                inflating: node-sonos-http-api-master/lib/actions/clippreset.js
                inflating: node-sonos-http-api-master/lib/actions/debug.js
                inflating: node-sonos-http-api-master/lib/actions/equalizer.js
                inflating: node-sonos-http-api-master/lib/actions/favorite.js
                inflating: node-sonos-http-api-master/lib/actions/favorites.js
                inflating: node-sonos-http-api-master/lib/actions/group.js
                inflating: node-sonos-http-api-master/lib/actions/linein.js
                inflating: node-sonos-http-api-master/lib/actions/lockvolumes.js
                inflating: node-sonos-http-api-master/lib/actions/musicSearch.js
                inflating: node-sonos-http-api-master/lib/actions/mute.js
                inflating: node-sonos-http-api-master/lib/actions/napster.js
                inflating: node-sonos-http-api-master/lib/actions/nextprevious.js
                inflating: node-sonos-http-api-master/lib/actions/pandora.js
                inflating: node-sonos-http-api-master/lib/actions/pauseall.js
                inflating: node-sonos-http-api-master/lib/actions/playlist.js
                inflating: node-sonos-http-api-master/lib/actions/playlists.js
                inflating: node-sonos-http-api-master/lib/actions/playmode.js
                inflating: node-sonos-http-api-master/lib/actions/playpause.js
                inflating: node-sonos-http-api-master/lib/actions/preset.js
                inflating: node-sonos-http-api-master/lib/actions/queue.js
                inflating: node-sonos-http-api-master/lib/actions/reindex.js
                inflating: node-sonos-http-api-master/lib/actions/say.js
                inflating: node-sonos-http-api-master/lib/actions/sayall.js
                inflating: node-sonos-http-api-master/lib/actions/saypreset.js
                inflating: node-sonos-http-api-master/lib/actions/seek.js
                inflating: node-sonos-http-api-master/lib/actions/services.js
                inflating: node-sonos-http-api-master/lib/actions/setavtransporturi.js
                inflating: node-sonos-http-api-master/lib/actions/siriusXM.js
                inflating: node-sonos-http-api-master/lib/actions/sleep.js
                inflating: node-sonos-http-api-master/lib/actions/spotify.js
                inflating: node-sonos-http-api-master/lib/actions/state.js
                inflating: node-sonos-http-api-master/lib/actions/sub.js
                inflating: node-sonos-http-api-master/lib/actions/tunein.js
                inflating: node-sonos-http-api-master/lib/actions/volume.js
                inflating: node-sonos-http-api-master/lib/actions/zones.js
                inflating: node-sonos-http-api-master/lib/helpers/all-player-announcement.js
                inflating: node-sonos-http-api-master/lib/helpers/file-duration.js
                inflating: node-sonos-http-api-master/lib/helpers/is-radio-or-line-in.js
                inflating: node-sonos-http-api-master/lib/helpers/preset-announcement.js
                inflating: node-sonos-http-api-master/lib/helpers/require-dir.js
                inflating: node-sonos-http-api-master/lib/helpers/single-player-announcement.js
                inflating: node-sonos-http-api-master/lib/helpers/try-download-tts.js
                inflating: node-sonos-http-api-master/lib/helpers/try-load-json.js
                inflating: node-sonos-http-api-master/lib/music_services/appleDef.js
                inflating: node-sonos-http-api-master/lib/music_services/deezerDef.js
                inflating: node-sonos-http-api-master/lib/music_services/libraryDef.js
                inflating: node-sonos-http-api-master/lib/music_services/spotifyDef.js
                inflating: node-sonos-http-api-master/lib/presets-loader.js
                inflating: node-sonos-http-api-master/lib/sirius-channels.json
                inflating: node-sonos-http-api-master/lib/sonos-http-api.js
                inflating: node-sonos-http-api-master/lib/tts-providers/aws-polly.js
                inflating: node-sonos-http-api-master/lib/tts-providers/default/google.js
                inflating: node-sonos-http-api-master/lib/tts-providers/mac-os.js
                inflating: node-sonos-http-api-master/lib/tts-providers/microsoft.js
                inflating: node-sonos-http-api-master/lib/tts-providers/voicerss.js
                inflating: node-sonos-http-api-master/package-lock.json
                inflating: node-sonos-http-api-master/package.json
                inflating: node-sonos-http-api-master/presets/example.json
                inflating: node-sonos-http-api-master/server.js
                inflating: node-sonos-http-api-master/settings.js
                inflating: node-sonos-http-api-master/static/clips/sample_clip.mp3
                inflating: node-sonos-http-api-master/static/docs/css/reset.css
                inflating: node-sonos-http-api-master/static/docs/css/screen.css
                inflating: node-sonos-http-api-master/static/docs/images/explorer_icons.png
                extracting: node-sonos-http-api-master/static/docs/images/logo_small.png
                extracting: node-sonos-http-api-master/static/docs/images/pet_store_api.png
                inflating: node-sonos-http-api-master/static/docs/images/throbber.gif
                extracting: node-sonos-http-api-master/static/docs/images/wordnik_api.png
                inflating: node-sonos-http-api-master/static/docs/index.html
                inflating: node-sonos-http-api-master/static/docs/lib/backbone-min.js
                inflating: node-sonos-http-api-master/static/docs/lib/handlebars-1.0.0.js
                inflating: node-sonos-http-api-master/static/docs/lib/highlight.7.3.pack.js
                inflating: node-sonos-http-api-master/static/docs/lib/jquery-1.8.0.min.js
                inflating: node-sonos-http-api-master/static/docs/lib/jquery.ba-bbq.min.js
                inflating: node-sonos-http-api-master/static/docs/lib/jquery.slideto.min.js
                inflating: node-sonos-http-api-master/static/docs/lib/jquery.wiggle.min.js
                inflating: node-sonos-http-api-master/static/docs/lib/shred.bundle.js
                inflating: node-sonos-http-api-master/static/docs/lib/shred/content.js
                inflating: node-sonos-http-api-master/static/docs/lib/swagger-client.js
                inflating: node-sonos-http-api-master/static/docs/lib/swagger-oauth.js
                inflating: node-sonos-http-api-master/static/docs/lib/swagger.js
                inflating: node-sonos-http-api-master/static/docs/lib/underscore-min.js
                inflating: node-sonos-http-api-master/static/docs/o2c.html
                inflating: node-sonos-http-api-master/static/docs/spec.js
                inflating: node-sonos-http-api-master/static/docs/swagger-ui.js
                inflating: node-sonos-http-api-master/static/docs/swagger-ui.min.js
                inflating: node-sonos-http-api-master/static/index.html
                inflating: node-sonos-http-api-master/static/missing_api_key.mp3
                inflating: node-sonos-http-api-master/static/sonos-icon.png
                inflating: node-sonos-http-api-master/test_endpoint.js
                -bash: npm: Kommando nicht gefunden.
                pi@HomeServer01:~/node-sonos-http-api-master $ npm start
                -bash: npm: Kommando nicht gefunden.

                Mein System:

                pi@HomeServer01:~ $ cat /etc/os-release
                PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
                NAME="Debian GNU/Linux"
                VERSION_ID="11"
                VERSION="11 (bullseye)"
                VERSION_CODENAME=bullseye
                ID=debian
                HOME_URL="https://www.debian.org/"
                SUPPORT_URL="https://www.debian.org/support"
                BUG_REPORT_URL="https://bugs.debian.org/"
                

                Systeminformationen aus ioBroker "Info":

                iobroker
                Plattform: docker
                Betriebssystem: linux
                Architektur: arm64
                CPUs: 4
                Geschwindigkeit: 1800 MHz
                Modell: Cortex-A72
                RAM: 7.63 GB
                Node.js: v16.18.0
                NPM: 8.19.2
                Weg: /opt/iobroker/
                Hostname: iobroker

                ? H 2 Replies Last reply Reply Quote 0
                • ?
                  A Former User @Guest last edited by A Former User

                  @hannnes
                  GELÖST: ich hab jetzt ioBroker im Docker gelöscht und direkt installiert. Das hatte dann zur Folge, dass Node.js und js controler inkl NPM nochmal wohl in der richtigen Version installiert wurde, und siehe da, Sonos http-Api konnte dann installiert werden.

                  1 Reply Last reply Reply Quote 0
                  • H
                    hsjan @Guest last edited by

                    Guten Morgen zusammen,
                    ich bekomme es einfach nicht hin.
                    Einzelboxen steuere ich schon seit langem über die API funktionier auch super.
                    Jezt wollte ich Gruppen erzeugen.
                    MIt dem Befehl "http://192.168.1.180:5005/Küche/join/Wohnzimmer/" klappts nicht.
                    Hab ich da was falsch verstanden?
                    Hab zwei Sonos one und möchte die in einer Gruppe zusammenfassen.
                    Vieleicht könntet Ihr mir mal die Befehl zur bildung einer Gruppe zeigen, evtl.auch zum auflösen einer Gruppe.

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      skokarl @hsjan last edited by

                      @hsjan

                      Umlaute sind immer doof .

                      probier mal kueche ...... und was sagt die Fehlermeldung wenn Du den Befehl direkt im Browser eingibst ?

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        hsjan @skokarl last edited by

                        @skokarl ```
                        code_text

                        `{"status":"error","error":"Room Wohnzimmer not found - can't make Küche join it","stack":"Error: Room Wohnzimmer not found - can't make Küche join it\n    at Object.joinPlayer [as join] (/root/node-sonos-http-api-master/lib/actions/group.js:19:27)\n    at handleAction (/root/node-sonos-http-api-master/lib/sonos-http-api.js:117:35)\n    at HttpAPI.requestHandler (/root/node-sonos-http-api-master/lib/sonos-http-api.js:94:21)\n    at /root/node-sonos-http-api-master/server.js:50:13\n    at Server.finish (/root/node-sonos-http-api-master/node_modules/node-static/lib/node-static.js:111:13)\n    at finish (/root/node-sonos-http-api-master/node_modules/node-static/lib/node-static.js:170:14)\n    at /root/node-sonos-http-api-master/node_modules/node-static/lib/node-static.js:144:17\n    at FSReqCallback.oncomplete (fs.js:168:21)"}``
                        S 1 Reply Last reply Reply Quote 0
                        • S
                          skokarl @hsjan last edited by

                          @hsjan

                          Raum Wohnzimmer not found.

                          In der App am Handy alles richtig ?

                          1 Reply Last reply Reply Quote 0
                          • Thorsten Missenberger
                            Thorsten Missenberger @skokarl last edited by

                            Hab soweit alles nach Anleitung gemacht. Jedoch erzeugt er keine DP und im Log habe ich zwei errors:

                            21:14:15.059	error	javascript.0 (387100) script.js.Sonos.SonosHttpApi.Skript_1: Error: forceCreate is not defined from body: [object Object]
                            21:13:44.983	error	javascript.0 (387100) script.js.Sonos.SonosHttpApi.Skript_1: Error: result is not defined from body: [object Object]
                            

                            Da hier noch auf Github einer den gleichen Fehler hat und z.B. result is not defined auch beim Hue-API dazu beiträgt das dieses Script nicht geht, gehe ich davon aus das es eine Einstellungsgeschichte ist, was bei mir nicht passt. Hat jemand eine Idee?

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

                              Hallo,

                              habe am 14.06 ein update und upgrade vom debian des iobroker gemacht seit dem geht der Autostart nicht mehr.. über Putty ist der Start möglich.

                              im Log erhalte ich diese Meldung

                              Jul 16 12:27:39 IoBroker systemd[1482]: sonosapi.service: Failed to execute command: Too many levels of symbolic links
                              Jul 16 12:27:39 IoBroker systemd[1482]: sonosapi.service: Failed at step EXEC spawning /usr/bin/node: Too many levels of symbolic links
                              Jul 16 12:27:39 IoBroker systemd[1]: sonosapi.service: Main process exited, code=exited, status=203/EXEC
                              Jul 16 12:27:39 IoBroker systemd[1]: sonosapi.service: Failed with result 'exit-code'.
                              

                              Jemand eine Idee was ich machen kann? habe den symlink schon mit

                              sudo ln -s node /usr/bin/
                              

                              neu angelegt ohne Erfolg.

                              EDIT:
                              Geht wieder....
                              Habe Nodejs mal entfernt und neu installiert nun geht es wieder...

                              1 Reply Last reply Reply Quote 0
                              • J
                                jwerlsdf last edited by

                                Hallo,
                                ich benutze schon seit längerem Sonos ganz erfolgreich.
                                Jetzt habe ich aber folgende Frage:
                                Wie kann ich 2 oder 3 Speaker in eine Gruppe zusammenfügen?


                                http://192.....28:5005/Wohnzimmer/join/Flur

                                Damit kann ich den Sonos Speaker Wohnzimmer mit Flur koppeln.

                                Wie bekomme ich aber nun einen 2,3,...Xten Speaker in die Gruppe Flur?
                                Würde mir bitte jemand helfen? Laut Doku sollen ja mehrere Speaker in eine Gruppe zusammen abspielen gehen.

                                D 1 Reply Last reply Reply Quote 0
                                • D
                                  dodi666 @jwerlsdf last edited by

                                  @jwerlsdf :
                                  Genauso, wie du das für "Wohnzimmer" auch gemacht hast.

                                  http://192.....28:5005/Badezimmer/join/Flur
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    rehmosch @skokarl last edited by

                                    @skokarl said in Sonos-HTTP-API Installation für Newbies, Dummies und mich:

                                    @LJSven sagte in [gelöst] Sonos-HTTP-API Installation für Newbies, Dummies und mich:

                                    Ich habe jetzt mal alles neugestartet und ein Update auf den Sonos LS gemacht - jetzt geht es wieder.

                                    der Restart des Sonos Servers sollte das Problem behoben haben.

                                    Servus,
                                    wie starte ich den Sonos Server neu? Hab nach Umzug hier Sonos-Räume geändert und jetzt funktionieren meine Fernbedienungen nicht mehr, da er sich nicht die neuen Raumnamen holt.

                                    Wie mache ich das? Der Raumname ist schon 2 Tage anders ;(

                                    Danke

                                    XBiT 1 Reply Last reply Reply Quote 0
                                    • XBiT
                                      XBiT @rehmosch last edited by

                                      @rehmosch

                                      sudo systemctl restart sonosapi.service
                                      
                                      R 1 Reply Last reply Reply Quote 1
                                      • R
                                        rehmosch @XBiT last edited by

                                        @xbit said in Sonos-HTTP-API Installation für Newbies, Dummies und mich:

                                        sudo systemctl restart sonosapi.service

                                        vielen lieben dank!

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dodi666 last edited by dodi666

                                          Hallo,
                                          ich habe heute festgestellt, dass das Skript zur SonosApi leider nicht mehr mit der Javaskript Version 8.3.1 funktioniert.
                                          Hat jemand noch das Problem, oder habe ich vielleicht etwas übersehen?

                                          26.5.2024, 19:34:56.406	[info ]: javascript.0 (518) Stopping script script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data
                                          26.5.2024, 19:34:58.141	[info ]: javascript.0 (518) Start JavaScript script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data (Javascript/js)
                                          26.5.2024, 19:34:58.177	[info ]: javascript.0 (518) script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data: requestSonosAPI URL: http://192.168.1.37:5005/zones
                                          26.5.2024, 19:34:58.185	[error]: javascript.0 (518) script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data: ReferenceError: request is not defined
                                          26.5.2024, 19:34:58.186	[error]: javascript.0 (518)     at requestSonosAPI (script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data:89:5)
                                          26.5.2024, 19:34:58.187	[error]: javascript.0 (518)     at requestSonosZones (script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data:837:5)
                                          26.5.2024, 19:34:58.187	[error]: javascript.0 (518)     at script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data:957:1
                                          26.5.2024, 19:34:58.188	[error]: javascript.0 (518)     at script.js.Eigene_Skripte.PRG_011_SONOS.Z_SonosAPI_Data:966:3
                                          

                                          Habe es nochmal gechecked, mit JS 7.8.0 fünktioniert es noch...

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @dodi666 last edited by Thomas Braun

                                            @dodi666 sagte in Sonos-HTTP-API Installation für Newbies, Dummies und mich:

                                            ReferenceError: request is not defined

                                            Das Skript muss wohl auf eine andere Methode (axios / httpGET) umgebaut werden.

                                            Habe es nochmal gechecked, mit JS 7.8.0 fünktioniert es noch...

                                            Ja, in der Version wird request auch noch nicht angemeckert.

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            768
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            sonos
                                            50
                                            438
                                            95684
                                            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