A Homekit-enabled IR hub to control all your IR devices.
docker run -it nn708/esp-homekit-irhub
If your host machine runs Linux, you can add parameter
--device=/dev/<tty_on_your_host_machine>:/dev/ttyUSB0 -e ESPPORT=/dev/ttyUSB0
to expose your ESP8266 device to the container. In some cases, you need to add-e FLASH_MODE=dout
(See https://github.com/espressif/esptool/wiki/SPI-Flash-Modes for more information).
cd ir_hub
make
to compile the code. To flash your device, use:
make erase_flash
make flash
Then debug through serial port:
make monitor
If you are using Windows or macOS, copy the binary file onto your host machine and flash it outside of the container.
sudo apt-get update
Then
sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf \
flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
sed git unzip bash help2man wget bzip2 libtool-bin
git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk
make
/path/to/esp-open-sdk/xtensa-lx106-elf/bin
) to your PATH.git clone --recursive https://github.com/Superhouse/esp-open-rtos.git
Then set environment variable ESP_OPEN_RTOS to the esp-open-rtos directory.
export FLASH_MODE=dout
export ESPPORT=/dev/ttyUSB0
And make sure you can write to it by adding your user to group dialout:
sudo usermod -a -G dialout <your_user>
git clone https://github.com/NN708/ESP-Homekit-IRHub.git
cd ESP-Homekit-IRHub
git submodule update --init --recursive
cd ir_hub
Then you can compile it using:
make
To flash your device, use:
make erase_flash
make flash
Then debug through serial port:
make monitor
Licensed under the MIT license.