From 566136b52867051255b41a2ea15e46d031c6187c Mon Sep 17 00:00:00 2001 From: davidnewhall2 Date: Sun, 29 Dec 2019 03:26:41 -0800 Subject: [PATCH] Update --- README.md | 4 +++- deploy-dashboards.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5c390f8..34f3da3 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # UniFi Poller Dashboards -...will end up here. Travis-CI will push them to Grafana.com. +Dashboards for UniFi Poller live in this repo. + +They are deployed to Grafana.com when a change to `master` is detected. diff --git a/deploy-dashboards.sh b/deploy-dashboards.sh index 4dccfa2..d442dbc 100755 --- a/deploy-dashboards.sh +++ b/deploy-dashboards.sh @@ -17,6 +17,7 @@ DASHMAP[10418]="UniFi-Poller_ Client Insights - InfluxDB.json" for i in ${!DASHMAP[@]}; do echo "curl -H \"Content-Type: multipart/form-data\" \ https://grafana.com/api/dashboards/$i/revisions --form \"json=@${WHERE}${DASHMAP[$i]};type=application/json\"" - #curl -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${GRAFANA_API_KEY}" \ - #"https://grafana.com/api/dashboards/$i/revisions" --form "json=@${WHERE}${DASHMAP[$i]};type=application/json" + + curl -H "Content-Type: multipart/form-data" -H "Authorization: Bearer ${GRAFANA_API_KEY}" \ + "https://grafana.com/api/dashboards/$i/revisions" --form "json=@${WHERE}${DASHMAP[$i]};type=application/json" done