jertel / vuegraf

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

Feature Request: Make InfluxDB credentials optional #2

Closed scline closed 4 years ago

scline commented 4 years ago

Would like to know if you would be against making the influx DB credentials optional so unauthenticated inserts could be done?

Currently, the application errors when no user or password is giving in the JSON file.

Traceback (most recent call last):

  File "/opt/vuegraf/vuegraf.py", line 30, in <module>

    influx = InfluxDBClient(config['influxDb']['host'], config['influxDb']['port'], config['influxDb']['user'], config['influxDb']['pass'], config['influxDb']['database'])

KeyError: 'user'