Help with webhook and ThingSpeak

Hi to all
I am using:

https://api.thingspeak.com/update?api_key=XXXXXXXX&field1=/pin/

With web hook and it works.

My question is how to pass additional data to the same to update many fields at once?

For example:
https://api.thingspeak.com/update?api_key=XXXXXXX&field1=/pin/&field2=/intValue/&metadata={StringValue}

Thanks in advance

@hatters please follow docs - http://docs.blynk.cc/#widgets-other-webhook everything is there.

Not sure what this means but if you want to post additional variables from the Webhook widget you need to post the variables as an array to the Webhook trigger pin.

Blynk.virtualWrite(Vx, field0, field1, ......fieldn);

then call the array elements in the Webook as /pin[0]/,/pin[1]/,…, /pin[n]/

1 Like

@Dmitriy thanks for the prompt response.
@Costas, thanks - that makes a lot of sense. I will give it a r try

Regards

@Costas,
Do you mean something like this?

Blynk.virtualWrite(V10 temp,hum);

and this for the webhook
https://api.thingspeak.com/update?api_key=XXXXXXXXX&field1=/pin[0]&field2=/pin[1]/

Regards

think you are missing a /

https://api.thingspeak.com/update?api_key=XXXXXXXXX&field1=/pin[0]/&field2=/pin[1]/

Using this one only field2 is being updated. you are right

GREAT. It works now. Thanks for the help Costas

1 Like