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

Unable to write to InfluxDB #3

Closed
mehrenreich opened this issue Jan 1, 2020 · 1 comment
Closed

Unable to write to InfluxDB #3

mehrenreich opened this issue Jan 1, 2020 · 1 comment

Comments

@mehrenreich
Copy link

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?

@finish06
Copy link
Owner

finish06 commented Apr 1, 2020

I have started working on this script again. Unifi had made changes to the API since the last time. Currently, it only handles switches, but I intend to improve on that. Sorry for the delayed response. I am going to close this as it now works again.

@finish06 finish06 closed this as completed Apr 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants