From e14e8c458582ebec9f9bbb093c64e8d23a2848de Mon Sep 17 00:00:00 2001 From: Dirk Alders Date: Fri, 4 Sep 2020 12:26:24 +0200 Subject: [PATCH] Usage of rpi_envsens lib and pressure output added for client --- __init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index 05f3279..33de7a1 100644 --- a/__init__.py +++ b/__init__.py @@ -5,7 +5,7 @@ import config import logging import socket_protocol -import envsens +import rpi_envsens as envsens logger = logging.getLogger('APP') @@ -46,6 +46,7 @@ class my_client_protocol_tcp(my_base_protocol_tcp): env_data = msg.get_data() print("Temperature: %6.1f °C" % env_data[envsens.KEY_TEMPERATURE]) print("Humidity: %6.1f %%" % env_data[envsens.KEY_HUMIDITY]) + print("Pressure: %6.1f mbar" % env_data[envsens.KEY_PRESSURE]) return self.STATUS_OKAY, None else: print('No environmental data received!')