Particle thingsboard Webhook


#1

Responding to a Private Message from Pablo Rattin

Hi Jhonny, I want to add a particle to thingsboards via webhook?
I read your post in the comunity, I’m total lost,I’m far far far away of json’s etc.

curl -v -X POST -d “{“temperature”: 25}” http://things.xxxxx.com/api/v1/$TOKEN_THINGSBOARD/telemetry --header “Content-Type:application/json”

I test the device over thingboard with curl.
Any help will be very appreciated

Pablo, firstly your Quotes are wrong. Try using Double quotes for the curl parameter but single quotes in the JSON parameter.
Secondly, The TOKEN_THINGSBOARD should be the device token, so In thingsboard click on Manage Credentials and use the TB generate token. Then you should have a telemetry update.
E.G. curl -v -X POST -d "{'temperature': 25}" https://www.s2j.io:8080/api/v1/1a2b3c4d5e6f7g8h9i0j/telemetry --header "Content-Type:application/json"


split this topic #2

2 posts were merged into an existing topic: Custom Webhook Thingsboard


closed #3