I have created a TTN data storage integration in the Australia meshed handler console https://console.thethings.meshed.com.au/ and the integration overview says that it is running. However, when I click on “go to platform” it opens a window that says “not authorized”. If I click on the platform documentation link it takes me to the TTN home page https://www.thethingsindustries.com/ which isn’t exactly helpful.
Anyone have any ideas on what I need to do? Thanks.
So, you’re getting that right away? Or only after clicking a request method and trying to execute that? (Indeed, you’ll need to authorize yourself to use it, but that’s not needed to just view that Swagger page.)
Sorry to hijack this thread, I’m looking to start using the Data Integration API to periodically query for new device updates and store them as a backup on premise.
I’m initially using something like the curl query from @Maj above. Is there a way instead of specifying the last (X)days to instead query on a date?
So my workflow would first check the timestamp of the latest record in my DB and using this date to query any new updates after this time. In this way i can run it a couple times a week without missing anything rather than every 7 days and potentially losing information should the job fail.
would get all data for the XXX app for the last 1000 seconds.
I tend to put in a very small overlap that’s a typical nodes transmit cycle and then deduplicate rather than potentially lose records due to network latency in requests. So if I had last queried half an hour ago, I’d ask for 2100s so I’ve a five minute overlap.
Thanks Nick, i was hoping by specify the date in the query i would also lower any risk of duplication but as you said maybe its better to deduplicate after than risk losing something. Perhaps i can use a formula to compare my latest stored timestamp with the current date and use the difference in minutes as the variable in the query. Thanks a mil!
Regarding console.thethings.meshed.com.au I see that the problem is with the URL. The URL is missing a slash between au and api. Watch below. The URL looks like this:
Could you specifically describe the URL where I can get the messages (where I only changed the application ID)? <App_ID>.data.thethings.meshed.com.au/api/v2/query shows the same error message, 404 Not Found nginx / 1.10.3.
I need to get messages from the past 24 hours (api/v2/query?last=24h).