diff options
| author | gcohen | 2015-01-06 02:25:41 -0800 |
|---|---|---|
| committer | gcohen | 2015-01-06 02:25:41 -0800 |
| commit | 7a14ab2c9a99ddd814b61943f7a1c41bbf950520 (patch) | |
| tree | 0a8687dd08fa6d59841135200d16a6c75ac4256a | |
| parent | 4df6d1d398e9e37edce51f8c963d974a848702d1 (diff) | |
| download | pubnub-python-rpi_fun.tar.bz2 | |
Now sending plain 1 decimal precision F temprpi_fun
| -rw-r--r-- | python/examples/futureHouse/futureHouse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/examples/futureHouse/futureHouse.py b/python/examples/futureHouse/futureHouse.py index 0aa553b..89bfe88 100644 --- a/python/examples/futureHouse/futureHouse.py +++ b/python/examples/futureHouse/futureHouse.py @@ -84,7 +84,7 @@ def callback(message, channel): if 'getEnviro' in message: enviro = {} enviro['temp1'] = '{0:0.2f} *C'.format(sensor.read_temperature()) - enviro['temp1FInt'] = '{0:0.2f}'.format(sensor.read_temperature()) + enviro['temp1FInt'] = '{0:0.1f}'.format(sensor.read_temperature()) enviro['pres1'] = '{0:0.2f} Pa'.format(sensor.read_pressure()) enviro['alt1'] = '{0:0.2f} m'.format(sensor.read_altitude()) enviro['pres2'] = '{0:0.2f} Pa'.format(sensor.read_sealevel_pressure()) |
