Skip to content

Instantly share code, notes, and snippets.

@mutsune
Last active October 16, 2022 14:59
Show Gist options
  • Save mutsune/bc9244ee163a5f2a699280ea40527b85 to your computer and use it in GitHub Desktop.
Save mutsune/bc9244ee163a5f2a699280ea40527b85 to your computer and use it in GitHub Desktop.
Setup SwitchBot python-host (https://github.com/OpenWonderLabs/python-host switchbot_py3.py) on Docker image python:3.9-bullseye
apt update
apt install python3-bluez -y
git clone https://github.com/OpenWonderLabs/python-host.git
cd python-host
pip3 install setuptools==58
pip3 install pybluez
apt install pkg-config libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev python-dev python3-dev -y
pip3 install gattlib
# 3.10> is not curretly supported https://github.com/oscaracena/pygattlib/issues/30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment