Skip to content

Instantly share code, notes, and snippets.

@DieterKoblenz
DieterKoblenz / homeytracking.py
Created September 26, 2016 11:16
Tracking script for Homey
#!/usr/bin/python
import bluetooth
import time
import urllib2
print "In/Out Board"
while True:
print "Checking " + time.strftime("%a, %d %b %Y %H:%M:%S", time.gmtime())
@DieterKoblenz
DieterKoblenz / findmac.py
Created September 26, 2016 11:08
Find your MAC
# simple inquiry example
import bluetooth
nearby_devices = bluetooth.discover_devices(lookup_names=True)
print("found %d devices" % len(nearby_devices))
for addr, name in nearby_devices:
print(" %s - %s" % (addr, name))