Update Install.sh
This commit is contained in:
parent
42a8c119d1
commit
9d3812acc3
18
Install.sh
18
Install.sh
@ -11,7 +11,7 @@ pip3 install bluepy
|
|||||||
echo -n "Enter database file name (default: data.db): "
|
echo -n "Enter database file name (default: data.db): "
|
||||||
read db_file
|
read db_file
|
||||||
db_file=${db_file:-data.db}
|
db_file=${db_file:-data.db}
|
||||||
echo -e "DB_FILE = '$db_file'" > Program/env.py
|
echo -e "DB_FILE = '$db_file'" >> Program/env.py
|
||||||
|
|
||||||
echo -n "Enter database file name (default: data.db): "
|
echo -n "Enter database file name (default: data.db): "
|
||||||
read db_file
|
read db_file
|
||||||
@ -19,38 +19,38 @@ db_file=${db_file:-data.db}
|
|||||||
|
|
||||||
echo -n "Enter smtp server address : "
|
echo -n "Enter smtp server address : "
|
||||||
read smtp
|
read smtp
|
||||||
echo -e "SMTP = '$smtp'" > Program/env.py
|
echo -e "SMTP = '$smtp'" >> Program/env.py
|
||||||
|
|
||||||
echo -n "Enter smtp port (default 25) : "
|
echo -n "Enter smtp port (default 25) : "
|
||||||
read smtp_port
|
read smtp_port
|
||||||
smtp_port=${smtp_portx:-25}
|
smtp_port=${smtp_portx:-25}
|
||||||
echo -e "SMTP_PORT = $smtp_port" > Program/env.py
|
echo -e "SMTP_PORT = $smtp_port" >> Program/env.py
|
||||||
|
|
||||||
|
|
||||||
echo -n "Enter sender email address, used as smtp id : "
|
echo -n "Enter sender email address, used as smtp id : "
|
||||||
read smtp_id
|
read smtp_id
|
||||||
echo -e "SMTP_ID = '$smtp_id'" > Program/env.py
|
echo -e "SMTP_ID = '$smtp_id'" >> Program/env.py
|
||||||
|
|
||||||
echo -n "Enter sender password, used as smtp password : "
|
echo -n "Enter sender password, used as smtp password : "
|
||||||
read smtp_pwd
|
read smtp_pwd
|
||||||
echo -e "SMTP_PWD = '$smtp_pwd'" > Program/env.py
|
echo -e "SMTP_PWD = '$smtp_pwd'" >> Program/env.py
|
||||||
|
|
||||||
echo -n "Enter recipient email address : "
|
echo -n "Enter recipient email address : "
|
||||||
read recipient
|
read recipient
|
||||||
echo -e "RECIPIENT = '$recipient'" > Program/env.py
|
echo -e "RECIPIENT = '$recipient'" >> Program/env.py
|
||||||
|
|
||||||
|
|
||||||
echo -n "Enter Humidity rate alert threshold without percent symbol (default 70): "
|
echo -n "Enter Humidity rate alert threshold without percent symbol (default 70): "
|
||||||
read hr_max
|
read hr_max
|
||||||
hr_max=${hr_max:-70}
|
hr_max=${hr_max:-70}
|
||||||
echo -e " MAX_HR= $hr_max" > Program/env.py
|
echo -e " MAX_HR= $hr_max" >> Program/env.py
|
||||||
|
|
||||||
echo -n "Enter temperature alert threshold withpercent °c symbole (default 30) : "
|
echo -n "Enter temperature alert threshold withpercent °c symbole (default 30) : "
|
||||||
read temp_max
|
read temp_max
|
||||||
temp_max=${temp_max:-30}
|
temp_max=${temp_max:-30}
|
||||||
echo -e " MAX_TEMP= $temp_max" > Program/env.py
|
echo -e " MAX_TEMP= $temp_max" >> Program/env.py
|
||||||
|
|
||||||
echo -e " SENSORS= {"d6:c6:c7:39:a2:e8":"DEMO3", "d6:1c:bf:b7:76:62":"DEMO1", "d7:ef:13:27:15:29":"DEMO2"} " > Program/env.py
|
echo -e " SENSORS= {"d6:c6:c7:39:a2:e8":"DEMO3", "d6:1c:bf:b7:76:62":"DEMO1", "d7:ef:13:27:15:29":"DEMO2"} " >> Program/env.py
|
||||||
|
|
||||||
|
|
||||||
# Execute main.py
|
# Execute main.py
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user