finish06 / unifi-metrics-collector Goto Github PK
View Code? Open in Web Editor NEWCollect Unifi metrics in InfluxDB
License: MIT License
Collect Unifi metrics in InfluxDB
License: MIT License
Hi there, thank you for putting this together. I'm trying to get this set up but when I run the container I get some errors. Maybe someone can point me in the right direction? I have tried it with SSL yes and no. Same errors.
/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning)
Traceback (most recent call last):
File "./unifi_collector.py", line 116, in run
ssl_verify=ssl))
File "./unifi_collector.py", line 25, in __init__
self._update()
File "./unifi_collector.py", line 32, in _update
self._stack_info = {item['name']: item for item in stack}
File "./unifi_collector.py", line 32, in <dictcomp>
self._stack_info = {item['name']: item for item in stack}
KeyError: 'name'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "./unifi_collector.py", line 191, in <module>
run()
File "./unifi_collector.py", line 118, in run
logger.error('Unifi Controller error: ' % err)
TypeError: not all arguments converted during string formatting
Hello, i want to fork the Projekt, if the license allows it. But it has no license file.
When starting the Docker container (either stand-alone or with docker-compose), I get the following error message:
unifi-metrics-collector_1 | Traceback (most recent call last):
unifi-metrics-collector_1 | File "./unifi_collector.py", line 191, in <module>
unifi-metrics-collector_1 | run()
unifi-metrics-collector_1 | File "./unifi_collector.py", line 170, in run
unifi-metrics-collector_1 | stats[0])
unifi-metrics-collector_1 | KeyError: 0
A database exists as well as the credentials, also the port is open and the database reachable from my machine. Setting logging to DEBUG also shows me that querying the Unifi AP is working and I'm getting results.
Is there a way to make this part of the Python script more verbose?
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.