Tested and working.

This commit is contained in:
David Newhall II 2019-06-21 04:22:10 -07:00
parent 83c5a862b9
commit 06b36bf7d7
3 changed files with 6 additions and 4 deletions

View File

@ -14,4 +14,6 @@ new benefits to the existing dashboards. When that happens I update them.
Keeping an Example set allows you to update too, inspect the changes, and apply them
to your own custom dashboards.
This folder also contains an example configuration file and some dashboard screenshots.
This folder also contains dashboard screenshots and example configuration files in four supported formats.
You can use any format you want for the config file, just give it the appropriate prefix for the format.
ie. an xml file should end with `.xml`.

View File

@ -7,9 +7,8 @@
<interval>30s</interval>
<max_errors>0</max_errors>
<quiet>false</quiet>
<sites>
<element>default</element>
</sites>
<sites>default</sites>
<sites>site2</sites>
<unifi_pass>4BB9345C-2341-48D7-99F5-E01B583FF77F</unifi_pass>
<unifi_url>https://127.0.0.1:8443</unifi_url>
<unifi_user>influxdb</unifi_user>

View File

@ -22,6 +22,7 @@ func (u *UnifiPoller) CheckSites() error {
}
u.Logf("Found %d site(s) on controller: %v", len(msg), strings.Join(msg, ", "))
if StringInSlice("all", u.Sites) {
u.Sites = []string{"all"}
return nil
}
FIRST: