first commit

This commit is contained in:
2025-01-02 18:18:44 +01:00
commit ec0038cde6
2 changed files with 72 additions and 0 deletions

8
flash.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [ -z "$1" ]; then
echo "usage: flash.sh <config.yaml> [/dev/tty-usb-device]"
elif [ -z "$2" ]; then
podman run --rm --privileged -v "${PWD}":/config -it ghcr.io/esphome/esphome run $1
else
podman run --rm --privileged -v "${PWD}":/config --device=$2 -it ghcr.io/esphome/esphome run $1
fi