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

    Thingspeak API - multiple fields

    Scheduled Pinned Locked Moved Units
    3 Posts 2 Posters 1.9k Views
    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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post