

Surprisingly, it works! I just checked it on my microservice, indeed now QRs are smaller. This is a lifesaver tip, thanks a bunch!


Surprisingly, it works! I just checked it on my microservice, indeed now QRs are smaller. This is a lifesaver tip, thanks a bunch!


I keep track of lots of vintage devices in my basement, these lay on a CD shelf with narrow walls, and I want to keep track of their maintenance status, i.e. when did I charge the battery last time.
This little printer is pretty handy for labeling tasks, with one noticeable problem: the resolution is quite low, so I cannot afford printing full length domain name on such a tiny label. What I ended up with is writing my own microservice that puts fake http://i.nv/ domain in front of inventory ID. That domain is provided by DNSMASQ that I run on my server, and there’s also NGINX listening for that domain and doing 302 onto an actual Homebox page.
Homebox sends URL parameters to the specified endpoint, and given that information it is possible to construct any label of any shape or form, it only needs to be a PNG image.


Grab Homebox here and start tracking your inventory!


Well, this path seems to be the most appropriate for what I am for.
And more to that, both mergerfs and snapraid are available out of the box in the latest stable Debian release.
Thanks for pointing me at it!


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


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.


FTR: currently experimenting with scraping Gadgetbridge data into Grafana.
For now I use the vendor provided app, given it supports a share intent, so I can simply toss a PNG from Vivaldi at it and make it print the label. It does the job, and more importantly, it bypasses all possible obnoxious advertisement.