Skip to content

Question: API URLs discovery #26

Answered by rezmus
franeko asked this question in Q&A
May 11, 2021 · 5 comments · 5 replies
Discussion options

You must be logged in to vote
/user/get_user_device_data
{"did":"blt.X","key":"4100","type":"prop","time_end":1620821594,"limit":10}

it will pull last 10 records of prop.4100 (temperature) for did blt.X starting from time_end timestamp. humidity is prop.4102, but you can fetch any prop/event stored for ble device this way. limit to 1 and ts = now for last record. from my experience if you want to fetch more history data (loop with time_end = oldest record from last request - 1) use more frequent requests with lower limit rather than bigger limit (it makes their db unhappy). not sure how much time they keep such data, but afair was able to pull data sent 2y ago.

Replies: 5 comments 5 replies

Comment options

You must be logged in to vote
1 reply
@franeko
Comment options

Comment options

You must be logged in to vote
1 reply
@franeko
Comment options

Comment options

You must be logged in to vote
2 replies
@franeko
Comment options

@franeko
Comment options

Answer selected by franeko
Comment options

You must be logged in to vote
1 reply
@franeko
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #25 on May 11, 2021 20:27.