Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get a ping when shot extraction is started and ended from the Micra? #1

Closed
ilpantera opened this issue Apr 24, 2023 · 4 comments · Fixed by #2
Closed
Labels
enhancement New feature or request

Comments

@ilpantera
Copy link

Thanks for your work on this! Is it possible to get a ping when shot extraction is started and ended from the Micra with this API?
This would be great to integrate it with a scale like the Acaia

@zweckj zweckj added the enhancement New feature or request label Apr 24, 2023
@zweckj
Copy link
Owner

zweckj commented Apr 24, 2023

Unfortunately no (or at least not yet), that's something I'd like to have as well. I assume that is only happening through the local streaming API. But I still couldn't find out how the local API works...

@zweckj
Copy link
Owner

zweckj commented Apr 24, 2023

This would be great to integrate it with a scale like the Acaia

I looked into it a bit. I found a way to access, the timer but even if I get the timer from the Machine, integrating it with Acaia won't be possible, as they only support mobile SDKs (Android & iOS) for connections.
Not sure where I could display this info in HA so it would still be useful.

@ilpantera
Copy link
Author

ilpantera commented Apr 24, 2023

Sounds great! Do you see a lag in when this information is sent or is it near real time? I mean a second doesn't really matter that much but 5 would be critical. On the other hand, the LM App also manages to get the time quite quick (if it works occasionally...) ;-)

My idea was to combine your code with this one: https://github.com/lucapinello/pyacaia
Run it on a Pi Zero or something like that can be connected via bluetooth to the Acaia and then call the scale.startTimer() and scale.stopTimer() from the pyacaia repository

@zweckj
Copy link
Owner

zweckj commented Apr 24, 2023

Sounds great! Do you see a lag in when this information is sent or is it near real time? I mean a second doesn't really matter that much but 5 would be critical. On the other hand, the LM App also manages to get the time quite quick (if it works occasionally...) ;-)

The information is as real time as the LM App gets it (and I should theoretically even be able to access it more reliably). I still need to figure out how the apps sends commands to the machine in streaming mode, before I can really implement that though...

My idea was to combine your code with this one: https://github.com/lucapinello/pyacaia Run it on a Pi Zero or something like that can be connected via bluetooth to the Acaia and then call the scale.startTimer() and scale.stopTimer() from the pyacaia repository

Thanks didn't know this repository. That looks very interesting. Maybe put a webserver around it and call a generic scale HTTP endpoint from the lamarzocco intergration. Will think about it.

@zweckj zweckj linked a pull request Apr 25, 2023 that will close this issue
@zweckj zweckj closed this as completed in #2 Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants