diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..24846ee --- /dev/null +++ b/run.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +# Activate the virtual environment +source /home/youruserhere/meshtastic_forceast/venv/bin/activate + +# Check if the activation was successful +if [ $? -ne 0 ]; then + echo "Failed to activate virtual environment." + exit 1 +fi + +# Run the Python script +python /home/youruserhere/meshtastic_forceast/main.py + +# Deactivate the virtual environment when done +deactivate + +# Optionally, you can add a message after the script finishes +echo "Python script execution finished."