1.1 KiB
1.1 KiB
GadgetbridgeMqtt for TrueNAS Scale
This is a Gadgetbridge MQTT bridge for TrueNAS Scale, which allows you to connect your Gadgetbridge database to Home Assistant or other MQTT clients.
Setup
- copy content
compose.yamlyour TrueNAS Scale Apps -> Discover Apps -> ⋮ -> Install via YAML - edit
- mount point for your Gadgetbridge database
- your Timezone
- environment variables for your MQTT broker
- start the app
Editing Sensors
- add new mqtt sensor around here main.py#L90
- add new function for new sensor around here main.py#L208
Reduce Database Size
- Export ZIP in Gadgetbridge > Data Management
- Unzip, clear logs & other unneeded data.
- Locate
Gadgetbridgeindatabase/andfiles/and delete old heart pulse samples to reduce the size of the Gadgetbridge database:
sqlite3 Gadgetbridge "DELETE FROM HEART_PULSE_SAMPLE; VACUUM;"
- Rezip and import back into Gadgetbridge