This is a Go package for interfacing with a UniFi controller.
This is at a very early stage.
To get it,
go get github.com/dsymonds/unifi
You will need to put auth information in $HOME/.unifi-auth that looks like
{"Username":"xxx","Password":"yyy","ControllerHost":"unifi"}
Don't forget to chmod 600 $HOME/.unifi-auth
.
To do a quick test that will print out the clients on the default site,
go run demo/list-sta.go
There's another demo program that can enable/disable all the guest wireless networks for the default site,
go run demo/toggle-guest-wlan.go on
The UniFi API is not documented, so this is reverse engineered from a few sources: