Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Mehrere Werte an simpleapi senden?

    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

    Mehrere Werte an simpleapi senden?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Paul G.
      Paul G. last edited by

      Hi

      ich sende regelmäßig einen Wert an meine simple-api IoBroker in dieser Form:

      curl "http://192.168.4.2:8087/set/0_userdata.0.esp1.temp?value=20.96"
      

      Das funktioniert soweit alles bestens.

      Ist es aber auch möglich das man gleich mehrere Werte mit einem HTML Request sendet? Also etwa in der Form:

      curl "http://192.168.4.2:8087/set/0_userdata.0.esp1.multi?value=20.96;45.23;11.43"
      

      und das IoBroker das ganze dann "aufdieselt" und die drei Werte 20.96 45.23 11.43 in verschiedene Slots speichert?

      liv-in-sky 1 Reply Last reply Reply Quote 0
      • liv-in-sky
        liv-in-sky @Paul G. last edited by

        @paul-g

        weiß nicht was ein slot ist

        so wie du es machen willst, brauchst du ein script, welches den dp liest und dann aufteilt

        du findest hier was alles geht: https://github.com/ioBroker/ioBroker.simple-api

        da gibt es einen setbulk

        "setBulk": "http://ipaddress:8087/setBulk?stateID1=0.7&stateID2=0&prettyPrint"
        
        Paul G. 1 Reply Last reply Reply Quote 0
        • Paul G.
          Paul G. @liv-in-sky last edited by Paul G.

          danke, ich schau mir das mal an.

          @liv-in-sky said in Mehrere Werte an simpleapi senden?:

          @paul-g

          weiß nicht was ein slot ist

          Ich weiß nicht was die korrekte Bezeichnung dafür ist, mir ist nix anderes als "Slot" eingefallen 😁

          Screenshot_20211024_121211.png

          liv-in-sky 1 Reply Last reply Reply Quote 0
          • liv-in-sky
            liv-in-sky @Paul G. last edited by

            @paul-g

            nennt sich datenpunkt

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

              z.B.

               curl --data "Datenpunkt=Wert&weiterer_Datenpunkt=Wert...usw." http://ip_adresse:port/setBulk
              
              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              Support us

              ioBroker
              Community Adapters
              Donate
              FAQ Cloud / IOT
              HowTo: Node.js-Update
              HowTo: Backup/Restore
              Downloads
              BLOG

              892
              Online

              31.9k
              Users

              80.1k
              Topics

              1.3m
              Posts

              simple api
              3
              5
              277
              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