|
@@ -8,7 +8,7 @@ import time
|
|
|
|
|
|
logging.basicConfig(level=logging.WARNING)
|
|
|
|
|
|
-logging.info("starting")
|
|
|
+logging.warning("starting")
|
|
|
|
|
|
sources = [
|
|
|
#SiemensCPU("192.168.0.10"),
|
|
@@ -18,14 +18,14 @@ sources = [
|
|
|
]
|
|
|
|
|
|
sinks = [
|
|
|
- InfluxDB("http://localhost:8086"),
|
|
|
+ InfluxDB("http://influxdb:8086"),
|
|
|
CSVStorage("logs"),
|
|
|
]
|
|
|
|
|
|
for source in sources:
|
|
|
source.start()
|
|
|
|
|
|
-logging.info("started sources")
|
|
|
+logging.warning("started sources")
|
|
|
|
|
|
startTime = 0
|
|
|
|
|
@@ -49,7 +49,10 @@ def printStats(values):
|
|
|
else:
|
|
|
text = "0 Messungen in {:.03f}s ".format(dt)
|
|
|
|
|
|
- print(text, end='\r')
|
|
|
+ if not counts or len(ids) < 3:
|
|
|
+ logging.warning(text)
|
|
|
+ else:
|
|
|
+ logging.info(text)
|
|
|
|
|
|
while True:
|
|
|
values = []
|