Files
hermes-skillsharing/skills/tasmota/scripts/verify_tasmota.sh
T

6 lines
295 B
Bash
Executable File

#!/usr/bin/env bash
# Verify Tasmota plug reachable via HTTP
set -e
IP="${1:-192.168.1.42}" # override via $1 or default
timeout 2 curl -s -o /dev/null -w '%{http_code}' "http://$IP/" | grep -q '^2' && echo "OK: $IP reachable" || echo "FAIL: $IP not reachable (check IP, Tailscale, or network)"