Skip to content

Various utilities for the Google WiFi router.

Notifications You must be signed in to change notification settings

bengalaviz/googlewifi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Wifi Dump

googlewifidump will download, parse, and print a JSON version of the Google Wifi diagnostic report. It's a command from the googlewifi Go package.

This repo has been updated to read the new protobuf output from the Google Wifi pucks. Not sure if it works for the OnHub version.

Installation

go get github.com/bengalaviz/googlewifi/cmd/googlewifidump

Running

googlewifidump

This returns a JSON dump of the data from http://192.168.86.1/api/v1/diagnostic-report.

If you use a different subnet for your router:

googlewifidump http://192.168.85.1/api/v1/diagnostic-report

If you want to run against a local, already downloaded dump:

googlewifidump ./path/to/diagnostic-report

You will likely want to either save a copy of the diagnostic report or save a copy of the parsed output from googlewifidump rather than re-running the command as generating the report takes a few seconds each time.

curl -o diagnostic-report http://192.168.86.1/api/v1/diagnostic-report
googlewifidump ./diagnostic-report

Alternatively:

googlewifidump > diagnostic-report.json

Use the jq tool to format and manipulate output on the command line.

Unbuffered:

googlewifidump | jq

Buffered report:

curl -o diagnostic-report http://192.168.86.1/api/v1/diagnostic-report
googlewifidump ./diagnostic-report | jq

Buffered output:

onhubdump > diagnostic-report.json
jq < diagnostic-report.json

I have included a script (getInfo.sh) that will try and fix the infoJSON output and make it valid JSON. Make sure the output binary is in your path before running.

Then use hjson tool to correct the JSON so jq can read it.

hjson -j final.json | jq '.'

hjson -j final.json | jq '.network_service_state.station_state_updates | .[] | .station_state_update'

About

Various utilities for the Google WiFi router.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 75.1%
  • Shell 24.9%