Giter VIP home page Giter VIP logo

unifi's Introduction

Ubiquiti Unifi Go API

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

unifi's People

Contributors

aaron42net avatar bflb avatar bluerise avatar dim13 avatar mbee avatar miton18 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

unifi's Issues

Issues with Unifi Controller 6.2.26

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

Support large int values on arm systems

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

General Bytes Question

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?

Check and fix types

interface{} fields are scattered all over the code. Those should be checked and properly typed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.