Skip to content

Instantly share code, notes, and snippets.

@fredrike
Created November 1, 2024 18:01
Show Gist options
  • Save fredrike/bda63ca07bf62a87d69fe48fffb67d74 to your computer and use it in GitHub Desktop.
Save fredrike/bda63ca07bf62a87d69fe48fffb67d74 to your computer and use it in GitHub Desktop.
update coit on Shelly
NEW_IP=192.168.1.5
for HOST in 39 40 23 32 36 31 33 29 37 24 35; do
curl "http://192.168.1.$HOST/settings" --data-raw "coiot_peer=$NEW_IP%3A5683" && \
curl "http://192.168.1.$HOST/reboot"
echo $HOST
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment