Comments (10)
Yeah, absolutely, and double-plus absolutely because you're a FLOSS app.
I'm in France, so if you don't mind I'll send you one of my own, kinda scratched up, Decent Scales, so we can avoid any EU tax fun.
API docs here:
https://decentespresso.com/decentscale_api
and I can help if any questions.
from cofi.
Thanks for bringing to my attention that Decent has a developer program, and that they can send free scale to help with the implementation. I've sent them an email and I'll wait for the response. It would be nice to have features you are talking about
from cofi.
@rozPierog I'm not sure how much BLE experience you have, but I've worked professionally with Android BLE for years and I'm happy to be a resource if that's helpful. I'd also be happy to contribute!
Here's another link for you: JuulLabs/Kable is a fantastic multi-platform Kotlin library for working with BLE. We use it to great effect at @parsyl on both Android and iOS. It translates all of the callback-based Android APIs to a great Kotlin coroutines-based API that makes development much easier.
from cofi.
Oooooh, that's amazing thanks @mtrewartha I'll definitely look into this as my experience with BLE is non-existent.
from cofi.
Thanks John!
from cofi.
Resources to look at when implementing:
https://punchthrough.com/android-ble-guide/
https://developer.android.com/guide/topics/connectivity/bluetooth/ble-overview
https://decentespresso.com/decentscale_api
from cofi.
It's super easy, though. The steps are:
- scan for devices, get a bluetooth device id
- connect to that device id
- "subscribe" to data from one of the numbered services
- receive weight data
from cofi.
I'm sure that it's easy, but sadly I don't have time to learn ins and outs of Android bluetooth stack, right now, so to have that burden lifted via already battle tested library will be a great help
from cofi.
oh, totally think you should use the library, but the steps will likely be the same. It's just that the library will hide some complexity of the implementation, and (nicely) avoid you having to learn the different platform issues.
I'm reading the docs:
https://github.com/JuulLabs/kable
and my 1-2-3-4 steps will still apply. But you'll likely have code from Kable that you can copy/paste.
from cofi.
Yup, I think those same steps likely apply (admittedly haven't looked at the scale BLE API). There's definitely a learning curve to BLE so if you beat me to this, don't hesitate to ping me with questions!
from cofi.
Related Issues (20)
- [WearOS] Recipe Description cannot be scrolled by a crown rotation HOT 1
- [WearOS] Settings are cut off after second line
- [WearOS] Recipes do not follow sorting from the phone HOT 1
- Notification for recipes' steps HOT 3
- Sorting through tags HOT 1
- Tea support? HOT 4
- "up next" values not scaled with rest of recipe HOT 1
- [Notification timer] stopped timer in notification resumes when opening the app
- [Notification Timer] Clicking on timer doesn't open the recipe
- [Notification Timer] Notification isn't bridged to the connected devices
- Optional auto pause after each step HOT 1
- Entering custom weights in multiplier menu is tedous HOT 2
- Copycat/Clone on Google Play HOT 1
- Espresso listen
- "Add default recipes" creates an empty recipe HOT 1
- Steps of duration "0" should pause, or default duration should be empty string HOT 3
- Crash while editing recipe. Cofi 1.21.1 HOT 2
- Fix labels if non-default system font size is used HOT 1
- No recipes shown when returning to Cofi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cofi.