Created
November 1, 2024 18:01
-
-
Save fredrike/bda63ca07bf62a87d69fe48fffb67d74 to your computer and use it in GitHub Desktop.
update coit on Shelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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