2 Commits
0.0.4 ... 0.0.6

Author SHA1 Message Date
92aeb8efdf start command fixed 2021-08-24 10:12:31 +02:00
8120df60ac another type mismatch in config 2021-08-24 10:08:32 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -27,5 +27,5 @@ WORKDIR ${APP_DIR}
VOLUME ${CONF_DIR} VOLUME ${CONF_DIR}
CMD "python digitaltwin1.py -f ./config/config.ini" CMD [ "/usr/local/bin/python", "digitaltwin1.py", "-f", "./config/config.ini" ]

View File

@ -15,7 +15,7 @@ class MqttCoilSubscriber(AbstractMqttPublisher):
def localLoop(self): def localLoop(self):
while True: while True:
sleep(self.config["analogInputPublishPeriod"]) sleep(float(self.config["analogInputPublishPeriod"]))
def onMessage(self, topic, payload): def onMessage(self, topic, payload):
logger.warning("mqtt message received: {} -> {}".format(topic, str(payload))) logger.warning("mqtt message received: {} -> {}".format(topic, str(payload)))