Updated readme and service

This commit is contained in:
Cynopolis
2025-04-01 22:14:26 -04:00
parent 895a40a389
commit 0d10c88b96
2 changed files with 9 additions and 8 deletions

View File

@@ -3,12 +3,12 @@ Description=A simple chat interface and autoresponder for meshtastic
[Service]
Type=simple
WorkingDirectory=/home/quinn/Projects/meshtastic/
ExecStart=sudo /home/quinn/Projects/meshtastic/meshtastic/bin/python -m flask --app /home/quinn/Projects/meshtastic/app.py run --host=0.0.0.0 --port=80
WorkingDirectory=/home/quinn/Projects/Meshtastic-Webserver/
ExecStart=sudo /home/quinn/Projects/Meshtastic-Webserver/meshtastic/bin/python -m flask --app /home/quinn/Projects/Meshtastic-Webserver/app.py run --host=0.0.0.0 --port=80
Restart=always
User=quinn
StandardOutput=append:/home/quinn/Projects/meshtastic/logs/meshtastic_system.log
StandardError=append:/home/quinn/Projects/meshtastic/logs/meshtastic_system_error.log
StandardOutput=append:/home/quinn/Projects/Meshtastic-Webserver/logs/meshtastic_system.log
StandardError=append:/home/quinn/Projects/Meshtastic-Webserver/logs/meshtastic_system_error.log
[Install]
WantedBy=default.target

View File

@@ -1,15 +1,16 @@
# Create a Virtual Environment
Create the virtual environment and activate it
Create the virtual environment and activate it:
`python -m venv meshtastic && source meshtastic/bin/activate`
Install the requirements
Install the requirements: `pip install requirements.txt`
pip install requirements.txt
Try it out before deploying it as a service: `flask run --host=0.0.0.0 --port=5000`
# Deploying Service Script Changes
Type the following commands:
`sudo cp /home/quinn/Projects/meshtastic/MeshtasticLogger.service /etc/systemd/system/ && sudo systemctl daemon-reload`
`sudo cp ~/Projects/Meshtastic-Webserver/MeshtasticLogger.service /etc/systemd/system/ && sudo systemctl daemon-reload`
To start the service run
`sudo systemctl start MeshtasticLogger`