diff --git a/connect_phone.sh b/connect_phone.sh index e0590bd..2bbf5b8 100755 --- a/connect_phone.sh +++ b/connect_phone.sh @@ -4,7 +4,7 @@ MAC_ADDRESS="" read -p "Please enter MAC BT address: " MAC_ADDRESS # Write the address into config file before -sed -i "s/MAC_ADDRESS/$MAC_ADDRESS/" config/config.yaml +sed -i "s/MAC_ADDRESS/$MAC_ADDRESS/" config/agent.yaml bluetoothctl -- power on @@ -14,6 +14,7 @@ sleep 10 # Time to give BT to start bluetoothctl -- default-agent bluetoothctl -- discoverable on bluetoothctl -- pairable on +bluetoothctl -- scan on # Try to pair now bluetoothctl -- pair ${MAC_ADDRESS} diff --git a/setup/setup_agent_gsm.sh b/setup/setup_agent_gsm.sh index 3bd704e..52b1b94 100755 --- a/setup/setup_agent_gsm.sh +++ b/setup/setup_agent_gsm.sh @@ -7,7 +7,8 @@ INSTALL_DIR=agent_gsm GIT_SOURCE=https://git.sevana.biz/public/agent_gsm_redist # Install prerequisites -sudo apt install git mc python3 sox vim +sudo apt install git mc python3 sox vim libffi-dev +sudo pip3 install pyyaml sox pyrabbit soundfile dbus_python pexpect pydub requests if [ -f "$INSTALL_DIR" ]; then rm -rf "$INSTALL_DIR" @@ -32,7 +33,7 @@ cp config/agent.in.yaml config/agent.yaml # Replace the values if [[ $BACKEND_URL != "" ]]; then - sed -i "s|BACKEND_URL|$BACKEND_URL|" config/agent.yaml + sed -i "s|BACKEND|$BACKEND|" config/agent.yaml fi if [[ $PHONE_NAME != "" ]]; then