Commit 367c9364 authored by Didier DONSEZ's avatar Didier DONSEZ
Browse files

Merge branch 'main' of github.com:CampusIoT/chirpstack-monitoring into main

parents 2bc7442a cff26f39
# Devices Map
Show a HTML report (status and stats) of located devices into a [leafletjs](https://leafletjs.com/) map
when the location is set into `.location` or `.device.tags[geolocation]`.
```bash
curl 'https://lns.campusiot.imag.fr/api/devices/a81758fffe04b1bc' -H 'Accept: application/json' -H 'Grpc-Metadata-Authorization: Bearer ZZZ.YYY.XX'
```
```json
{
"device": {
"devEUI": "a81758fffe04b1bc",
"name": "ELSYS_EMS_B1BC",
"applicationID": "36",
"description": "Elsys EMS",
"deviceProfileID": "72bc2657-d387-4257-b883-b97e9763997f",
"skipFCntCheck": false,
"referenceAltitude": 0,
"variables": {
"ThingsBoardAccessToken": "6lOGIM40BOdVRIeOGgGo"
},
"tags": {
"email_owner": "admin@campusiot.imag.fr",
"geolocation": "45.1902749,5.7670241"
}
},
"lastSeenAt": "2021-02-01T06:23:19.260728Z",
"deviceStatusBattery": 100,
"deviceStatusMargin": 28,
"location": null
}
```
# Gateway Stats
## Per day
```bash
curl 'https://lns.campusiot.imag.fr/api/gateways/0000024b08060392/stats?interval=DAY&startTimestamp=2020-01-01T00%3A00%3A00.001Z&endTimestamp=2021-01-01T00%3A00%3A00.001Z' \
-H 'Accept: application/json' \
-H 'Grpc-Metadata-Authorization: Bearer ZZZ.YYY.XXX' \
| jq .
```
## Per month
```bash
curl 'https://lns.campusiot.imag.fr/api/gateways/0000024b08060392/stats?interval=MONTH&startTimestamp=2020-01-01T00%3A00%3A00.001Z&endTimestamp=2021-01-01T00%3A00%3A00.001Z' \
-H 'Accept: application/json' \
-H 'Grpc-Metadata-Authorization: Bearer ZZZ.YYY.XXX' \
| jq .
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment