Skip to content

Commit 75c4060

Browse files
committed
✏️ Split add-on documentation
1 parent 2458238 commit 75c4060

File tree

3 files changed

+236
-171
lines changed

3 files changed

+236
-171
lines changed

README.md

Lines changed: 2 additions & 168 deletions
Original file line numberDiff line numberDiff line change
@@ -37,170 +37,7 @@ gives you a nice InfluxDB admin interface for managing your users, databases,
3737
data retention settings, and lets you peek inside the database using the
3838
Data Explorer.
3939

40-
## Installation
41-
42-
The installation of this add-on is pretty straightforward and not different in
43-
comparison to installing any other Home Assistant add-on.
44-
45-
1. Search for the "InfluxDB" add-on in the Supervisor add-on store and install it.
46-
1. Start the "InfluxDB" add-on.
47-
1. Check the logs of the "InfluxDB" to see if everything went well.
48-
1. Click the "OPEN WEB UI" button!
49-
50-
## Configuration
51-
52-
**Note**: _Remember to restart the add-on when the configuration is changed._
53-
54-
Example add-on configuration:
55-
56-
```yaml
57-
log_level: info
58-
auth: true
59-
reporting: true
60-
ssl: true
61-
certfile: fullchain.pem
62-
keyfile: privkey.pem
63-
envvars:
64-
- name: INFLUXDB_HTTP_LOG_ENABLED
65-
value: 'true'
66-
```
67-
68-
**Note**: _This is just an example, don't copy and paste it! Create your own!_
69-
70-
### Option: `log_level`
71-
72-
The `log_level` option controls the level of log output by the addon and can
73-
be changed to be more or less verbose, which might be useful when you are
74-
dealing with an unknown issue. Possible values are:
75-
76-
- `trace`: Show every detail, like all called internal functions.
77-
- `debug`: Shows detailed debug information.
78-
- `info`: Normal (usually) interesting events.
79-
- `warning`: Exceptional occurrences that are not errors.
80-
- `error`: Runtime errors that do not require immediate action.
81-
- `fatal`: Something went terribly wrong. Add-on becomes unusable.
82-
83-
Please note that each level automatically includes log messages from a
84-
more severe level, e.g., `debug` also shows `info` messages. By default,
85-
the `log_level` is set to `info`, which is the recommended setting unless
86-
you are troubleshooting.
87-
88-
### Option: `auth`
89-
90-
Enable or disable InfluxDB user authentication.
91-
92-
**Note**: _Turning this off is NOT recommended!_
93-
94-
### Option: `reporting`
95-
96-
This option allows you to disable the reporting of usage data to InfluxData.
97-
98-
**Note**: _No data from user databases is ever transmitted!_
99-
100-
### Option: `ssl`
101-
102-
Enables/Disables SSL (HTTPS) on the web interface.
103-
Set it `true` to enable it, `false` otherwise.
104-
105-
**Note**: _This does NOT activate SSL for InfluxDB, just the web interface_
106-
107-
### Option: `certfile`
108-
109-
The certificate file to use for SSL.
110-
111-
**Note**: _The file MUST be stored in `/ssl/`, which is the default_
112-
113-
### Option: `keyfile`
114-
115-
The private key file to use for SSL.
116-
117-
**Note**: _The file MUST be stored in `/ssl/`, which is the default_
118-
119-
### Option: `envvars`
120-
121-
This allows the setting of Environment Variables to control InfluxDB
122-
configuration as documented at:
123-
124-
<https://docs.influxdata.com/influxdb/v1.7/administration/config/#configuration-settings>
125-
126-
**Note**: _Changing these options can possibly cause issues with you instance.
127-
USE AT YOUR OWN RISK!_
128-
129-
These are case sensitive.
130-
131-
#### Sub-option: `name`
132-
133-
The name of the environment variable to set which must start with `INFLUXDB_`
134-
135-
#### Sub-option: `value`
136-
137-
The value of the environment variable to set, set the Influx documentation for
138-
full details.
139-
140-
### Option: `leave_front_door_open`
141-
142-
Adding this option to the add-on configuration allows you to disable
143-
authentication on the Web Terminal by setting it to `true` and leaving the
144-
username and password empty.
145-
146-
**Note**: _We STRONGLY suggest, not to use this, even if this add-on is
147-
only exposed to your internal network. USE AT YOUR OWN RISK!_
148-
149-
## Integrating into Home Assistant
150-
151-
The `influxdb` integration of Home Assistant makes it possible to transfer all
152-
state changes to an InfluxDB database.
153-
154-
You need to do the following steps in order to get this working:
155-
156-
- Click on "OPEN WEB UI" to open the admin web-interface provided by this add-on.
157-
- On the left menu click on the "InfluxDB Admin".
158-
- Create a database for storing Home Assistant's data in, e.g., `homeassistant`.
159-
- Goto the users tab and create a user for Home Assistant,
160-
e.g., `homeassistant`.
161-
162-
Now we've got this in place, add the following snippet to your Home Assistant
163-
`configuration.yaml` file.
164-
165-
```yaml
166-
influxdb:
167-
host: a0d7b954-influxdb
168-
port: 8086
169-
database: homeassistant
170-
username: homeassistant
171-
password: <yourpassword>
172-
max_retries: 3
173-
default_measurement: state
174-
```
175-
176-
Restart Home Assistant.
177-
178-
You should now see the data flowing into InfluxDB by visiting the web-interface
179-
and using the Data Explorer.
180-
181-
Full details of the Home Assistant integration can be found here:
182-
183-
<https://www.home-assistant.io/components/influxdb/>
184-
185-
## Known issues and limitations
186-
187-
- While the Chronograph interface supports SSL, currently, the add-on does
188-
not support having SSL on InfluxDB. This limitation is caused by
189-
Chronograf and we are still looking into a proper solution for this.
190-
191-
## Changelog & Releases
192-
193-
This repository keeps a change log using [GitHub's releases][releases]
194-
functionality. The format of the log is based on
195-
[Keep a Changelog][keepchangelog].
196-
197-
Releases are based on [Semantic Versioning][semver], and use the format
198-
of ``MAJOR.MINOR.PATCH``. In a nutshell, the version will be incremented
199-
based on the following:
200-
201-
- ``MAJOR``: Incompatible or major changes.
202-
- ``MINOR``: Backwards-compatible new features and enhancements.
203-
- ``PATCH``: Backwards-compatible bugfixes and package updates.
40+
[:books: Read the full add-on documentation][docs]
20441

20542
## Support
20643

@@ -275,17 +112,16 @@ SOFTWARE.
275112
[discord-ha]: https://discord.gg/c5DvZ4e
276113
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg
277114
[discord]: https://discord.me/hassioaddons
115+
[docs]: https://github.com/hassio-addons/addon-influxdb/blob/master/influxdb/DOCS.md
278116
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
279117
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-influxdb/54491?u=frenck
280118
[frenck]: https://github.com/frenck
281119
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png
282120
[github-sponsors]: https://github.com/sponsors/frenck
283121
[gitlabci-shield]: https://gitlab.com/hassio-addons/addon-influxdb/badges/master/pipeline.svg
284122
[gitlabci]: https://gitlab.com/hassio-addons/addon-influxdb/pipelines
285-
[home-assistant]: https://home-assistant.io
286123
[i386-shield]: https://img.shields.io/badge/i386-yes-green.svg
287124
[issue]: https://github.com/hassio-addons/addon-influxdb/issues
288-
[keepchangelog]: http://keepachangelog.com/en/1.0.0/
289125
[license-shield]: https://img.shields.io/github/license/hassio-addons/addon-influxdb.svg
290126
[maintenance-shield]: https://img.shields.io/maintenance/yes/2020.svg
291127
[patreon-shield]: https://frenck.dev/wp-content/uploads/2019/12/patreon.png
@@ -295,5 +131,3 @@ SOFTWARE.
295131
[releases-shield]: https://img.shields.io/github/release/hassio-addons/addon-influxdb.svg
296132
[releases]: https://github.com/hassio-addons/addon-influxdb/releases
297133
[repository]: https://github.com/hassio-addons/repository
298-
[semver]: http://semver.org/spec/v2.0.0.htm
299-
[webtools]: https://github.com/ukdtom/WebTools.bundle/wiki

influxdb/.README.j2

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ gives you a nice InfluxDB admin interface for managing your users, databases,
2222
data retention settings, and lets you peek inside the database using the
2323
Data Explorer.
2424

25-
[Click here for the full documentation][docs]
26-
2725
![Chronograf in the Home Assistant Frontend][screenshot]
2826

2927
{% if channel == "edge" %}
@@ -67,7 +65,6 @@ If you are more interested in stable releases of our add-ons:
6765
{% endif %}
6866
[discord-shield]: https://img.shields.io/discord/478094546522079232.svg
6967
[discord]: https://discord.me/hassioaddons
70-
[docs]: {{ repo }}/blob/{{ version }}/README.md
7168
[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg
7269
[forum]: https://community.home-assistant.io/t/home-assistant-community-add-on-influxdb/54491?u=frenck
7370
[github-sponsors-shield]: https://frenck.dev/wp-content/uploads/2019/12/github_sponsor.png

0 commit comments

Comments
 (0)