API for humidity

60 views
Skip to first unread message

wojtekw

unread,
Jan 15, 2016, 7:22:36 PM1/15/16
to Wireless Sensor Tags
I'm struggling to get humidity reading through API. I've been trying to use GetLatestMultiTagStatsByUUIDs method. The problem is that I'm not sure what type should be used for humidity (I found that "temperature" works to get temperature readings).


POST /ethLogShared.asmx/GetLatestMultiTagStatsByUUIDs HTTP/1.1
Host: mytaglist.com
Content-Type: application/json; charset=utf-8
Content-Length: length

{
    ids:[
        ...
    ],
    "type":string
}

However, when I tried setting "humidity" as type, I'm getting the following error message:

{"Message":"Invalid column name \u0027humidity\u0027.","StackTrace":" 

so, I suppose that it should be some other type for humidity. Could you please let me know what should I use to get humidity reading?

Pete

unread,
Jan 16, 2016, 10:30:14 AM1/16/16
to Wireless Sensor Tags
In some of the other API calls, humidity is referred to as "cap". You might try that and see if it works.

wojtekw

unread,
Jan 16, 2016, 11:47:56 AM1/16/16
to Wireless Sensor Tags
Hi Pete,

Thanks for this. 'cap' worked as type for humidity!

Regards,
Wojtek
Reply all
Reply to author
Forward
0 new messages