diff --git a/README.md b/README.md index 7cd077b..360af78 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ ### python +#### pip3 - paho-mqtt - gpiozero +#### package +- python3-rpi.gpio diff --git a/piValues2MQTT.py b/piValues2MQTT.py index 3e03ff7..59508f5 100755 --- a/piValues2MQTT.py +++ b/piValues2MQTT.py @@ -160,7 +160,7 @@ # debug output logger.debug("server: %s" ,options.server) logger.debug("port: %i", options.port) - logger.debug("bsaetopic: %s", options.basetopic) + logger.debug("basetopic: %s", options.basetopic) logger.debug('polling interval: %i seconds', options.interval) # connect to MQTT server @@ -173,6 +173,7 @@ # forever loop hostName = platform.node() mqttTopic = options.basetopic + '/' + hostName + logger.debug("mqtt topic: %s", mqttTopic) mqttTopic = mqttTopic.replace(':', '-') lastPoll = 0 try: