Hello gang! New to the community, fun to be here!
Just wanted to know, may just be ingorance on my part but I couldn’t see it whilst reading the documentation.
Is there a way to setup a MQTT broker that publishes data from sensors that are not BYOT? I have a bunch of Elsys sensors that I would like to have the data from, not just see it in the dashboard.
Thanks for any replies.
On the cayenne dashboard, search for elsys devices and see if it listed. if not then it is not supported and cannot be added to cayenne.
Yeah maybe I phrased my question really bad here.
I can add them to cayenne, that’s no problem. Data is coming in nicely to the dashboard. I just wan to know if there is a way for me to get that data from a REST-API or something so I can use it outside the dashboard?
to get history data:
curl --request GET \
--url 'https://cayenne.mydevices.com/cayenne/api/cayenneapi/history/THING_ID/SENSOR_ID?type=latest' \
--header 'authorization: Bearer JWT_TOKEN'
to get JWT token:
curl --request POST \
--url https://accounts.mydevices.com/auth/realms/cayenne/protocol/openid-connect/token \
--header 'content-type: application/x-www-form-urlencoded' \
--data 'grant_type=password&client_id=APP key&client_secret=APP Secret&username=email_id&password=password’