Ubidots Community

Is there a way to store text data for the client to read?

I would like to be able to have setup data for other functions for the end client to be able to perform (list of IP addresses to poll, activation keys, etc.). Is there any way to set and host these non-numeric values in the Ubidots cloud? All data points currently appear to be numeric.



Hi there, it is possible to send text in the “context” property. You can send it like this:

curl -X POST -H "Content-Type: application/json" -d '{"value":11.21, "context":{"lat":1.12, "lng":2.019, "ip":"", "status":"OK", "message":"Hello"}}' http://things.ubidots.com/api/v1.6/devices/lora-device/temperature/values?token=c74qFmzI7ikTmZ3dFvF3e2hPEmCfu5

See: https://ubidots.com/docs/api/index.html#send-values-to-one-variable

Thanks hackmed! That’s a start, but the ability to set a text message variable and display it in the dashboard would be VERY useful. In my case, I want to have a message show on the dashboard based on the condition of the system (CPU overload, MEM overload, Hard Disk error message, etc.). Some of this is non-numeric. The ability to have a TEXT variable as well as NUMERICs would be ideal.



OK. Looks like I found a solution from the community:

This should do what I want for the most part. It’s a good start at least.

Thanks everyone!

  • Mike