Add separate file for running controller & update readme

This commit is contained in:
2025-11-02 10:33:16 +00:00
parent 071154f11e
commit a0fbd9308c
2 changed files with 17 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
# thingy52-mqtt-bridge
MQTT bridge for BLE Nordic Instruments Thingy:52
MQTT bridge for BLE Nordic Instruments Thingy:52.
## Usage
Update the parameters found in `app.py` and run it with `python3 app.py`.

12
app.py Normal file
View File

@@ -0,0 +1,12 @@
from controller import Controller
Controller(
broker="mqtt.broker.ip",
port=8883,
mac="THINGY:52:MAC",
username="mqtt_username",
password="mqtt_password",
topic="homeassistant/sensor/thingy52",
caCertPath="/path/to/ca.crt",
temperatureOffset=-11
)