From 8cb0dead6b7f071325112f81ccba8527d0b00d0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20L=C3=BChr?= Date: Mon, 28 May 2018 21:41:16 +0000 Subject: [PATCH] added temp offset float example --- examples/temp-offset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/temp-offset.py b/examples/temp-offset.py index 15bb220..1dd74c2 100644 --- a/examples/temp-offset.py +++ b/examples/temp-offset.py @@ -26,8 +26,8 @@ sensor.get_sensor_data() output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity) print(output) -print("SET offset -10 degrees celsius") -sensor.set_temp_offset(-10) +print("SET offset -1.87 degrees celsius") +sensor.set_temp_offset(-1.87) sensor.get_sensor_data() output = "{0:.2f} C,{1:.2f} hPa,{2:.3f} %RH".format(sensor.data.temperature, sensor.data.pressure, sensor.data.humidity) print(output)