Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Sonos-API Meldung

    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-API Meldung

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @surfer09 last edited by

      @surfer09

      Bitte auch Texte aus einem Windows als das hier reinkopieren was sie sind...
      TEXT. In CodeTags eingebettet.

      surfer09 1 Reply Last reply Reply Quote 0
      • surfer09
        surfer09 @Thomas Braun last edited by

        @thomas-braun Wenn es weiterhilft...

        2024-06-25T10:30:08.673Z INFO http server listening on 0.0.0.0 port 5005
        (node:12560) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
        (Use `node --trace-deprecation ...` to show where the warning was created)
        
        Thomas Braun 2 Replies Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @surfer09 last edited by Thomas Braun

          @surfer09 sagte in Sonos-API Meldung:

          Wenn es weiterhilft...

          Ja, hilft weiter, weil

          Aus mehreren Gründen sind Screenshots (oder gar verwackelte Handybilder) von Konsolentext nicht hilfreich.
          sind Screenshots nicht auf allen Geräten gut lesen (So arbeiten viele Helfende von unterwegs mit einem Handy)
          Man kann daraus nichts zitieren.
          Man kann daraus auch nichts kopieren, um selber die Suchfunktion oder google zu füttern.
          Ist ein Bild immer eine größere Datenmenge als reiner Text.
          Ist das öffnen von Bildern nicht immer möglich, zumal wenn die gleiche Info auch im Thema eingebettet zu lesen wäre.
          Die Suchfunktion hier im Forum kann natürlich auch mit Bildern nix anfangen und nicht in den Index übernehmen.

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

            @surfer09

            Was nicht weiter hilft:
            Wenn du dann nicht die vollständigen Ein- und Ausgaben postest...

            surfer09 1 Reply Last reply Reply Quote 0
            • surfer09
              surfer09 @Thomas Braun last edited by

              @thomas-braun

              C:\Batch>cd /D I:\Sonos\node-sonos-http-api-master
              
              I:\Sonos\node-sonos-http-api-master>npm start
              
              > sonos-http-api@1.6.9 start
              > node server.js
              
              2024-06-25T10:58:39.408Z INFO Could not find file I:\Sonos\node-sonos-http-api-master\settings.json
              2024-06-25T10:58:39.516Z INFO Presets loaded: {
                example: {
                  players: [
                    { roomName: 'Bathroom', volume: 10 },
                    { roomName: 'Kitchen', volume: 10 },
                    { roomName: 'Office', volume: 10 },
                    { roomName: 'Bedroom', volume: 10 },
                    { roomName: 'TV Room', volume: 15 }
                  ],
                  playMode: { shuffle: true, repeat: 'all', crossfade: false },
                  pauseOthers: false
                }
              }
              2024-06-25T10:58:39.976Z INFO http server listening on 0.0.0.0 port 5005
              (node:6944) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
              (Use `node --trace-deprecation ...` to show where the warning was created)
              
              Thomas Braun 1 Reply Last reply Reply Quote 0
              • Thomas Braun
                Thomas Braun Most Active @surfer09 last edited by

                @surfer09 sagte in Sonos-API Meldung:

                Could not find file I:\Sonos\node-sonos-http-api-master\settings.json

                Dann leg die an, wenn die Datei fehlt. Beispiel wie die aussehen könnte ist ja auch dabei.

                surfer09 1 Reply Last reply Reply Quote 0
                • surfer09
                  surfer09 @Thomas Braun last edited by

                  @thomas-braun Mir ging es eigentlich um die Meldung unten, deswegen hatte ich vorhin ja auch nur die gepostet.

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

                    @surfer09

                    Nö, das ist ja nur ein Hinweis. Muss der Maintainer des Moduls die richtigen Schlüsse draus ziehen, was er da anders programmieren muss.

                    surfer09 1 Reply Last reply Reply Quote 0
                    • surfer09
                      surfer09 @Thomas Braun last edited by

                      @thomas-braun Aber das mit der settings.json verstehe ich auch nicht. Es gibt eine settings.js in dem Verzeichnis. Wenn ich diese Datei jetzt einfach mal kopiere und in settings.json umbenenne, kommt das hier:

                      explorer_JZVcc0RZvM.jpg

                      2024-06-25T11:22:06.158Z WARN Could not read file I:\Sonos\node-sonos-http-api-master\settings.json, ignoring.
                        SyntaxError: Syntax error at line 1 column 14 of the JSON5 data. Still to read: ";\nconst fs = require"
                          at error (I:\Sonos\node-sonos-http-api-master\node_modules\json5\lib\json5.js:56:25)
                          at Object.parse (I:\Sonos\node-sonos-http-api-master\node_modules\json5\lib\json5.js:511:13)
                          at tryLoadJson (I:\Sonos\node-sonos-http-api-master\lib\helpers\try-load-json.js:8:33)
                          at Object.<anonymous> (I:\Sonos\node-sonos-http-api-master\settings.js:29:22)
                          at Module._compile (node:internal/modules/cjs/loader:1358:14)
                          at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
                          at Module.load (node:internal/modules/cjs/loader:1208:32)
                          at Module._load (node:internal/modules/cjs/loader:1024:12)
                          at Module.require (node:internal/modules/cjs/loader:1233:19)
                          at require (node:internal/modules/helpers:179:18)
                      2024-06-25T11:22:06.270Z INFO Presets loaded: {
                        example: {
                          players: [
                            { roomName: 'Bathroom', volume: 10 },
                            { roomName: 'Kitchen', volume: 10 },
                            { roomName: 'Office', volume: 10 },
                            { roomName: 'Bedroom', volume: 10 },
                            { roomName: 'TV Room', volume: 15 }
                          ],
                          playMode: { shuffle: true, repeat: 'all', crossfade: false },
                          pauseOthers: false
                        }
                      }
                      2024-06-25T11:22:06.690Z INFO http server listening on 192.168.1.25 port 5005
                      

                      Ganz richtig scheint das auch nicht zu sein.

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

                        @surfer09 sagte in Sonos-API Meldung:

                        Ganz richtig scheint das auch nicht zu sein.

                        Nö, das ist ja auch nur ein Beispiel. Muss auf dein Setup angepasst werden. Deine Räume heißen vermutlich nicht Bathroom; Kitchen usw.

                        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

                        379
                        Online

                        31.9k
                        Users

                        80.3k
                        Topics

                        1.3m
                        Posts

                        sonos-http-api
                        2
                        11
                        343
                        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