Gatway stastistics

Hi,

I am looking for the API to get the following statistical data from my gateways,

Messages per hour.
Messages per day.
Number of nodes connected per hour.
Number of nodes connected per day.

I have read the following but have not notice the relevant API.

The API https://noc.thethingsnetwork.org:8085/api/v2/gateways/eui-xxxxxxx - do give some of the information I want.

Help will be appropriated, thank you.

1 Like

There is no such API within TTN. You will have to make it yourself. What you can do is create an endpoint where UDP traffic is duplicated to by a gateway where you will collect and analyse data.
I have made this as A POC on Node Red.

1 Like

Thanks,

I know from http://noc.thethingsnetwork.org:8085/api/v2/gateways/eui-xxxxxx

I can get
{“timestamp”:“2020-07-26T08:54:22.038428811Z”,“uplink”:“1378”,“downlink”:“277”,“location”:{},“frequency_plan”:“EU_863_870”,“gps”:{},“time”:“1595753662038428811”,“rx_ok”:1378,“tx_in”:277}

From this I can do a request every hour and the put that in a db and calculate every hour, day, week and monthly amount of packets.

I am interested to see as well the amount of nodes connecting to a gateway, so were interested if there is a AIP for this?

@pe1mew’s answer says it all, and this is just repeating details from the existing forum posts; I’m closing this one. Also, like already noted in a private message before you created this topic:

I’d not spend time on creating anything for V2.

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.