keptenkurk / BS440

Python code to talk to Medisana BS440 bluetooth enabled bathroom scale
MIT License
50 stars 34 forks source link

Bring BS440 into a Docker container #106

Open Boldfor opened 1 year ago

Boldfor commented 1 year ago

Situation

One comfortable way to run a smarthome server and all required software is via docker. Depending on your smarthome system (Home Assistant, openHAB, etc) a pre-defined docker-compose.yml file helps to set up a pre-configured system incl. all software (influxdb, mosquitto, etc) in a very short amount of time (e.g. see here). In such a setting, the BS440-script is the only thing that has to be installed manually.

Idea

Containerize the BS440 script incl. all required installations, so that the BS440-script can be installed among all other required software in just one docker stack.

Required steps (?!?)

  1. Creating a Dockerfile
  2. Specify the base image to use
  3. Copy the files from the project into the container
  4. Run to install any dependencies
  5. Specify the command that should be run when the container is started
  6. Build the docker image
  7. Push the image to a container registry (e.g. Docker Hub)
  8. Run the image
  9. ...?

Remarks

Achieving this would be pretty neat (maybe not only for my setup?). In case someone can give hints / can contribute, let me know...