@andyw - we’re actually posting data to ubidots in 3 different ways:
-
using the custom particle endpoint created by @aguspg mentioned by Moors7 above. This automatically creates the data source and variables.
-
a particle webhook posting to the ubidots variables endpoint:
{ "event": "probability_prediction", "url":
“http://things.ubidots.com/api/v1.6/variables//values”,
“headers”: {
“X-Auth-Token”: “”
},
“requestType”: “POST”,
“mydevices”: true,
“json”:
{“value”: “{{probability_prediction}}”}
} -
A direct HttpClient post instead of spark.publish as in this example. We have been seeing some dropped webhooks so are testing out a direct http post from the device.