Coder Social home page Coder Social logo

unifi-metrics-collector's People

Contributors

finish06 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yungmichael

unifi-metrics-collector's Issues

Errors when running container

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

Missing license

Hello, i want to fork the Projekt, if the license allows it. But it has no license file.

Unable to write to InfluxDB

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?

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.