Module: check_mk
Branch: master
Commit: f784980875d526fbe1f92a79e298c67364772c84
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f784980875d526…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Mon Feb 1 14:47:26 2016 +0100
tinkerforge: 7-segment display of ambient brightness was off by the factor 10
---
agents/plugins/mk_tinkerforge | 4 ++--
agents/special/agent_tinkerforge | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/agents/plugins/mk_tinkerforge b/agents/plugins/mk_tinkerforge
index 3aeee5e..d71214b 100755
--- a/agents/plugins/mk_tinkerforge
+++ b/agents/plugins/mk_tinkerforge
@@ -126,13 +126,13 @@ def print_generic(settings, sensor_type, ident, factor, unit,
*values):
def print_ambient_light(conn, settings, uid):
from tinkerforge.bricklet_ambient_light import BrickletAmbientLight
br = BrickletAmbientLight(uid, conn)
- print_generic(settings, "ambient", br.get_identity(), 0.1, "L",
br.get_illuminance())
+ print_generic(settings, "ambient", br.get_identity(), 0.01, "L",
br.get_illuminance())
def print_ambient_light_v2(conn, settings, uid):
from tinkerforge.bricklet_ambient_light_v2 import BrickletAmbientLightV2
br = BrickletAmbientLightV2(uid, conn)
- print_generic(settings, "ambient", br.get_identity(), 0.1, "L",
br.get_illuminance())
+ print_generic(settings, "ambient", br.get_identity(), 0.01, "L",
br.get_illuminance())
def print_temperature(conn, settings, uid):
diff --git a/agents/special/agent_tinkerforge b/agents/special/agent_tinkerforge
index 3aeee5e..d71214b 100755
--- a/agents/special/agent_tinkerforge
+++ b/agents/special/agent_tinkerforge
@@ -126,13 +126,13 @@ def print_generic(settings, sensor_type, ident, factor, unit,
*values):
def print_ambient_light(conn, settings, uid):
from tinkerforge.bricklet_ambient_light import BrickletAmbientLight
br = BrickletAmbientLight(uid, conn)
- print_generic(settings, "ambient", br.get_identity(), 0.1, "L",
br.get_illuminance())
+ print_generic(settings, "ambient", br.get_identity(), 0.01, "L",
br.get_illuminance())
def print_ambient_light_v2(conn, settings, uid):
from tinkerforge.bricklet_ambient_light_v2 import BrickletAmbientLightV2
br = BrickletAmbientLightV2(uid, conn)
- print_generic(settings, "ambient", br.get_identity(), 0.1, "L",
br.get_illuminance())
+ print_generic(settings, "ambient", br.get_identity(), 0.01, "L",
br.get_illuminance())
def print_temperature(conn, settings, uid):