diff --git a/install.sh b/install.sh index 0a888cf..c80caa5 100755 --- a/install.sh +++ b/install.sh @@ -33,9 +33,7 @@ printm(){ length=$(expr length "$1") length=$(($length + 4)) printf "\n" - #printf -- '-%.0s' $(seq $length); echo "" printf ":: $1 \n\n" - #printf -- '-%.0s' $(seq $length); echo "" } print_green(){ @@ -115,6 +113,8 @@ update_config(){ set_cron(){ python=$(which python) + # Deactivate the virtual environment + deactivate printm "Setting Cronjob" cwd=$(pwd) crontab -l > tempcron diff --git a/src/rpi-cpu2mqtt.py b/src/rpi-cpu2mqtt.py index 3fc2d6b..ed2fad3 100644 --- a/src/rpi-cpu2mqtt.py +++ b/src/rpi-cpu2mqtt.py @@ -12,7 +12,7 @@ import paho.mqtt.client as paho import json import config import os -# import fileinput + # get device host name - used in mqtt topic hostname = socket.gethostname()