2 Commits
0.0.1 ... 0.0.4

Author SHA1 Message Date
3d97536b9b type mismatch in config 2021-08-24 10:06:13 +02:00
220d1e0ef9 forgotten module 2021-08-24 10:02:11 +02:00
3 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,8 @@ ARG CONF_DIR="${APP_DIR}/config"
RUN \
apt update && \
pip3 install loguru && \
pip3 install pymodbus
pip3 install pymodbus && \
pip3 install paho-mqtt
RUN \
mkdir -p ${APP_DIR} && \

View File

@ -12,7 +12,7 @@ def modbusStart(config, processImage):
def modbusHandler(config, processImage):
modbusClient = config["modbus"]["client"]
modbusRefreshPeriod = config["modbus"]["scanrate"]
modbusRefreshPeriod = float(config["modbus"]["scanrate"])
client = ModbusClient(modbusClient)

View File

@ -28,5 +28,5 @@ class MqttPeriodPublisher(AbstractMqttPublisher):
self.client.publish("{}/{}".format(self.config["analogInputPeriodicTopicPrefix"], str(analogInputItem[0])),
str(analogInputItem[1]))
sleep(self.config["analogInputPublishPeriod"])
sleep(float(self.config["analogInputPublishPeriod"]))