Work-in-progress. Far away of beeing complete. Suggestions and patches welcome.
Inspiration taken from, and thanks given to https://github.com/calmh/unifi-api
Ubiquiti Unifi Go API
License: ISC License
Work-in-progress. Far away of beeing complete. Suggestions and patches welcome.
Inspiration taken from, and thanks given to https://github.com/calmh/unifi-api
Hi there... Our CloudKey Gen2 Plus was recently upgraded to v6.2.26, at which time the underlying API seems to have changed. From what I've seen, it looks very similar to the APIs for the UDM.
Is there any plan to support that in the near future? Or any way I can contribute to help with that?
Thanks in advance,
Ty
I tested a program on my amd64 linux machine, then cross compiled it for a raspberry pi like this:
GOOS=linux GOARCH=arm GOARM=7 go build -o foo .
When I ran it on the pi4, the process failed because the Sta tx_bytes field overflowed the int size:
stations, err := u.Sta(site)
if err != nil {
log.Fatalf("ERROR: %v\n", err)
}
output:
2021/05/01 22:12:45 ERROR: json: cannot unmarshal number 3753204908 into Go struct field Sta.Data.tx_bytes of type int
I found this commit in a fork resolves the issue for me: mbee@a1f8d62
For the Device struct, I understand the Bytes (Total Rx and Tx bytes for the device) and I understand both the Tx Bytes and Rx Bytes, but where do BytesD and BytesR come from?
interface{}
fields are scattered all over the code. Those should be checked and properly typed.
Hi ! I'm having the issue below:
ERRO[0300] cannot scrape unifi controller metrics error="cannot list aps: json: cannot unmarshal number 201.2856790274727 into Go struct field UAP.x of type int"
When calling
unifi.Aps(site)
https://github.com/dim13/unifi/blob/master/uap.go#L277
Unifi controller: 5.10.19
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.