Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. Post JSON an Yamaha AV Receiver

    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

    Post JSON an Yamaha AV Receiver

    This topic has been deleted. Only users with topic management privileges can see it.
    • bahnuhr
      bahnuhr Forum Testing Most Active last edited by

      Hallo,
      ich versuche folgendes (aus api Befehle kopiert) an meinen Receiver zu senden:
      c5a614fb-6b97-4d39-b5e2-10c8d0737942-image.png

      Probiert habe ich es so:

      var request = require('request');
      
      
      var options = {
          url: 'http://192.168.xxx.xxx/YamahaExtendedControl/v1/dist/setServerInfo',
          method: 'POST',
          //dataType: 'json',
          form: {group_id:"9A237BF5AB80ED3C7251DFF49825CA42",
          zone:"main",
          type:"add",
          client_list:[
          "192.168.xxx.yyy",
          ]}
      };
      
      
      request(options,function (error, response, body){
          log ("code = " + response.statusCode);
          log ("json = " + body);
      });
      
      

      Funktioniert aber nicht.

      Habt ihr mal eine Idee für mich.

      Danke im Voraus.

      1 Reply Last reply Reply Quote 0
      • sigi234
        sigi234 Forum Testing Most Active last edited by

        Welcher Yamaha?

        1 Reply Last reply Reply Quote 0
        • bahnuhr
          bahnuhr Forum Testing Most Active last edited by

          RX-V685

          api hab ich direkt von yamaha.

          sigi234 1 Reply Last reply Reply Quote 0
          • sigi234
            sigi234 Forum Testing Most Active @bahnuhr last edited by

            @bahnuhr sagte in Post JSON an Yamaha AV Receiver:

            RX-V685

            api hab ich direkt von yamaha.

            Was kommt für eine Rückmeldung wenn du den Link im direkt Browser eingibst?
            Was willst du damit steuern oder senden?

            1 Reply Last reply Reply Quote 0
            • bahnuhr
              bahnuhr Forum Testing Most Active last edited by

              als statuscode kommt 200 (das scheint ja richtig zu sein)
              als body kommt 2 (das scheint nicht zu gehen)

              Wenn ich dann browser "getDistributionInfo" ausführe sehe ich dass der id nicht gesetzt ist.

              Ziel:
              Gruppe einrichten der musiccast Lautsprecher.

              mfg

              1 Reply Last reply Reply Quote 0
              • bahnuhr
                bahnuhr Forum Testing Most Active last edited by

                sag mir doch mal ob mein script grundsätzlich richtig ist.
                Oder ob da andere Befehle notwendig wären.

                sigi234 1 Reply Last reply Reply Quote 0
                • sigi234
                  sigi234 Forum Testing Most Active @bahnuhr last edited by

                  @bahnuhr

                  Puh Skript ist nicht mein Ding.....da kann ich dir nicht helfen.

                  Aber:

                  Link Text

                  1 Reply Last reply Reply Quote 0
                  • bahnuhr
                    bahnuhr Forum Testing Most Active last edited by

                    Ja, danke für den Link.
                    Aber google Ergebnisse hab ich schon alle durch.

                    Ich müsste eigentlich nur wissen wie ich den o.g. api Befehl korrekt per Script darstelle.

                    Vielleicht ist noch ein Spezialist hier.

                    mfg

                    1 Reply Last reply Reply Quote 0
                    • bahnuhr
                      bahnuhr Forum Testing Most Active last edited by

                      Hat sich erledigt.
                      Workflow gefunden.

                      S 1 Reply Last reply Reply Quote 0
                      • S
                        StrgAltDel @bahnuhr last edited by

                        @bahnuhr
                        Hallo,
                        kannst Du bitte Deinen gefundenen Workflow hier posten?
                        Danke und Gruß.

                        bahnuhr 1 Reply Last reply Reply Quote 0
                        • bahnuhr
                          bahnuhr Forum Testing Most Active @StrgAltDel last edited by

                          @StrgAltDel sagte in Post JSON an Yamaha AV Receiver:

                          @bahnuhr
                          Hallo,
                          kannst Du bitte Deinen gefundenen Workflow hier posten?
                          Danke und Gruß.

                          Hallo,
                          mein Script hatte ich hier irgendwo mal gepostet.
                          Musst mal suchen.
                          mfg

                          1 Reply Last reply Reply Quote 0
                          • S
                            StrgAltDel last edited by

                            Das wäre sehr hilfreich. Danke für Deine Mühe.
                            Gruß.

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            771
                            Online

                            31.8k
                            Users

                            80.0k
                            Topics

                            1.3m
                            Posts

                            javascript
                            3
                            12
                            783
                            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