rozPierog / Cofi

Free and open-source coffee brew timer. Customizable time settings and an easy-to-use interface. Perfect cup every time.

Home Page:https://rozpierog.github.io/Cofi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Bluetooth scale support

JuliusLoewe opened this issue · comments

Please add support for Bluetooth scales like Acaia. This way you could actually show the actual grams while the countdown runs down instead of a calculated speed. Not sure if there is an open API for this.

I'm afraid that won't be a possibility. Acaia doesn't provide API for connecting with it's scales (for Android at least) and other scales with open APIs seem to be in development limbo.
What's more Bluetooth scale seem like a niche, and I would like to avoid adding bulk to the app that wouldn't benefit a major percentage of the users.

If there is some open source coffee scale, with robust API, down the line I would be happy to add some Bluetooth functionality to the Cofi, but as of right now I would rather not. I hope you understand

It seems there are Android apps that are actually having Bluetooth connectivity. I think this feature is more than useful. So I think there is indeed an API out there https://play.google.com/store/apps/details?id=com.beanconqueror.app

Thanks for the link to the Bean Conqueror app, I've studied it's code since it's also an Open Source app, and noticed that it uses https://github.com/bpowers/btscale to communicate with Bluetooth scales. Cofi is written in Kotlin, while Bean Conqueror uses JavaScript (Cordova). There is no tried and working solution for Native Android development, at least I couldn't find one.
I'm not comfortable with writing code to handle communication like that without actually having hardware I'm trying to communicate with at hand.
I'll be on a lookout for some ready to use library to handle Bluetooth scales, and if something ever changes in that regard I'll reopen this issue and let you know

Oh I totally understand and it's great it's built in kotlin. What about the official Acaia API? https://github.com/acaia/acaia_sdk_android