mirror of
https://github.com/geoffwhittington/meshtastic-bridge.git
synced 2026-07-15 14:11:01 +02:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b72102c402 | |||
| 0930aa917e | |||
| 7ad584830a | |||
| fe5e119059 | |||
| 23c1250ccb | |||
| c5134fd5b4 | |||
| c3ff3b3a4f | |||
| 0f1e5a908d |
@@ -4,21 +4,16 @@ on:
|
|||||||
- "*"
|
- "*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker-buildx:
|
||||||
name: Build, push
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout main
|
- name: Checkout main
|
||||||
uses: actions/checkout@main
|
uses: actions/checkout@main
|
||||||
|
|
||||||
- name: Build container
|
- name: Build and publish image
|
||||||
run: docker build --tag gwhittington/meshtastic-bridge:latest .
|
uses: zmingxie/docker_buildx@master
|
||||||
|
with:
|
||||||
- name: Log in to Container Registry with short-lived credentials
|
publish: true
|
||||||
run: docker login --username=gwhittington --password "${{secrets.DOCKER_HUB}}"
|
imageName: gwhittington/meshtastic-bridge
|
||||||
|
dockerHubUser: gwhittington
|
||||||
- name: Push image to Container Registry
|
dockerHubPassword: ${{secrets.DOCKER_HUB}}
|
||||||
run: docker push gwhittington/meshtastic-bridge:latest
|
|
||||||
|
|
||||||
- name: Logout from Container Registry
|
|
||||||
run: docker logout
|
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ WORKDIR /code
|
|||||||
# copy the dependencies file to the working directory
|
# copy the dependencies file to the working directory
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y cargo
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
|
RUN pip install -U pip
|
||||||
|
RUN pip install setuptools_rust wheel
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
# copy the content of the local src directory to the working directory
|
# copy the content of the local src directory to the working directory
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ mqtt_servers:
|
|||||||
mqtt-to-radio:
|
mqtt-to-radio:
|
||||||
- decrypt_filter:
|
- decrypt_filter:
|
||||||
key: '/home/user/keys/key.pem'
|
key: '/home/user/keys/key.pem'
|
||||||
- send_plugin:
|
- radio_message_plugin:
|
||||||
device: remote
|
device: remote
|
||||||
pipelines:
|
pipelines:
|
||||||
radio-to-mqtt:
|
radio-to-mqtt:
|
||||||
@@ -110,7 +110,7 @@ The following plugins can be used in the `pipelines` section of `config.yaml`:
|
|||||||
| `mqtt_plugin` | Send packets to a MQTT server |
|
| `mqtt_plugin` | Send packets to a MQTT server |
|
||||||
| `encrypt_filter` | Encrypt a packet for a desired MQTT recipient |
|
| `encrypt_filter` | Encrypt a packet for a desired MQTT recipient |
|
||||||
| `decrypt_filter` | Decrypt a packet originating from MQTT |
|
| `decrypt_filter` | Decrypt a packet originating from MQTT |
|
||||||
| `send_plugin` | Send a packet to a specified `device` |
|
| `radio_message_plugin` | Send a packet to a specified `device` |
|
||||||
|
|
||||||
### debugger - Output the contents of a packet
|
### debugger - Output the contents of a packet
|
||||||
|
|
||||||
@@ -153,8 +153,8 @@ message_filter:
|
|||||||
- **log_level** `debug` or `info`. Default `info`
|
- **log_level** `debug` or `info`. Default `info`
|
||||||
- **max_distance_km** Filter packets more than a certain distance
|
- **max_distance_km** Filter packets more than a certain distance
|
||||||
- **comparison** `within` or `outside`. Default `within`
|
- **comparison** `within` or `outside`. Default `within`
|
||||||
- **compare_latitude** Set the latitude to compare against
|
- **compare_latitude** latitude to compare against
|
||||||
- **compare_longitude** Set the longitude to compare against
|
- **compare_longitude** longitude to compare against
|
||||||
- **latitude** Set the latitude
|
- **latitude** Set the latitude
|
||||||
- **longitude** Set the longitude
|
- **longitude** Set the longitude
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user