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!')