-
Notifications
You must be signed in to change notification settings - Fork 50
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
Provide an example docker image #42
Comments
Heyyy 🎉 I decided to give it another shot after a good night of sleep and finding this thread on Reddit. It now works on Docker 🎉 😃!
Command to build it: (don't forget to have your
Command to launch the container:
I'm sure some of this can be relaxed by removing some flags, but I'm not a pro with all these permissions. I guess one way to find out would be to remove some and see if it still works but I'm not going to play with that right now. If someone finds out the minimal flags required to run all this please let us know 🙏 But at least this is working now :D! Oh also, I forgot. Inside the container you'll have to specify the config. So your commands should at least start with this:
I'm not 100% sure on this but also I think this is working fine because I've managed to pair (and trust) my desk using
If your device isn't showing up here, unfortunately I don't fully remember what I've done but on top of my memory:
At this stage, on your desk controller, press the bluetooth button for 2/3 seconds until it starts blinking blue. Once it's detected do
Hopefully at this stage you should be connected and you know the connection is working all fine. Once/if connected, don't forget to run |
Hi, I was also playing with the idea of Dockerizing this, but then was distracted by other things. I think the main differences are that I use the Python image and work with the local development state. |
I've published my project wrapping this lib to expose some MQTT endpoints and was able to successfully integrate with Home Assistant. In case anyone is interested, have a look here (everything explained in the README): https://github.com/maxime1992/linak-2-mqtt Still leaving this issue open for now as I still think it may be a nice idea to have a docker file in this project 👍 |
Ah thanks for this, it's a good idea! If you make a PR I will accept otherwise I will get around to adding it myself at some point. |
I have put an example docker file in the RECIPES file. Because of a weird WSL setup I can't test a docker file properly so I didn't want to include it as a dockerfile in the main repo. |
Hello 👋
First of all... thank you for the project. I've spent so much time today trying different libs to connect to my desk and none of these worked or were reliable except yours.
I'm trying to dockerize your project, I've noticed that you made a comment at some point mentioning that you built a docker to test from a fresh install: #1 (comment)
Here's what I've got so far:
and
run.sh
has the following content:I wonder if instead of killing bluetoothd on the host and running run.sh there is a way to get the exact config of
bluethoothctl
from the host as that's where I've got my bluetooth devices... That'd be much cleaner.Also... It currently doesn't work and I get
Here's how I've launched the container:
And from my host:
and from the container
So clearly something's wrong here...
Any idea? :)
Thanks!
The text was updated successfully, but these errors were encountered: