Skip to content

louchenyao/wifi-metrics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WiFi-Metrics

Collects WiFi metrics and writes them to InfluxDB.

mi-homewifi-1h.png

This is a simple script I used on my Mac to diagnose WiFi issues. It collects metrics from airport(So it only works on macOS) and ping and writes them to InfluxDB. Then I use Grafana to visualize them. For example, the above graph shows the ping latency and signal strength of our home WiFi in one hour.

To draw the signal graph, I used the following flux query:

from(bucket: "metrics")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "wifi")
  |> filter(fn: (r) => r["_field"] == "rssi")
  |> filter(fn: (r) => r["bssid"] != "" and r["bssid"] != "0:0:0:0:0:0")
  |> yield(name: "rssi")

Note that you may need to run the script with sudo to get bssid.

Feel free to play with the script and the query to suit your needs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages