Ubiquity/Unifi integration( was Re: SNMP integration?)

Jeffrey Lomicka JeffreyLomicka at comcast.net
Fri Dec 30 07:35:24 EST 2022


I've since learned that you can't really get the information I want out 
of SNMP, or at least it is discouraged versus using the API.  What I'm 
reading is that the API is the preferred way in.

I'm not looking for a lot, I'm just using it to create usage graphs and 
view how close I get to full capacity of my provisioning.  (You can get 
a lot of that direct from Ubiquity!)

You ca run the Ubiquity software on your Mac, without buying their 
hardware, and that might be a fine development environment, but I'm also 
not opposed to giving you VPN access to dink with my router, you seem a 
trustworthy gentleman.

https://help.ui.com/hc/en-us/articles/360012282453-UniFi-Network-Self-Hosting-your-UniFi-Network-Without-a-Console-Advanced-

I was able to download it yesterday without the questionnaire, on a 
different machine, I'll check the browser history tomorrow.

On 12/28/22 2:31 PM, James Sentman wrote:
> As far as I know nobody has done this, but that doesn’t mean they 
> haven’t ;)
>
> There are plenty of SNMP implementations out there some of which I’ve 
> looked at as this is a plugin that I can do which would enable the 
> connection to do many other things. The problem with such thoughts is 
> that since I don’t have a specific project for it in mind I would have 
> to make it a complete support of the protocol and all the alerting and 
> other functions of it and that starts to become a big job and so it 
> doesn’t get done without a reason. I’d be happy to revisit some of 
> this though and start work on it. I”m planing to do an SNMP plugin as 
> well as an MQTT plugin and several other of the most commonly used 
> protocols for getting iot data in and out of other things as we are 
> somewhat limited without those, especially the MQTT, and having that 
> would open up a huge number of devices that would then not require a 
> separate plugin to use, they would all just work, probably ;)
>
> If the problem is just the authentication though I’ll bet it’s some 
> OAuth or OAuth2 system? If the connection to the router is local and 
> not through the cloud then it might be worth while figuring that out. 
> I am also eyeing these things with some envy as I get more and more 
> fedup with the Linksys extender system every time I have to reboot it 
> in order to get my lightbulbs or other iot wifi devices back online. 
> It’s been better lately so I had put this on the back burner. Anyway 
> this just means I have a personal interest, but not yet a personal 
> need to push this project ;)
>
> A short bit of googling turns up at least one, possibly several python 
> implementations of the api to the “Unifi Controller” app. Is this the 
> same thing that you would want to connect to in order to get this 
> info? Or is this something else. The documentation for the Python 
> library is here: 
> https://unificontrol.readthedocs.io/en/latest/introduction.html
>
> Let me know if that looks like the same thing you would want to get 
> your info from? If so wrapping that into a plugin would probably be 
> very possible if not actually easy ;) You’d have to be willing to give 
> me some pass throughs to the devices for early testing and work with 
> me on later testing until I start to upgrade my own network, but that 
> should be possible and I promise not to lock you out of your wifi on 
> purpose...
>
>
>> On Dec 28, 2022, at 10:57 AM, Jeffrey Lomicka 
>> <JeffreyLomicka at comcast.net> wrote:
>>
>> Has anybody integrated SNMP queries into XTension?
>>
>> I'm replacing my DD-WRT router today with a Ubiquiti router, and so 
>> will need to find a new way to produce my Internet traffic graphs.  
>> Right now I get traffic from a C++ program I wrote to parse a "curl" 
>> of the router's status pages and forward the relevant statistics to 
>> XTension with osascript. I don't think Ubiquiti's authentication and 
>> web interface complexity will allow that approach, so I think I want 
>> to go after the statistics using SNMP.  Looking to avoid rolling my 
>> own entirely if the code is already out there.
>
> Thanks,
>  James
>
>
> James Sentman http://www.PlanetaryGear.org 
> <http://www.PlanetaryGear.org>http://MacHomeAutomation.com 
> <http://MacHomeAutomation.com>
>
>
>
>
>
> _______________________________________________
> XTensionList mailing list
> XTensionList at machomeautomation.com
> http://mail.machomeautomation.com/mailman/listinfo/xtensionlist

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20221230/899c2eee/attachment.html>


More information about the XTensionList mailing list