small changes
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user