FTR: currently experimenting with scraping Gadgetbridge data into Grafana.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
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.
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.
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...
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.
https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Intent-API
Love this. Thanks for sharing.
I’ve been experimenting with something similar the last two months. My workflow involves self reported health data via NextCloud forms. The api feeds a sql db that’s modeled using grafana. I also have a python tool in open webui to chat over the data with gpt-oss:20b. Fun project. Happy to hear others are tinkering too.
