Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. besa

    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

    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 37
    • Best 0
    • Groups 1

    besa

    @besa

    Starter

    0
    Reputation
    12
    Profile views
    37
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    besa Follow
    Starter

    Latest posts made by besa

    • Airplay 2 Play Status in IOBROKER

      Vorab etwas über meine Umgebung: Ich verwende IOBROKER auf einem ODROID N2 Plus (empfehlenswert !!!, kann sogar noch höher getaktet werden), Raspberrymatic auf einem Tinkerboard S, phoscon und Homebridge auf einer VM auf meiner Synology. Als Benutzeroberfläche meines Hauses verwende ich die HOME App von Apple. Meine Musik wird via Airplay 2 auf Homepod Minis, ZIPP Lautsprecher bzw. per Airport auf meinen AV-Receiver und auf Teufel-Aktivboxen übertragen.

      Was mir gefehlt hat war, dass wenn ich die Musik anhalte meine Verstärker nach kurzer Zeit ausgeschaltet werden, bzw. sobald ich die Musik fortsetze, die Verstärker wieder automatisch eingeschaltet werden. Da Apple ein geschlossenes System ist, war auf Anhieb keine Lösung sichtbar. Ich habe mir dann mit einem Raspberry (kann als Hifiberry erweitert werden) einen Airplay 2 Empfänger konfiguriert. Die wichtigsten Links hierzu sind

      https://github.com/mikebrady/shairport-sync

      MQTT Info unter

      https://github.com/mikebrady/shairport-sync/blob/master/MQTT.md

      Nach Installation eines MQTT Server auf meinem IOBROKER und Inbetriebnahme des Airplay 2 Empfängers ,konnte ich dort mit dem MQTT Explorer Meldungen sehen.
      Die entscheidende Statusmeldungen "active_start" und "active_end" sind aufgrund fehlender PAYLOAD Inhalte schwierig zu verfolgen und im BLOCKLY ist es mir nicht geglückt die Meldung abzufragen (gerne könnt Ihr es einmal versuchen und Eure Lösung hier posten). Ich habe mich daher für eine Node-Red Lösung entschieden. Hier zunächst einmal die wichtige MQTT Einstellung im shairport-sync config file.

      mqtt =
      {
      enabled = "yes"; // set this to yes to enable the mqtt-metadata-service
      hostname = "192.168.yyy.xx"; // Hostname of the MQTT Broker
      port = 1884; // Port on the MQTT Broker to connect to
      username = "username"; //set this to a string to your username in order to enab>
      password = "password"; //set this to a string you your password in order to e>
      topic = "shairport-sync"; //MQTT topic where this instance of shairport-sync sh>
      publish_raw = "yes"; //whether to publish all available metadata under the code>
      publish_parsed = "yes"; //whether to publish a small (but useful) subset of met>
      publish_cover = "yes"; //whether to publish the cover over mqtt in binary form.>
      }

      Den Status "Airplay An-Aus" habe ich in in IOBROKER unter javascript angelegt, da ich dort auch noch andere Statusfelder pflege.

      Und das ist alles in Node-Red

      27-12-_2021_09-29-58.jpg

      EIn Hasenfuß ist, dass der "Airberry" immer verbunden sein muss, aber ich habe einfach keine andere Lösung gefunden.

      PS: Die ist mein erster Anwendungsbeitrag. Sorry wenn ich nicht alles richtig formatiert habe.

      posted in Praktische Anwendungen (Showcase)
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @thomas-braun Viele herzlichen Dank und ein schönes Wochenende im Biergarten

      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @thomas-braun Danke für die Lesehilfe. Aber ich war verloren, da ich dachte, dass der NODEJS Teil nur nodejs installiert und nicht NODE und NPM auch.

      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @besa Das kam mir gleich Spanisch vor

      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @thomas-braun Also ich habe einfach mal den mitteleren Teil "wget https://unofficial-builds.nodejs.org/download/release/v12.22.1/node-v12.22.1-linux-armv6l.tar.xz " weggelassen und neu gebootet und schwups

      hich nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v12.22.1
      v12.22.1
      6.14.12
      nodejs:
        Installed: 12.22.1-1nodesource1
        Candidate: 12.22.1-1nodesource1
        Version table:
       *** 12.22.1-1nodesource1 500
              500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
              100 /var/lib/dpkg/status
           4.8.2~dfsg-1 500
              500 http://http.debian.net/debian stretch/main armhf Packages
      
      
      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @thomas-braun Okay, alle wiedee gelöscht mit

      sudo rm /usr/local/bin/node
      sudo rm /usr/local/bin/npm
      
      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -  
      sudo apt-get install -y nodejs
      sudo apt-get update && sudo apt-get install yarn
      
      
      which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v12.22.1
      

      Jetzt fehlte natürlich noch node, oder? Also dann gem. der Anleitung

      wget https://unofficial-builds.nodejs.org/download/release/v12.22.1/node-v12.22.1-linux-armv6l.tar.xz 
      tar -xvf node-v12.22.1-linux-armv6l.tar.xz
      cd node-v12.22.1-linux-armv6l/
      sudo cp -R * /usr/local/
      sudo ln -s /usr/local/bin/node /usr/local/bin/nodejs
      sudo reboot
      

      und leider jetzt alles wieder unter local

      linaro@tinkerboard:~$ which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/local/bin/nodejs
      /usr/local/bin/node
      /usr/local/bin/npm
      v12.22.1
      v12.22.1
      6.14.12
      nodejs:
        Installed: 12.22.1-1nodesource1
        Candidate: 12.22.1-1nodesource1
        Version table:
       *** 12.22.1-1nodesource1 500
              500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
              100 /var/lib/dpkg/status
           4.8.2~dfsg-1 500
              500 http://http.debian.net/debian stretch/main armhf Packages
      linaro@tinkerboard:~$
      

      Mir fehlt irgendwie der Schritt nach der Installation von nodejs node und npm im richtigen Verzeichnis zu installieren. Das habe ich leider nicht gesehen.

      DANKE

      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @besa Das hatte ich eingegeben:

      sudo apt remove node*
      sudo rm /usr/local/bin/node
      sudo rm /usr/local/bin/npm
      
      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @thomas-braun Ja das mit den Pfaden haut leider nicht hin. Habe gem. Deiner Anleitung alles nodejs und node deinstalliert und die Directories mit rm gelöscht.
      Dann

      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -  (für die 12er Version)
      sudo apt-get install -y nodejs
      sudo apt-get update && sudo apt-get install yarn
      sudo npm cache clean -f
      sudo npm install -g n
      sudo n 12.22.1 
      node -v 
      iobroker fix
      iobroker start
      
       which nodejs node npm && nodejs -v && node -v && npm -v && apt policy nodejs
      /usr/bin/nodejs
      /usr/local/bin/node
      /usr/local/bin/npm
      v12.22.1
      v12.22.1
      6.14.12
      nodejs:
        Installed: 12.22.1-1nodesource1
        Candidate: 12.22.1-1nodesource1
        Version table:
       *** 12.22.1-1nodesource1 100
              100 /var/lib/dpkg/status
           10.24.1-1nodesource1 500
              500 https://deb.nodesource.com/node_10.x stretch/main armhf Packages
           4.8.2~dfsg-1 500
              500 http://http.debian.net/debian stretch/main armhf Packages
      
      

      ... und alles ist wieder im "local" Ordner

      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @thomas-braun

      
      linaro@tinkerboard:/opt/iobroker$ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
      /usr/bin/nodejs
      v12.22.1
      /usr/local/bin/node
      v12.22.1
      /usr/local/bin/npm
      6.14.12
      nodejs:
        Installed: 12.22.1-1nodesource1
        Candidate: 12.22.1-1nodesource1
        Version table:
       *** 12.22.1-1nodesource1 500
              500 https://deb.nodesource.com/node_12.x stretch/main armhf Packages
              100 /var/lib/dpkg/status
           4.8.2~dfsg-1 500
              500 http://http.debian.net/debian stretch/main armhf Packages
      
      
      posted in Error/Bug
      B
      besa
    • RE: npm ERR! code ENOTEMPTY - Adapter Upgrade nicht mehr möglich

      @besa Gerade node.js noch upgedatet

      posted in Error/Bug
      B
      besa
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo