Ubiquity/Unifi integration( was Re: SNMP integration?)
James Sentman
james at sentman.com
Wed Dec 28 14:31:27 EST 2022
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://MacHomeAutomation.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20221228/3cf219c0/attachment.html>
More information about the XTensionList
mailing list