From 031dc12b57274bfbcdee45dfe38f487e97c89f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Gro=C3=9Fklo=C3=9F?= Date: Sun, 7 Dec 2025 13:50:57 +0100 Subject: [PATCH] Update Readme.md to include database size reduction steps --- Readme.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index 1b3827f..a2dc258 100644 --- a/Readme.md +++ b/Readme.md @@ -14,4 +14,14 @@ This is a Gadgetbridge MQTT bridge for TrueNAS Scale, which allows you to connec ## Editing Sensors - add new mqtt sensor around here [main.py#L90](https://git.olli.info/Oliver/GadgetbridgeMqtt/src/branch/main/main.py#L90) -- add new function for new sensor around here [main.py#L208](https://git.olli.info/Oliver/GadgetbridgeMqtt/src/branch/main/main.py#L208) \ No newline at end of file +- add new function for new sensor around here [main.py#L208](https://git.olli.info/Oliver/GadgetbridgeMqtt/src/branch/main/main.py#L208) + +## Reduce Database Size + +1. Export ZIP in Gadgetbridge > Data Management +2. Unzip, clear logs & other unneeded data. +3. Locate `Gadgetbridge` in `database/` and `files/` and delete old heart pulse samples to reduce the size of the Gadgetbridge database: +```bash +sqlite3 Gadgetbridge.db "DELETE FROM HEART_PULSE_SAMPLE; VACUUM;" +``` +4. Rezip and import back into Gadgetbridge \ No newline at end of file