installer

This commit is contained in:
SpudGunMan
2024-07-10 15:37:53 -07:00
parent 4220202434
commit be617d5c4a
2 changed files with 11 additions and 3 deletions

View File

@@ -32,6 +32,11 @@ other features
- `wxa` and `wxalert` returns NOAA alerts. short title or expanded details
- `joke` tells a joke
## Install
- Clone the project with `git clone https://github.com/spudgunman/meshing-around`
- `install.sh` will automate optional venv and requirements install
- `launch.sh` will activate and launch the app in the venv if built
### Configurations
Currently config modifications is edit to code. Be sure to uncomment the appropriate interface for your method (serial/BLE/TCP). Only one at a time is supported to a single node at a time.

View File

@@ -27,12 +27,14 @@ if [ $venv == "y" ]; then
# install dependencies
pip install -U -r requirements.txt
exit 0
fi
echo "Which bot do you want to install as a service? (pong/mesh/n)"
read bot
# reminder to change the .service file to proper path for the bot
if [ $bot == "pong" ]; then
# install service for pong bot
sudo cp etc/pong_bot.service /etc/systemd/system/
@@ -47,7 +49,8 @@ fi
if [ $bot == "n" ]; then
launch.sh
exit 1
exit 0
fi
# reminder to change the .service file to proper path for the bot
echo "Goodbye!"
exit 0