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. ioBroker Allgemein
  4. Sonos-HTTP-API Installation für Newbies, Dummies und mich

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.1k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    936

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

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

Scheduled Pinned Locked Moved ioBroker Allgemein
sonos
438 Posts 50 Posters 125.0k Views 48 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by A Former User
    #398

    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
    0
    • ? 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

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #399

      @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
      0
      • ? 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 Offline
        H Offline
        hsjan
        wrote on last edited by
        #400

        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
        0
        • H hsjan

          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 Offline
          S Offline
          skokarl
          wrote on last edited by
          #401

          @hsjan

          Umlaute sind immer doof .

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

          IOBroker mit Proxmox auf Celeron Nuc mit 16 GB und Debian11, Sonos API, Echo Show 15 als Wandtablet, Homematic IP, HUE, Sonos, Echos, DS718+ als Backup

          H 1 Reply Last reply
          0
          • S skokarl

            @hsjan

            Umlaute sind immer doof .

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

            H Offline
            H Offline
            hsjan
            wrote on last edited by
            #402

            @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
            0
            • H hsjan

              @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 Offline
              S Offline
              skokarl
              wrote on last edited by
              #403

              @hsjan

              Raum Wohnzimmer not found.

              In der App am Handy alles richtig ?

              IOBroker mit Proxmox auf Celeron Nuc mit 16 GB und Debian11, Sonos API, Echo Show 15 als Wandtablet, Homematic IP, HUE, Sonos, Echos, DS718+ als Backup

              1 Reply Last reply
              0
              • S skokarl

                Schönen Sonntag, kurz vorm Grillen möchte ich Euch an meinem Sonntagsprojekt teilhaben lassen.

                Ich weiß dass viele von Euch Sonos Boxen haben und immer wieder mal Probleme mit dem Adapter haben,
                auch ich. Etliche Versuche haben bei mir nicht zu dem gewünschten Erfolg geführt, oder es war zu umständlich.

                Ausgehend von diesem Thread

                Link Text

                möchte ich hier den Anfängern ( also auch mir ) eine kleine Anleitung geben wie man die
                Sonos Boxen super einfach über HTTP-API erreichen kann.

                @Marty56 hat's vorgemacht, Danke dafür !!
                Die Anleitung für Newbies, Dummies und mich fehlte aber noch irgendwie.

                Heute morgen hab ich es ( ganz stolz auf mich :grinning: ), probiert und zu Ende gebracht.
                Der Admin möge mir den neuen Thread verzeihen, aber Marty56 seiner, hatte ja im Ursprung einen
                anderen Hintergrund.

                Hier die Anleitung ( zusammengesucht, getestet und für gut befunden )
                Achtung, ich habe keine große Ahnung, daher alles auf eigene Verantwortung.


                Mit Putty auf dem IOBroker einloggen ( ich hab ne NUC )
                und folgende Befehle der Reihe nach eingeben
                Ich habe dies in meinem Home Verzeichnis ausgeführt.

                ggf. vorher wget installieren wenn nicht verfügbar ( Debian )

                $ sudo apt install wget
                oder
                $ sudo apt-get install wget

                wget https://github.com/jishi/node-sonos-http-api/archive/master.zip
                unzip master.zip
                cd node-sonos-http-api-master
                npm install --production
                
                

                Quelle

                Damit wurde der Server installiert.
                Start des Servers mit

                npm start
                

                Putty offen lassen !!

                erster Test, muss jetzt funktionieren

                http://192.168.xxx.xxx:5005/

                1.PNG

                In Putty tauchen jetzt zwei Meldungen auf die verwirrend sind

                1.) settings.json wird nicht gefunden ( ignorieren )
                Wenn keine settings.json gefunden wird, wird die default Einstellung genommen,
                passt bei mir, sollte bei Euch auch passen.
                In den Settings könnten spezielle Einstellungen verändert werden, wie z.B der Port 5005

                2.) http server listening on 0.0.0.0
                ignorieren...keine Ahnung, passt aber, und muss nicht Eure IP Adresse sein

                Jetzt kommt das was ich lange nicht verstanden hatte.....Räume undsowas....
                Die Räume habt ihr selbst schon in der Sonos APP angelegt, genauso wie Eure Favoriten etc.

                Und weil es so einfach ist,
                funktioniert jetzt auch schon sowas

                http://192.168.xxx.xxx:5005/Sonos Tablet/favorite/HIT RADIO FFH
                

                ( "Sonos Tablet" ist ein Raum, FFH ist klar, beides wurde in der SONOS App im Handy hinterlegt )

                Wenn Putty geschlossen wird, ist der allerdings weg.

                Autostart folgt wenn ich weiß wie es geht.

                ( kommt einige Post's später )

                ich hoffe ich konnte Euch auch mal helfen, viel Spaß,
                Ich glaube dieser Weg ist extrem vielversprechend und vielseitig.

                Gruß Bernd

                Thorsten MissenbergerT Offline
                Thorsten MissenbergerT Offline
                Thorsten Missenberger
                wrote on last edited by
                #404

                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
                0
                • XBiTX Offline
                  XBiTX Offline
                  XBiT
                  wrote on last edited by XBiT
                  #405

                  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
                  0
                  • J Offline
                    J Offline
                    jwerlsdf
                    wrote on last edited by
                    #406

                    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
                    0
                    • J jwerlsdf

                      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 Offline
                      D Offline
                      dodi666
                      wrote on last edited by
                      #407

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

                      http://192.....28:5005/Badezimmer/join/Flur
                      
                      1 Reply Last reply
                      0
                      • S skokarl

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

                        R Offline
                        R Offline
                        rehmosch
                        wrote on last edited by
                        #408

                        @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

                        RP4/Conbee II/Pihilips Hue/HarmonyHub/Sonos/Alexa/Aqara Sensoren/Tradfri/ZigbeeThermostate/Xiaomi Saugroboter/Smarte Türklingel & Briefkasten ...

                        XBiTX 1 Reply Last reply
                        0
                        • R rehmosch

                          @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

                          XBiTX Offline
                          XBiTX Offline
                          XBiT
                          wrote on last edited by
                          #409

                          @rehmosch

                          sudo systemctl restart sonosapi.service
                          
                          R 1 Reply Last reply
                          1
                          • XBiTX XBiT

                            @rehmosch

                            sudo systemctl restart sonosapi.service
                            
                            R Offline
                            R Offline
                            rehmosch
                            wrote on last edited by
                            #410

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

                            sudo systemctl restart sonosapi.service

                            vielen lieben dank!

                            RP4/Conbee II/Pihilips Hue/HarmonyHub/Sonos/Alexa/Aqara Sensoren/Tradfri/ZigbeeThermostate/Xiaomi Saugroboter/Smarte Türklingel & Briefkasten ...

                            1 Reply Last reply
                            0
                            • D Offline
                              D Offline
                              dodi666
                              wrote on last edited by dodi666
                              #411

                              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 BraunT 1 Reply Last reply
                              0
                              • D 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 BraunT Online
                                Thomas BraunT Online
                                Thomas Braun
                                Most Active
                                wrote on last edited by Thomas Braun
                                #412

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

                                Linux-Werkzeugkasten:
                                https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                NodeJS Fixer Skript:
                                https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                D 1 Reply Last reply
                                0
                                • Thomas BraunT 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 Offline
                                  D Offline
                                  dodi666
                                  wrote on last edited by
                                  #413

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

                                  O 1 Reply Last reply
                                  0
                                  • D dodi666

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

                                    O Offline
                                    O Offline
                                    oFbEQnpoLKKl6mbY5e13
                                    wrote on last edited by
                                    #414

                                    @dodi666

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

                                    D 1 Reply Last reply
                                    0
                                    • O oFbEQnpoLKKl6mbY5e13

                                      @dodi666

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

                                      D Offline
                                      D Offline
                                      dodi666
                                      wrote on last edited by
                                      #415

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

                                      S D 2 Replies Last reply
                                      1
                                      • D dodi666

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

                                        S Offline
                                        S Offline
                                        skorpil
                                        wrote on last edited by skorpil
                                        #416

                                        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

                                        HomoranH D 2 Replies Last reply
                                        0
                                        • S 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

                                          HomoranH Offline
                                          HomoranH Offline
                                          Homoran
                                          Global Moderator Administrators
                                          wrote on last edited by
                                          #417

                                          @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 :grin:

                                          kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

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

                                          der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                          S 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
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          584

                                          Online

                                          32.6k

                                          Users

                                          82.2k

                                          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