yungmichael / unifi-4

Go package for interacting with UniFi hardware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a Go package for interfacing with a UniFi controller.

GoDoc

This is at a very early stage.

Installation

To get it,

go get github.com/dsymonds/unifi

Demos

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

Caveats, acknowledgements

The UniFi API is not documented, so this is reverse engineered from a few sources:

About

Go package for interacting with UniFi hardware

License:Apache License 2.0


Languages

Language:Go 100.0%