From fcca5c1d399900c6ae42231f3c81a7b69e37593a Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 3 Jun 2026 03:00:40 -0600 Subject: [PATCH] Add ESP32 HTTP bring-up test script --- tools/esp32_bringup_check.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 tools/esp32_bringup_check.sh diff --git a/tools/esp32_bringup_check.sh b/tools/esp32_bringup_check.sh new file mode 100755 index 0000000..e5625dc --- /dev/null +++ b/tools/esp32_bringup_check.sh @@ -0,0 +1,29 @@ +#!/usr/bin/env bash +set -euo pipefail + +BASE_URL="${1:-http://192.168.4.1}" + +echo "Testing ESP32 at: $BASE_URL" +echo + +echo "1. Status:" +curl -s "$BASE_URL/status" | python3 -m json.tool + +echo +echo "2. Starlink ON:" +curl -s "$BASE_URL/relay/starlink/on" | python3 -m json.tool + +echo +echo "3. Starlink OFF:" +curl -s "$BASE_URL/relay/starlink/off" | python3 -m json.tool + +echo +echo "4. Fridge ON:" +curl -s "$BASE_URL/relay/fridge/on" | python3 -m json.tool + +echo +echo "5. Fridge OFF:" +curl -s "$BASE_URL/relay/fridge/off" | python3 -m json.tool + +echo +echo "ESP32 HTTP bring-up test complete."