Skip to content

Commit 3b915b0

Browse files
committed
Added mqtt output plugin.
1 parent 01436dd commit 3b915b0

File tree

6 files changed

+1115
-6
lines changed

6 files changed

+1115
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
key: ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
2929

3030
- name: Install dependencies
31-
run: uv sync --extra dev --extra test --extra postgres
31+
run: uv sync --extra dev --extra test
3232

3333
- name: Run code quality checks
3434
run: |
@@ -53,7 +53,7 @@ jobs:
5353
run: uv python install 3.12
5454

5555
- name: Install dependencies
56-
run: uv sync --extra dev --extra test --extra postgres
56+
run: uv sync --extra dev --extra test
5757

5858
- name: Run tests with coverage
5959
run: |

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,23 @@ sources:
5858
database: postgis
5959
username: username
6060
password: password
61+
62+
# Outputs: Define where notifications are sent
63+
outputs:
64+
- type: mqtt
65+
config:
66+
broker_host: localhost
67+
broker_port: 1883
6168
```
6269
6370
### Available Plugins
6471
6572
#### Sources
6673
- `postgres`: Monitor PostgreSQL/pgSTAC database changes
6774

75+
#### Outputs
76+
- `mqtt`: Publish events to MQTT broker
77+
6878
## Testing
6979

7080
Install test dependencies and run tests with `uv`:

eoapi_notifier/outputs/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""
2+
Outputs plugins.
3+
4+
"""
5+
6+
from .mqtt import MQTTAdapter, MQTTConfig
7+
8+
__all__ = [
9+
"MQTTAdapter",
10+
"MQTTConfig",
11+
]

0 commit comments

Comments
 (0)