a few more changes with the readme

This commit is contained in:
madeofstown
2025-02-23 14:14:57 -08:00
parent f17a3d2786
commit bcc9c03459
3 changed files with 30 additions and 5 deletions
+14 -4
View File
@@ -31,9 +31,14 @@ You also need to install `graphviz`:
``` bash
sudo apt-get install graphviz
```
Edit `config.ini` to change the MQTT server, username, password, and topic(s) as necessary.
You may also change the web server port from the ***default 8081***.
Copy `sample.config.ini` to `config.ini`:
``` bash
cp sample.config.ini config.ini
```
Edit `config.ini` and change the MQTT server, and Web server settings as necsessary.
```bash
nano config.ini
```
https://github.com/pablorevilla-meshtastic/meshview/blob/20bc89a21feb23b0dde51e10e21638c11f4e4443/config.ini#L1-L15
## Running Meshview
@@ -41,4 +46,9 @@ https://github.com/pablorevilla-meshtastic/meshview/blob/20bc89a21feb23b0dde51e1
``` bash
./env/bin/python main.py
```
Now you can hit http://localhost:8081/
Now you can hit http://localhost:8081/ ***(if you did not change the web server port )***
You can specify the path to your `config.ini` file with the run command flag `--config`
``` bash
./env/bin/python main.py --config /path/to/config.ini
```
+1 -1
View File
@@ -57,7 +57,7 @@ def load_config(file_path):
if __name__ == '__main__':
parser = argparse.ArgumentParser("meshview")
parser.add_argument("--config", help="Path to the configuration file.", default='config.ini')
parser.add_argument("--config", help="Path to the configuration file.", default="config.ini")
args = parser.parse_args()
config = load_config(args.config)
+15
View File
@@ -0,0 +1,15 @@
[server]
bind = *
port = 8081
tls_cert =
acme_challenge =
[mqtt]
server = mqtt.bayme.sh
topics = ["msh/US/bayarea/#", "msh/US/CA/mrymesh/#"]
port = 1883
username = meshdev
password = large4cats
[database]
connection_string = sqlite+aiosqlite:///packets.db