This commit is contained in:
davidnewhall2 2019-12-29 03:26:41 -08:00
parent d28a08f5c3
commit 566136b528
2 changed files with 6 additions and 3 deletions

View File

@ -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.

View File

@ -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