jertel / vuegraf

Populate metrics from your Emporia Vue energy monitoring devices into an InfluxDB
MIT License
166 stars 53 forks source link

InfluxDB login details don't allow for tokens (required for InfluxDB v2) #35

Closed hazza64 closed 3 years ago

hazza64 commented 3 years ago

Was trying to use this project for the first time, but being gated by how the the influxdb library is authenticating with an influx2 db. I'm ~80% sure that it now requires a token to connect (could be wrong), and I believe the latest versions of the influx python library have been updated to allow you to pass a token in.

hazza64 commented 3 years ago

Also, not sure if references to databases would need to be changed to buckets for compatibility.

jertel commented 3 years ago

Adding InfluxDB 2 hasn't been a priority since few people ask about it. I'm assuming you're asking for it because you already have an existing InfluxDB 2 infrastructure and have some exposure to it. That said, I pushed a commit today that adds support for InfluxDB 2. Since InfluxDB uses Flux instead of InfluxQL the sample Grafana dashboard will need to be redone using Flux. I'd appreciate it if you would submit a PR with this sample dashboard once you build your dashboard, so that others, that also run into the same challenge you faced, will benefit from both our efforts.

Review the updated README for instructions on how to configure Vuegraf to connect to an InfluxDB 2 instance.

TOoSmOotH commented 3 years ago

This is an awesome feature. I can't wait to see what dashboards @hazza64 can make with this!

jertel commented 3 years ago

@hazza64 Any progress on this?

hazza64 commented 3 years ago

I can confirm that these changes are working, but I have been using the Influx2 data visualizations to see the data being captured. I've not used Grafana before, so I haven't attempted to rework it. It might be a good learning experience

jertel commented 3 years ago

Interesting. Can you share a screenshot? Maybe we should include a sample for those that prefer Influx's visualizer instead of Grafana's.

jertel commented 3 years ago

Closing due to lack of activity.