Run TUYA-CONVERT using Docker
masterUsing Docker avoids installing dependencies on your host system.
Requirements:
- Linux computer with a Wi-Fi adapter.
- Secondary Wi-Fi device (e.g., smartphone).
dockeranddocker-composeinstalled.
Setup and Execution:
- Clone the repo and enter the directory.
- Create your environment file:
cp .env-template .env. - Edit the
.envfile to configure settings (e.g.,WLANinterface name andLOCALBACKUPDIR). - Build and run the container:
docker-compose build && docker-compose run --rm tuyaUseful Docker Commands:
- Keep container after flashing (for troubleshooting): Remove the
--rmflag:docker-compose run tuya. - Access bash instead of starting tuya:
docker-compose run --entrypoint bash tuya. - Rebuild image without cache:
docker-compose build --no-cache.
git clone https://github.com/ct-Open-Source/tuya-convert
cd tuya-convert
cp .env-template .env
# Edit .env before running
docker-compose build && docker-compose run --rm tuya