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

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • 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
                            • D
                              dodi666 @Thomas Braun last edited by

                              @thomas-braun Danke, das kann ich leider nicht selbst...

                              O 1 Reply Last reply Reply Quote 0
                              • O
                                oFbEQnpoLKKl6mbY5e13 @dodi666 last edited by

                                @dodi666

                                Reicht da nicht "const request = require('request');" am Anfang des Skripts?

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

                                  @ofbeqnpolkkl6mby5e13 das kann ich heute auf meinem Testsystem mal ausprobieren und das Ergebnis hier posten...

                                  S D 2 Replies Last reply Reply Quote 1
                                  • S
                                    skorpil @dodi666 last edited by skorpil

                                    Ich habe jetzt folgende Fehlermeldung

                                    
                                    request package is deprecated - please use httpGet (or a stable lib like axios) instead!
                                    
                                    

                                    Mit anderen Worten, die Fehlermeldung gibt eigentlich die Lösung (= httpGet) schon vor. Allerdings muss ich mich als Laie in die Programmierung erst einarbeiten. Ich habe aber gesehen, dass es dazu bereits im Forum einen Thread gibt:

                                    Forum Link zu request to httpGet

                                    Ich werde mich in den kommenden Tagen mal dran setzen und versuchen, das mithilfe des Forums um zu programmieren

                                    Homoran D 2 Replies Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @skorpil last edited by

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

                                      dass es dazu bereits im Forum einen Thread gibt:

                                      einen???
                                      Mittlerweile gefühlt hunderte 😁

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        skorpil @Homoran last edited by

                                        @homoran ich habe halt den gefunden😇 😇

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

                                          @skorpil das wäre ja prima. Stellst du das Ganze in diesem Thread zur Verfügung? Ich biete auch gerne meine Hilfe an. (beispielsweise zum testen...)

                                          S 1 Reply Last reply Reply Quote 0
                                          • S
                                            skorpil @dodi666 last edited by skorpil

                                            @dodi666 mache ich. Ob die Lösung dann für dich passt, muss man sehen. Und ob ich das hinkriege, ist die zweite Frage, denn ich bin kein JavaSkript Programmierer.

                                            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

                                            903
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            sonos
                                            49
                                            437
                                            91993
                                            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