🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Thingspeak API - multiple fields

    Units
    2
    3
    557
    Loading More Posts
    • 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.
    • M
      m5oss
      last edited by

      Hello,

      I'm stuck on a problem sending data on the thingspeak platform (ENV â…£ Unit).
      I can't send multiple data at the same time on thingspeak. On the other hand, only one data works.

      Examples (url_thingspeak):

      1. only one send works:

      http://api.thingspeak.com/update?api_key=AS000000001&field6=1

      2. Multiple data sends do not work, I tried several solutions:

      http://api.thingspeak.com/update?api_key=AS000000001&field6=[pression]&field7=[temperature]&field8=[humidity]

      http://api.thingspeak.com/update?api_key=AS000000001&field6=' + pression + '&field7=' + temperature + '&field8=' + humidity

      http://api.thingspeak.com/update?api_key=AS000000001&field6= + pression + &field7= + temperature + &field8= + humidity

      This may be a basic question, but I can't find the solution as a beginner :-(.

      Thanks for your help

      2024-09-29 00 26 50.png

      felmueF 1 Reply Last reply Reply Quote 0
      • felmueF
        felmue @m5oss
        last edited by

        Hello @m5oss

        try something like below:

        UIFlow1CreateURL_20240929.png

        or try using an Execute Code block with this content:

        url_thingspeak = 'http://api.thingspeak.com/update?api_key=A00000056&field1=' + str(pression) + '&field2=' + str(temperature) + '&field3=' + str(humidity)
        

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        M 1 Reply Last reply Reply Quote 0
        • M
          m5oss @felmue
          last edited by

          Hello @felmue

          Thanks for your help.

          Everything works with this solution :-) :

          2024-09-30 23 04 21.png

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