Comment on Turning Grafana into a health tracking app
rcmd@lemmy.world 5 days ago
FTR: currently experimenting with scraping Gadgetbridge data into Grafana.
Comment on Turning Grafana into a health tracking app
rcmd@lemmy.world 5 days ago
FTR: currently experimenting with scraping Gadgetbridge data into Grafana.
Impromptu2599@lemmy.world 5 days ago
I would be curious how you are doing on scraping the gadgetbridge data. I have been thinking about doing this and feeding it into Zabbix.
rcmd@lemmy.world 5 days ago
Gadgetbridge allows automatic SQLite database export to the location you specify.
Navigate to Settings -> Automations -> Auto export database, and from there you can configure the details.
You can put it into a shared Syncthing folder, or something alike, or process it with Termux + Tasker. Personally, I hesitate to send megabytes of data over the wire every couple of minutes, so I rigged up a script that extracts the required metrics (for now its my steps only, the rest does not seem to be accurate) and sends a payload to my queue, where a consumer script later adds it to the DB.
Tangent5280@lemmy.world 5 days ago
Does gadgetbridge have something like an API? It seems like it should already have something along these lines, since health wearables not having one is what gave birth to gadgetbridge in the first place…
rcmd@lemmy.world 4 days ago
To my knowledge not really much is available. You may use an intent to trigger database export and then use SQLite to scrape data.
Also keep in mind that data is kept in device specific tables.
codeberg.org/Freeyourgadget/…/Intent-API