GetLatestTemperatureRawDataByUUID gives "Invalid UUID"

148 views
Skip to first unread message

John Abraham

unread,
Dec 25, 2016, 5:11:33 PM12/25/16
to Wireless Sensor Tags
I'm new.  This example works

curl -H 'Content-Type: application/json; charset=utf-8' -X POST https://www.mytaglist.com/ethLogShared.asmx/GetLatestTemperatureRawDataByUUID -d '{"uuid":"0f32cb87-eb86-4a60-9e66-e0cfd661cba1"}'

for some tag somewhere, based on the API docs. 


But when I try to find my own tag's temperature it doesn't work:


curl -H 'Content-Type: application/json; charset=utf-8' -X POST https://www.mytaglist.com/ethLogShared.asmx/GetLateD -d '{"uuid":"4a2c01c3-e71d-435a-a1e0-4521fe90f306"}'

Of course I have to allow the tag's public access, which I tried to do with the web app using the "share" button, which shares URLS such as https://my.wirelesstag.net/eth/tempStats.html?4a2c01c3-e71d-435a-a1e0-4521fe90f306&Tag%200&C .  So, the tag is shared publicly in an http page. But the CURL POST still didn't work, so I tried to allow it with the API:


curl -H 'Content-Type: application/json; charset=utf-8' -H 'Authorization: Bearer [API ACCESS CODE]' -X POST https://www.mytaglist.com/ethLogs.asmx/EditSharePermissions -d '{"ids":["4a2c01c3-e71d-435a-a1e0-4521fe90f306"],"shareTemperature":["true"],"shareMotion":["true"]}'


but I still get the same error.


How do I allow my tag in the GetLatestTemperatureRawDataByUUID call?


Thanks,


John 



Message has been deleted

John Abraham

unread,
Dec 26, 2016, 11:52:02 PM12/26/16
to Wireless Sensor Tags
Hey guys, are all the ethLogShared.asmx public methods broken?  I bought these tags because they had a public REST API.  

I'm writing an integration method with the Vector Watch series, so users of the Vector smartwatches can by these tags and see their temperature on their wrist.

This is the command that doesn't work:

curl -H 'Content-Type: application/json; charset=utf-8' -X POST https://www.mytaglist.com/ethLogShared.asmx/GetLatestTemperatureRawDataByUUID -d '{"uuid":"4a2c01c3-e71d-435a-a1e0-4521fe90f306"}'

I hope someone can give me a clue.  For example, maybe there's a secret way to enable public access to a tag?  Surely tags don't have some secret UUID separate from the one we get with 

John 

Pete

unread,
Dec 27, 2016, 12:11:07 AM12/27/16
to Wireless Sensor Tags
When you clicked the "Share" button, did you make sure to check the box that says "Anyone with link can access temperature data for this tag"?  Your cURL command works fine for my tags when that is enabled.

Pete

unread,
Dec 27, 2016, 12:26:48 AM12/27/16
to Wireless Sensor Tags
Disregard that question. 

The problem is that your tag(s) were set up recently and are associated with the new server but your cURL is pointing to the older (original) server.  It'll work if you change https://www.mytaglist.com to https://my.wirelesstag.net

Try this:

curl -H 'Content-Type: application/json;et=utf-8' -X POST https://my.wirelesstag.net/ethLogShared.asmx/GetLatestTemperatureRawDataByUUID -d '{"uuid":"4a2c01c3-e71d-435a-a1e0-4521fe90f306"}'


Pete

unread,
Dec 27, 2016, 12:29:45 AM12/27/16
to Wireless Sensor Tags
Here's more info about the new server...and for your specific issue, check out the 5th bullet point:

Reply all
Reply to author
Forward
0 new messages