small changes

This commit is contained in:
Hristo Jelev
2023-12-19 20:49:37 +02:00
parent 5afa49c140
commit 06c179138c
2 changed files with 3 additions and 3 deletions

View File

@@ -33,9 +33,7 @@ printm(){
length=$(expr length "$1") length=$(expr length "$1")
length=$(($length + 4)) length=$(($length + 4))
printf "\n" printf "\n"
#printf -- '-%.0s' $(seq $length); echo ""
printf ":: $1 \n\n" printf ":: $1 \n\n"
#printf -- '-%.0s' $(seq $length); echo ""
} }
print_green(){ print_green(){
@@ -115,6 +113,8 @@ update_config(){
set_cron(){ set_cron(){
python=$(which python) python=$(which python)
# Deactivate the virtual environment
deactivate
printm "Setting Cronjob" printm "Setting Cronjob"
cwd=$(pwd) cwd=$(pwd)
crontab -l > tempcron crontab -l > tempcron

View File

@@ -12,7 +12,7 @@ import paho.mqtt.client as paho
import json import json
import config import config
import os import os
# import fileinput
# get device host name - used in mqtt topic # get device host name - used in mqtt topic
hostname = socket.gethostname() hostname = socket.gethostname()