Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Unifi Integration #79

Closed
staticgroup opened this issue Jan 2, 2019 · 10 comments
Closed

[Feature Request] Unifi Integration #79

staticgroup opened this issue Jan 2, 2019 · 10 comments
Labels
approved Enhancement or request that was approved to be worked on enhancement New feature or request help-wanted Extra attention is needed

Comments

@staticgroup
Copy link

Hey Guys,
This project is great,
Can we somehow integrate unifi applicances in lieu of cisco asa ?

thanks
steve

@staticgroup staticgroup added the awaiting-triage Request awaiting triage label Jan 2, 2019
@dirtycajunrice
Copy link
Member

I have the UniFi controller installed as a service. It looks like the api documentation is solely a reverse engineer project which does worry me a bit but i can play around with it. The currently reverse engineered documentation is here. I will tentatively approve this on the grounds that if it is possible to pull I think it would be good, but after I spend some time digging, i might find that this is not documented well enough.

In addition, i do not use it as a gateway so i might have some api responses i cannot reproduce. In the event that this is the case, i will need assistance with queries from yourself or someone with the hardware.

cheers!

@dirtycajunrice dirtycajunrice added enhancement New feature or request help-wanted Extra attention is needed approved Enhancement or request that was approved to be worked on and removed awaiting-triage Request awaiting triage labels Jan 2, 2019
@staticgroup
Copy link
Author

staticgroup commented Jan 2, 2019 via email

@dirtycajunrice dirtycajunrice changed the title Unifi Integration[Feature Request] [Feature Request] Unifi Integration Jan 3, 2019
@dirtycajunrice
Copy link
Member

Ive found https://github.com/Art-of-WiFi/UniFi-API-browser/blob/master/vendor/art-of-wifi/unifi-api-client/src/Client.php#L2029 which i believe shows the total bandwidth but as i dont have the gateway i cannot see it. can you give me screenshots of https://unifiIP:8443/manage/site/default/statistics/dpi and any other screen that shows current bandwidth for your gateway?
Also, we could do this much more efficiently if i could get you on discord after 6PM CST!

@staticgroup
Copy link
Author

staticgroup commented Jan 3, 2019 via email

@dirtycajunrice
Copy link
Member

dirtycajunrice commented Jan 3, 2019

That was a link to your controller but not an image.
Keep in mind we don’t want metrics for all transferred data in the house as that’s not relevant or helpful. We are looking for wan in/out speed and possibly data transferred by wan for x time.
That dashboard just looks at exported data. So wouldn’t be helpful to us.
We will never poll snmp, it’s not 2002 ;)

If you can send pictures, wonderful. If not and would rather do it on discord that’s fine too!

Thanks

Sent with GitHawk

@staticgroup
Copy link
Author

staticgroup commented Jan 3, 2019 via email

dirtycajunrice added a commit that referenced this issue Jan 4, 2019
@staticgroup
Copy link
Author

staticgroup commented Jan 8, 2019 via email

@samwiseg0
Copy link
Member

It has been added. It is currently in nightly for testing.

@johntdyer
Copy link

What is the USG_Name ? I have tried half a dozen names and none work...

root@ubuntu:/opt/Varken# /opt/Varken/varken-venv/bin/python /opt/Varken/Varken.py
2019-03-18 23:09:07 : INFO : Varken : Starting Varken...
2019-03-18 23:09:07 : INFO : Varken : Data folder is "/opt/Varken/data"
2019-03-18 23:09:07 : INFO : Varken : Linux 4.15.0-45-generic (#48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 - Ubuntu 18.04 bionic)
2019-03-18 23:09:07 : INFO : Varken : Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0]
2019-03-18 23:09:07 : INFO : Varken : Varken v1.6.6-master
2019-03-18 23:09:07 : INFO : iniparser : SONARR_SERVER_IDS disabled.
2019-03-18 23:09:07 : INFO : iniparser : RADARR_SERVER_IDS disabled.
2019-03-18 23:09:07 : INFO : iniparser : OMBI_SERVER_IDS disabled.
2019-03-18 23:09:07 : INFO : helpers : TAUTULLI_SERVER_IDS : [1]
2019-03-18 23:09:07 : INFO : iniparser : SICKCHILL_SERVER_IDS disabled.
2019-03-18 23:09:07 : INFO : helpers : UNIFI_SERVER_IDS : [1]
2019-03-18 23:09:07 : INFO : dbmanager : Influxdb version: 1.7.4
2019-03-18 23:09:07 : INFO : helpers : Opening persistent connection to GeoLite2 DB...
2019-03-18 23:09:08 : INFO : __init__ : Running *all* 4 jobs with 0s delay inbetween
2019-03-18 23:09:08 : INFO : __init__ : Running job Every 12 to 24 hours do put(<bound method GeoIPHandler.update of <varken.helpers.GeoIPHandler object at 0x7f641e4b2c18>>) (last run: [never], next run: 2019-03-19 12:09:07)
2019-03-18 23:09:08 : INFO : __init__ : Running job Every 30 seconds do put(<bound method TautulliAPI.get_activity of <tautulli-1>>) (last run: [never], next run: 2019-03-18 23:09:37)
2019-03-18 23:09:08 : INFO : __init__ : Running job Every 3600 seconds do put(<bound method TautulliAPI.get_stats of <tautulli-1>>) (last run: [never], next run: 2019-03-19 00:09:07)
2019-03-18 23:09:08 : INFO : __init__ : Running job Every 300 seconds do put(<bound method UniFiAPI.get_usg_stats of <unifi-1>>) (last run: [never], next run: 2019-03-18 23:14:08)
2019-03-18 23:09:08 : INFO : helpers : This url doesnt even resolve: http://********:8181/api/v2?apikey=********b****************root&cmd=get_activity
2019-03-18 23:09:08 : INFO : helpers : This url doesnt even resolve: http://********:8181/api/v2?apikey=********b****************root&cmd=get_libraries
2019-03-18 23:09:08 : ERROR : unifi : Could not find a USG named Home from your UniFi Controller

@samwiseg0
Copy link
Member

@johntdyer issues is not the place for support. Please use Discord.

@Boerderij Boerderij locked as resolved and limited conversation to collaborators Mar 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Enhancement or request that was approved to be worked on enhancement New feature or request help-wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants