update influxdb host

This commit is contained in:
Astro 2020-05-22 18:17:37 +02:00
parent 12d71258cf
commit a8d32930ba
5 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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