tserong / lifx-hacks

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

Great Work! #2

Closed troystanway closed 5 years ago

troystanway commented 5 years ago

Words cannot describe how much I appreciate your work on this script. Had an original bulb that I just could not connect to my WiFi and you've saved me from binning it!

I just wanted to let you know, to get mine to work I had to do 2 things, that might be worth mentioning in the readme.

  1. I edited the file to include my SSID and password rather than launching the script with sys arg. Because my SSID has a space in it. I tired _ in its place, but no %20.

  2. I edited /etc/ssl/openssl.cnf to MinProtocol = TLSv1.0 after I got an SSL error

tserong commented 5 years ago

Thanks! It's really great to get positive feedback like this :-)

For SSIDs with spaces, quoting or escaping the SSID should work (e.g.: 'SSID with space' or SSID\ with\ space). I'll add a note about the MinProtocol setting.

AndrewBelt commented 1 year ago

The script wouldn't connect for me (probably incompatible OpenSSL versions) so I just dumped the packet to a file with

with open("onboard.packet", "wb") as f:
    f.write(onboard_packet)

and ran openssl s_client -connect 172.16.0.1:56700 < onboard.packet and it worked!