🚑 Add https/http for InfluxDB fixes #25

This commit is contained in:
Paul Sinclair 2019-07-27 16:03:12 -04:00
parent aa73a3cb1b
commit e380d7ae39
No known key found for this signature in database
GPG key ID: 779C7A23E1AA845D
3 changed files with 12 additions and 3 deletions

View file

@ -70,7 +70,8 @@ Example add-on configuration:
"password": "!secret glances_influxdb_password",
"database": "glances",
"prefix": "localhost",
"interval": 60
"interval": 60,
"protocol": "http"
}
}
```
@ -173,6 +174,11 @@ The hostname to append for exported data.
Defines the interval (in seconds) on how often Glances exports data to InfluxDB.
#### Option `influxdb`: `protocol`
Use `http` or `https` to connect to InfluxDB. Set to `http` if using the
Community InfluxDB add-on
## Adding Glances as a sensor into Home Assistant
The Home Assistant Glances sensor platform is consuming the system information

View file

@ -53,7 +53,8 @@
"password": "",
"database": "glances",
"prefix": "localhost",
"interval": 60
"interval": 60,
"protocol": "http"
}
},
"schema": {
@ -71,7 +72,8 @@
"password": "str",
"database": "str",
"prefix": "str",
"interval": "int"
"interval": "int",
"protocol": "match(^(http|https)$)"
},
"leave_front_door_open": "bool?"
},

View file

@ -27,5 +27,6 @@ if bashio::config.true 'influxdb.enabled'; then
echo "password=$(bashio::config 'influxdb.password')"
echo "db=$(bashio::config 'influxdb.database')"
echo "prefix=$(bashio::config 'influxdb.prefix')"
echo "protocol=$(bashio::config 'influxdb.protocol')"
} >> /etc/glances.conf
fi