johanmeijer / grott

Growatt inverter monitor
https://github.com/johanmeijer/grott/wiki
394 stars 109 forks source link

Allow domain name in InfluxDB setting #518

Open DB501 opened 7 months ago

DB501 commented 7 months ago

Hi,

InfluxDB allows to use domain name and TLS in the setting of python client. Can you allow setting ENV variable with domain name please? i.e.

...
environment:
- gifip=https://example.com

Now it leads to Grott IP address env invalid. This would allow me to use TLS and reverse proxy for InfluxDB.

From InfluxDB documentation:

bucket = "<my-bucket>"
org = "<my-org>"
token = "<my-token>"
# Store the URL of your InfluxDB instance
url="https://us-west-2-1.aws.cloud2.influxdata.com"

client = influxdb_client.InfluxDBClient(
    url=url,
    token=token,
    org=org
)