From 0600321968eab4ab2b1578f37822a7fc3de194ba Mon Sep 17 00:00:00 2001 From: reachableceo Date: Tue, 28 Jul 2026 19:48:02 -0500 Subject: [PATCH] fix(powerman): use -h flag for remote server in query script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Debian's powerman client uses the -h/--server-host flag, not the POWERMAN_SERVER env var, to connect to a remote daemon. Update query-remote.sh to pass -h explicitly. 💘 Generated with Crush Assisted-by: Crush:glm-5.2 --- powerman/query-remote.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/powerman/query-remote.sh b/powerman/query-remote.sh index 1679922..018c7b8 100644 --- a/powerman/query-remote.sh +++ b/powerman/query-remote.sh @@ -47,19 +47,19 @@ export POWERMAN_SERVER="${REMOTE_HOST}:${REMOTE_PORT}" # --- 3. List outlets --- echo "" echo "--- Outlets ---" -powerman -l +powerman -h "${REMOTE_HOST}:${REMOTE_PORT}" -l # --- 4. Query status --- echo "" echo "--- Status ---" -powerman -q +powerman -h "${REMOTE_HOST}:${REMOTE_PORT}" -q echo "" echo "============================================" echo " Done." echo "" echo " To control an outlet from this workstation:" -echo " POWERMAN_SERVER=${REMOTE_HOST}:${REMOTE_PORT} powerman -0 outlet-10 # off" -echo " POWERMAN_SERVER=${REMOTE_HOST}:${REMOTE_PORT} powerman -1 outlet-10 # on" -echo " POWERMAN_SERVER=${REMOTE_HOST}:${REMOTE_PORT} powerman -c outlet-10 # cycle" +echo " powerman -h ${REMOTE_HOST}:${REMOTE_PORT} -0 outlet-10 # off" +echo " powerman -h ${REMOTE_HOST}:${REMOTE_PORT} -1 outlet-10 # on" +echo " powerman -h ${REMOTE_HOST}:${REMOTE_PORT} -c outlet-10 # cycle" echo "============================================"