2018-08-08 06:17:23 +02:00
|
|
|
This module adds a respondd wifi usage statistics provider.
|
2016-12-22 23:40:00 +01:00
|
|
|
The format is the following:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"statistics": {
|
2018-08-08 06:17:23 +02:00
|
|
|
"clients":{
|
|
|
|
"wifi24": 3,
|
|
|
|
"wifi5": 7
|
|
|
|
},
|
2016-12-22 23:40:00 +01:00
|
|
|
"wireless": [
|
|
|
|
{
|
|
|
|
"frequency": 5220,
|
2018-08-17 18:19:11 +02:00
|
|
|
"channel_width": 40,
|
2018-08-08 06:17:23 +02:00
|
|
|
"txpower": 1700,
|
2016-12-22 23:40:00 +01:00
|
|
|
"active": 366561161,
|
|
|
|
"busy": 46496566,
|
|
|
|
"rx": 808415,
|
|
|
|
"tx": 41711344,
|
2018-08-08 06:17:23 +02:00
|
|
|
"noise": 162,
|
|
|
|
"clients": 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"frequency": 5220,
|
2018-08-17 18:19:11 +02:00
|
|
|
"channel_width": 40,
|
2018-08-08 06:17:23 +02:00
|
|
|
"txpower": 1700,
|
|
|
|
"active": 366561161,
|
|
|
|
"busy": 46496566,
|
|
|
|
"rx": 808415,
|
|
|
|
"tx": 41711344,
|
|
|
|
"noise": 162,
|
|
|
|
"clients": 2
|
2016-12-22 23:40:00 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"frequency": 2437,
|
2018-08-17 18:19:11 +02:00
|
|
|
"channel_width": 20,
|
2018-08-08 06:17:23 +02:00
|
|
|
"txpower": 2000,
|
2016-12-22 23:40:00 +01:00
|
|
|
"active": 366649704,
|
|
|
|
"busy": 205221222,
|
|
|
|
"rx": 108121446,
|
|
|
|
"tx": 85453679,
|
2018-08-08 06:17:23 +02:00
|
|
|
"noise": 161,
|
|
|
|
"clients": 3
|
2016-12-22 23:40:00 +01:00
|
|
|
}
|
|
|
|
]
|
2018-08-17 18:19:11 +02:00
|
|
|
},
|
|
|
|
"neighbours": {
|
|
|
|
"wifi":{
|
|
|
|
"00:11:22:33:44:55:66":{
|
|
|
|
"frequency": 5220,
|
|
|
|
"neighbours":{
|
|
|
|
"33:22:33:11:22:44":{
|
|
|
|
"signal": 191,
|
|
|
|
"inactive": 50
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-12-22 23:40:00 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
The numbers `active`, `busy`, `rx` and `tx` are times in milliseconds, where
|
|
|
|
`busy`, `rx` and `tx` have to be interpreted by taking the quotient with
|
|
|
|
`active`.
|
|
|
|
|
|
|
|
The motivation for having a list with the frequency as a value in the objects
|
|
|
|
instead of having an object with the frequency as keys is that multiple wifi
|
|
|
|
devices might be present, in which case the same frequency can appear multiple
|
|
|
|
times (because the statistics are reported once for every phy).
|