From be617d5c4a8e2e69c46ad2c19b68ae2ce994f7c3 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 10 Jul 2024 15:37:53 -0700 Subject: [PATCH] installer --- README.md | 5 +++++ install.sh | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6584322..9de3c08 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/install.sh b/install.sh index 8daa706..902572e 100755 --- a/install.sh +++ b/install.sh @@ -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 \ No newline at end of file +echo "Goodbye!" +exit 0