Wrapper for yeelight-controller api and client with a docker-compose file
API and client repos:
- https://github.com/Klubas/yeelight-controller-api
- https://github.com/Klubas/yeelight-controller-client
# todo: use git submodules
git clone https://github.com/Klubas/yeelight-controller \
&& cd ./yeelight-controller \
&& git clone https://github.com/Klubas/yeelight-controller-api \
&& git clone https://github.com/Klubas/yeelight-controller-client
docker-compose.yml default Dockerfile is Dockerfile.template and it will only work with balena, so you may whant to change it.
docker-compose up [-d]
balena build --deviceType <qemux86-64> --arch <amd64> --multi-dockerignore
balena push <fleet-name> --multi-dockerignore
# The following fleet/device configuration is required
dtparam=spi=on
dtparam=i2c=on
# Setting the following fleet/device configuration may be required for proper scaling of the TFT Display
BALENA_HOST_CONFIG_hdmi_cvt 480 320 60 1 0 0 0 //<width> <height> <framerate> <aspect> <margins> <interlace> <rb>
BALENA_HOST_CONFIG_hdmi_force_hotplug 1
BALENA_HOST_CONFIG_hdmi_group 2
BALENA_HOST_CONFIG_hdmi_mode 87