edit docs and make dockerfile use config.ini not config.template

This commit is contained in:
Matthew Patrick
2024-09-02 12:35:44 -06:00
parent 0599260e31
commit 78b1cf4af5
3 changed files with 7 additions and 7 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ COPY requirements.txt .
RUN pip install -r requirements.txt
COPY . .
COPY config.template /app/config.ini
COPY config.ini /app/config.ini
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
+5
View File
@@ -63,6 +63,11 @@ Optionally:
- `install.sh` will automate optional venv and requirements installation.
- `launch.sh` will activate and launch the app in the venv if built.
For Docker:
- `git clone https://github.com/spudgunman/meshing-around`
- `cd meshing-around && docker build -t meshing-around`
- `docker run meshing-around`
### Configurations
Copy the [config.template](config.template) to `config.ini` and set the appropriate interface for your method (serial/ble/tcp). While BLE and TCP will work, they are not as reliable as serial connections. There is a watchdog to reconnect tcp if possible. To get BLE mac `meshtastic --ble-scan` **NOTE** I have only tested with a single BLE device and the code is written to only have one interface be a BLE port
+1 -5
View File
@@ -1,10 +1,6 @@
#!/bin/bash
# Substitute environment variables in the config file
envsubst < /app/config.template > /app/config.ini
# Debug: Output the generated config file
echo "Generated config.ini:"
cat /app/config.ini
envsubst < /app/config.ini > /app/config.tmp && mv /app/config.tmp /app/config.ini
exec python /app/mesh_bot.py