codebase inspired by https://gitlab.com/superfly/dawndoor
MicroPython project template with a mini web framework
curl -i 192.168.1.46/gpio?number=0
> HTTP/1.0 200 NA
> Content-Type: application/json
>
> {"value": 1, "ok": true}
curl -i -d '{"number":2,"value":"t"}' -X POST 192.168.1.46/gpio
> HTTP/1.0 200 NA
> Content-Type: application/json
>
> {"value": 0, "ok": true}
pip install esptool mpfshell
Build the docker image, compile and copy the firmware
MPY_PORT=esp8266 ./compile.sh
Write the firmware (Warning: this will erase the flash!)
./write_flash.sh [PORT]