From a8d32930bab0eae8dfbd027bba6cfbcc5ff32770 Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 22 May 2020 18:17:37 +0200 Subject: [PATCH] update influxdb host --- fhem/scrape.rb | 2 +- freifunk_node/scrape.rb | 2 +- luftdaten/scrape.rb | 3 ++- matemat/scrape.rb | 2 +- xerox/scrape.rb | 2 +- 5 files changed, 6 insertions(+), 5 deletions(-) diff --git a/fhem/scrape.rb b/fhem/scrape.rb index cca5fab..4251d70 100644 --- a/fhem/scrape.rb +++ b/fhem/scrape.rb @@ -36,5 +36,5 @@ doc.css('.roomoverview tr').each do |row| end end -db = InfluxDB::Client.new(url: "http://grafana.hq.c3d2.de:8086/iot") +db = InfluxDB::Client.new(url: "http://grafana.serv.zentralwerk.dn42:8086/iot") db.write_points points, 'm' diff --git a/freifunk_node/scrape.rb b/freifunk_node/scrape.rb index 66b3f75..73b9fde 100644 --- a/freifunk_node/scrape.rb +++ b/freifunk_node/scrape.rb @@ -91,5 +91,5 @@ data['data']['bmxd']['links'].each do |link| }) end -db = InfluxDB::Client.new(url: "http://grafana.hq.c3d2.de:8086/freifunk") +db = InfluxDB::Client.new(url: "http://grafana.serv.zentralwerk.dn42:8086/freifunk") db.write_points $points diff --git a/luftdaten/scrape.rb b/luftdaten/scrape.rb index 1a89d62..20d05e8 100644 --- a/luftdaten/scrape.rb +++ b/luftdaten/scrape.rb @@ -39,6 +39,7 @@ data.each do |d| }) end end +pp points -db = InfluxDB::Client.new(url: "http://grafana.hq.c3d2.de:8086/luftdaten") +db = InfluxDB::Client.new(url: "http://grafana.serv.zentralwerk.dn42:8086/luftdaten") db.write_points points, TIME_PRECISION diff --git a/matemat/scrape.rb b/matemat/scrape.rb index 67880b7..7cf2b10 100644 --- a/matemat/scrape.rb +++ b/matemat/scrape.rb @@ -31,5 +31,5 @@ data.each do |d| }) end -db = InfluxDB::Client.new(url: "http://grafana.hq.c3d2.de:8086/matemat") +db = InfluxDB::Client.new(url: "http://grafana.serv.zentralwerk.dn42:8086/matemat") db.write_points(points, 'm') diff --git a/xerox/scrape.rb b/xerox/scrape.rb index fae29b3..5ca8052 100644 --- a/xerox/scrape.rb +++ b/xerox/scrape.rb @@ -43,7 +43,7 @@ end paper_supply = scrape_paper_supply consumables = scrape_consumables -db = InfluxDB::Client.new(url: "http://grafana.hq.c3d2.de:8086/drucker") +db = InfluxDB::Client.new(url: "http://grafana.serv.zentralwerk.dn42:8086/drucker") db.write_points [ { series: "paper_supply", tags: { host: HOST },