tserong / lifx-hacks

LIFX Hacks
GNU Affero General Public License v3.0
46 stars 13 forks source link

confirm ssid/pass before continuing #4

Closed rsyring closed 1 year ago

rsyring commented 3 years ago

Thanks so much for this script! I have a suggestion for improvement:

Example:

ssid = sys.argv[1][0:32]
passwd = sys.argv[2][0:64]

print(f'ssid: {ssid}\npassword: {passwd}')
response = input('Continue? ')
if response != 'y':
    exit(1)

I had some shell special characters in my password and didn't realize it at first. Had to factory reset the bulb since the password that went through to the bulb wasn't accurate.