We are working to build support for The Things Network in our service, Triggi. Our aim would be to allow any TTN user (what I now define as “anyone who owns some ‘application’, or otherwise has access to the data coming from an application”) can easily make rules to do something with the data coming from their TTN devices, possibly combined with data from any other of the channels supported by Triggi. A very simple use-case would be for example to store all received values from some TTN-connected sensor into a google sheet. But of course there are many other things you could do.
I have a few questions about this.
-
What would be the best way to let TTN users link their data with Triggi? What I have in mind right now is that they would add their applications to their Triggi profile, by providing us with the application ID and an access key for each of the applications they want to work with. This means that anyone who knows the relevant information for an application, can use the data from it. So for example, if some organization puts a bunch of sensors in some area and wants to expose the readings from those sensors, they’d provide the application ID and an access key to anyone interested.
Do you guys think this is the right way to go?
Another way would be to have some Oauth-based account coupling. but this would
A) require TTN to provide an oauth-login screen, plus application key & secret, to parties such as us
B) that you only get access to your own applications - it would not facilitate sharing ‘public’ applications -
What would be an efficient way to receive events from many (or all) applications? The straight-forward way would be to set up many mqtt connections, each with the credentials of one of the applications. But this would be very inefficient for both sides.
So then the question is - is it possible to receive events related to more than 1 application on 1 mqtt connection? (we don’t need them to be decoded, as we can access the security keys using the application credentials). From what I’ve seen, if I connect to mqtt using the credentials that belong to a specific app, it only exposes messages related to that app.
Any help or insights would be greatly appreciated!