Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Projets-INFO4
20-21
18
chirpstack-monitoring
Commits
367c9364
Commit
367c9364
authored
Feb 03, 2021
by
Didier DONSEZ
Browse files
Merge branch 'main' of github.com:CampusIoT/chirpstack-monitoring into main
parents
2bc7442a
cff26f39
Changes
2
Hide whitespace changes
Inline
Side-by-side
sandbox/devices_maps.md
0 → 100644
View file @
367c9364
# 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
}
```
sandbox/gateways_stats.md
0 → 100644
View file @
367c9364
# 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 .
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment