Skip to content

Instantly share code, notes, and snippets.

View curtis86's full-sized avatar
๐Ÿ™ƒ

Curtis Kneisel curtis86

๐Ÿ™ƒ
View GitHub Profile
# 1. Get MAC address - 'lescan' is persistent, look out for 'LYWSD02' and then CTRL+C and note MAC address:
hcitool lescan
# 2. Install python3 package:
pip3 install lywsd02
# 3. Python3 script:
#!/usr/bin/env python3