From 41dd23aa01cd1a45d571bf0bbb799e733f00fc52 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Sun, 14 Apr 2019 14:53:32 +0200 Subject: [PATCH] Updated shelly upgrade shell script --- shell_scripts/shelly_upgrade.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/shell_scripts/shelly_upgrade.sh b/shell_scripts/shelly_upgrade.sh index 816d12e2..977c0513 100755 --- a/shell_scripts/shelly_upgrade.sh +++ b/shell_scripts/shelly_upgrade.sh @@ -4,17 +4,21 @@ HOST=$(awk '/mqtt_host/ { print $2 }' ../secrets.yaml) USER=$(awk '/mqtt_user/ { print $2 }' ../secrets.yaml) PASSWORD=$(awk '/mqtt_password/ { print $2 }' ../secrets.yaml) SHELLY_ID=( - 55980F - 135454 - 13572B - 559C49 + shellyswitch-55980F + shellyswitch-135454 + shellyswitch-13572B + shellyswitch-559C49 + shelly1-24D1EE + shelly1-93B27D + shellyswitch25-7457D8 + shellybulb-BC8610 ) echo "Upgrade Shelly Firmware" for i in "${SHELLY_ID[@]}" do - echo mosquitto_pub -h $HOST -d -u $USER -P $PASSWORD -t shellies/shellyswitch-$i/command -m update_fw + echo mosquitto_pub -h $HOST -d -u $USER -P $PASSWORD -t shellies/$i/command -m update_fw done echo "Done" -- 2.47.3