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. Skripten / Logik
  4. HTTP POST string per blockly senden oder curl string

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.1k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.4k

HTTP POST string per blockly senden oder curl string

Scheduled Pinned Locked Moved Skripten / Logik
6 Posts 4 Posters 4.0k Views 2 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.
  • The SpiritT Offline
    The SpiritT Offline
    The Spirit
    wrote on last edited by
    #1

    HI.

    Hab ein Gerät, welches ich über http post steuern kann.

    Dazu muss ich ein post mit einer http Adresse und dem Befehl UP oder DOWN schicken.

    Wie kann ich das in blockly machen?

    Als zweite Möglichkeit hätte ich nen kompletten curl string.

    curl -X POST --header "Content-Type: text/plain" --header "Accept: application/json" -d "DOWN" "http://ip:port/rest/items/wohnzimmer_auf_zu"
    

    Geht damit was?

    Danke,

    Andreas

    1 Reply Last reply
    0
    • AlCalzoneA Offline
      AlCalzoneA Offline
      AlCalzone
      Developer
      wrote on last edited by
      #2

      https://github.com/ioBroker/ioBroker.ja … equest-url

      Geht nur relativ beschränkt (GET ohne Body).

      Als Alternative kannst du das Request-Modul in einer JavaScript-Funktion verwenden, die du in dein Blockly einbindest:

      https://github.com/request/request => hier mal etwas lesen (request.post)

      https://github.com/ioBroker/ioBroker.ja ... turn-value => Einbinden einer JS-Funktion in Blockly

      Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

      C 1 Reply Last reply
      0
      • The SpiritT Offline
        The SpiritT Offline
        The Spirit
        wrote on last edited by
        #3

        Hi.

        Danke schonmal.

        Das erste kann ja nicht gehen, da ich ja den POST Befehl "DOWN" dann ja nicht mit schicken kann, oder?

        Die anderen beiden Punkte muss ich mir mal ansehen.

        Danke

        1 Reply Last reply
        0
        • The SpiritT Offline
          The SpiritT Offline
          The Spirit
          wrote on last edited by
          #4

          Hab mir jetzt die beiden letzten links noch angesehen.

          Jedoch werde ich darauf nicht ganz schlau.

          Bin leider noch eher Anfänger.

          Kannst du mir mal was zusammen basteln?

          Danke,

          Andreas

          nik82N 1 Reply Last reply
          0
          • The SpiritT The Spirit

            Hab mir jetzt die beiden letzten links noch angesehen.

            Jedoch werde ich darauf nicht ganz schlau.

            Bin leider noch eher Anfänger.

            Kannst du mir mal was zusammen basteln?

            Danke,

            Andreas

            nik82N Offline
            nik82N Offline
            nik82
            Most Active
            wrote on last edited by
            #5

            Hallo,
            ich weiß das Thema ist schon alt, aber genau das was ich auch suche.
            Wie kann ich über Javascript bzw. am besten per Blockly einen Curl-Befehl (also ein HTTP Post mit Body) ausführen?

            Danke im Voraus.

            1 Reply Last reply
            0
            • AlCalzoneA AlCalzone

              https://github.com/ioBroker/ioBroker.ja … equest-url

              Geht nur relativ beschränkt (GET ohne Body).

              Als Alternative kannst du das Request-Modul in einer JavaScript-Funktion verwenden, die du in dein Blockly einbindest:

              https://github.com/request/request => hier mal etwas lesen (request.post)

              https://github.com/ioBroker/ioBroker.ja ... turn-value => Einbinden einer JS-Funktion in Blockly

              C Offline
              C Offline
              claus1968
              wrote on last edited by
              #6

              @alcalzone
              Aus dem ersten Link werde ich auch nicht schlau. Bin ebenfalls Anfänger.
              Leider kann ich nur ein bisschen Blockly programmieren.
              Der zweite Link ist tot (404)

              Status: Anfänger im iobroker
              Proxmox auf Gigabyte Brix i3-7100U; ioBroker im Container

              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

              803

              Online

              32.5k

              Users

              81.6k

              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