Use a config file instead of env vars.

This commit is contained in:
DN2
2018-04-22 15:39:55 -07:00
parent 74c64be507
commit bb0e3ccfd8
8 changed files with 110 additions and 57 deletions

View File

@@ -1,20 +1,12 @@
# Unifi
Collect your Unifi Controller Client data and send it to an InfluxDB instance.
Collect your Unifi Controller Client data and send it to an InfluxDB instance. Grafana dashboard included.
![image](https://raw.githubusercontent.com/davidnewhall/unifi/master/grafana-unifi-dashboard.png)
## Deploying
## Installation
Clone the repository and using `.env.example` create your own `.env` file with your Unifi GUI and InfluxDB credentials.
Set your environment variables before running:
```
source .env ; ./unifi-poller
```
[See the Wiki!](https://github.com/davidnewhall/unifi-poller/wiki/Installation)
## Copyright & License
Copyright © 2016 Garrett Bjerkhoel. See [MIT-LICENSE](http://github.com/dewski/unifi/blob/master/MIT-LICENSE) for details.
Copyright © 2016 Garrett Bjerkhoel. See [MIT-LICENSE](MIT-LICENSE) for details.