Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. HTTP API Doorbird was läuft hier falsch.

    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

    HTTP API Doorbird was läuft hier falsch.

    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      Balu 0 last edited by

      Hallo zusammen,

      Sende ich einen allgemeinen API Befehl mit angehängtem Passwort an die Doorbird,
      funktioniert alles Prima.
      Auch ausgelöst über Blockly.
      http://xxxxxxxxxxxx/bha-api/light-on.cgi/?http-user=xxxxxxxxxx&http-password=xxxxxxxxxx

      Versuche ich einen Favoriten API Befehl mit user und Passwort angehängt auszulösen
      kommt : 400 Bad Request
      The request had bad syntax or was inherently impossible to be satisfied.

      Ohne Passwort und User angehängt frägt er im pop up das PW und UN ab und dann funktioniert es,
      allerdings bleibt die Seite weiss und es kommt kein reqest.

      Das geht meines wissens aber nicht mit Blockly oder ?

      Was ist der unterschied ?
      Laut Doorbird API sind die anmeldevefrfahren identisch.

      Adresse ohne Passwort : http://xxxxxxxxxxxxxx/bha-api/favorites.cgi?action=remove&type=sip&id=2
      Adresse mit Passwort : http://xxxxxxxxxxxxxx/bha-api/favorites.cgi?action=remove&type=sip&id=2/?http-user=xxxxxxxx&http-password=xxxxxxxx

      Doorbird API : https://www.doorbird.com/downloads/api_lan.pdf?rev=0.31

      Grüße
      Balu

      paul53 M 2 Replies Last reply Reply Quote 0
      • paul53
        paul53 @Balu 0 last edited by

        @balu-0 sagte: Adresse mit Passwort :

        Der Schrägstrich hinter "id=2" gehört dort vermutlich nicht hin.

        B 1 Reply Last reply Reply Quote 1
        • M
          MCU @Balu 0 last edited by MCU

          @balu-0 So?

          http://xxxxxxxxxxxxxx/bha-api/favorites.cgi?action=remove&type=sip&id=2&http-user=xxxxxxxx&http-password=xxxxxxxx
          

          API operator permission kann man irgendwo einstellen?

          B 1 Reply Last reply Reply Quote 1
          • B
            Balu 0 @paul53 last edited by

            @paul53

            Hat leider keinen Einfluss ,
            Damit hatte ich rumexperimentiert.

            1 Reply Last reply Reply Quote 0
            • B
              Balu 0 @MCU last edited by

              @mcu
              Der User hat API rechte auf der DoorBird.

              Wal 1 Reply Last reply Reply Quote 0
              • Wal
                Wal Developer @Balu 0 last edited by

                @balu-0 ,
                wenn ich mir den Doorbird-Adapter anschaue kommen die Logindaten vor den Parametern.

                http://xxxxxxxxxxxxxx/bha-api/favorites.cgi?http-user=xxxxxxxx&http-password=xxxxxxxx&action=remove&type=sip&id=2
                
                B 1 Reply Last reply Reply Quote 1
                • B
                  Balu 0 @Wal last edited by

                  @wal said in HTTP API Doorbird was läuft hier falsch.:

                  http://xxxxxxxxxxxxxx/bha-api/favorites.cgi?http-user=xxxxxxxx&http-password=xxxxxxxx&action=remove&type=sip&id=2

                  Ja das war es !!!!!!

                  Vielen Vielen Dank !

                  Grüße
                  Balu

                  1 Reply Last reply Reply Quote 0
                  • B
                    Balu 0 last edited by

                    Hallo zusammen !

                    Nachdem ich jetzt dank euch mal wieder einen Schritt weiter bin.
                    ist jetzt beim testen aufgefallen das ich auch jedes mal einen Zeitplan über API neu erstellen muss,
                    da dieser Logischerweise beim löschen des Favoriten mit verschwindet.

                    Hier ist jetzt in der API Beschreibung der Doorbird nicht wie bei den anderen befehlen eine HTTP zeile zum ersetzen der Parameter,
                    sondern code in der Console.
                    seite 26 https://www.doorbird.com/downloads/api_lan.pdf?rev=0.31

                    Bedeutet das das ich hier nicht wie gewöhnlich über http Parametrieren kann ?
                    Mit welchem Tool ist das Parametrieren der Zeitpläne Möglich ?

                    Viele Grüße

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      Balu 0 @Balu 0 last edited by

                      Habe jetzt Kontakt mit Doorbird gehabt. ( Sehr Guter Support antwortet innerhalb 24 h )

                      Die Schreiben mir folgendes :

                      **vielen Dank für Ihre Nachricht.

                      Das geht leider nicht über die Adresszeile, sonst wird immer ein GET Request geschickt.

                      Sie können folgendes in die Eingabeaufforderung (oder Terminal unter Linux / Mac) eingeben.

                      curl -v -X POST -H "Content-Type: application/json" -d '{"input":"doorbell","param":"1","output":[{"event":"http","param":"0","schedule":{"weekdays":[{"to":"79199","from":"79200"}]}},{"event":"http","param":"3","schedule":{"weekdays":[{"to":"79199","from":"79200"}]}},{"event":"http","param":"2","schedule":{"weekdays":[{"to":"79199","from":"79200"}]}},{"event":"http","param":"1","schedule":{"weekdays":[{"to":"79199","from":"79200"}]}},{"event":"notify","param":"","schedule":{"weekdays":[{"to":"79199","from":"79200"}]}}]}' http://xxx:xxx@xxx/bha-api/schedule.cgi**

                      ( Hier War die Anfrage den Zeitplan zu Ändern...)

                      Weis jemand wie ich so einen befehl über Blockly rausbekomme ?

                      Balu

                      1 Reply Last reply Reply Quote 0
                      • B
                        Balu 0 last edited by

                        @balu-0 said in HTTP API Doorbird was läuft hier falsch.:

                        Weis jemand wie ich so einen befehl über Blockly rausbekomme ?

                        ich wähhhr so glücklich wen mir da jemand helfen könnte,
                        ich werd noch wahnsinnig ! 🙂

                        Hiiiilfe !!

                        M 1 Reply Last reply Reply Quote 0
                        • M
                          MCU @Balu 0 last edited by

                          @balu-0
                          cefd90df-8561-4df9-a035-3891605ff051-image.png
                          Muss in javascript-Instanz aktiv gesetzt sein
                          4c43c714-bff9-48ab-8a8a-6a2ceac470b4-image.png

                          B 1 Reply Last reply Reply Quote 1
                          • mickym
                            mickym Most Active last edited by

                            Vielleicht solltest Du es halt mit was anderem als Blockly versuchen - zum Beispiel mit Javascript oder natürlich NodeRed.

                            1 Reply Last reply Reply Quote 1
                            • B
                              Balu 0 @MCU last edited by

                              @mcu

                              Lääääuft !!!!!!!

                              Danke Danke Danke DANKE !

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

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              762
                              Online

                              31.9k
                              Users

                              80.1k
                              Topics

                              1.3m
                              Posts

                              5
                              13
                              748
                              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