mirror of
https://github.com/hassio-addons/addon-glances.git
synced 2025-05-05 03:21:36 +00:00
🚑 Add https/http for InfluxDB fixes #25
This commit is contained in:
parent
aa73a3cb1b
commit
e380d7ae39
3 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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?"
|
||||
},
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue