This commit is contained in:
hjelev
2022-03-19 01:10:29 +02:00
parent 049c6554a9
commit 1a422aeede
2 changed files with 17 additions and 18 deletions

View File

@@ -38,12 +38,9 @@ install_requirements () {
update_config(){
printf "\nCopy config.py.example to config.py\n"
cp src/config.py.example src/config.py
printm "MQTT settings"
printf "Enter mqtt_host: "
read HOST
sed -i "s/ip address or host/${HOST}/" src/config.py

View File

@@ -8,8 +8,10 @@ printm () {
printf -- '-%.0s' $(seq $length); echo ""
}
main(){
printm "Cloning rpi-mqtt-monitor git repository"
git clone https://github.com/hjelev/rpi-mqtt-monitor.git
cd rpi-mqtt-monitor
bash install.sh
}
main