Files
esphome-config/logs.sh
2025-11-26 19:09:26 +01:00

10 lines
317 B
Bash
Executable File

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