Skip to content

Instantly share code, notes, and snippets.

View timawesomeness's full-sized avatar

Caylin timawesomeness

View GitHub Profile
#!/usr/bin/python3
#################################################################
# Simple script to generate an Eddystone URL beacon as Bluetooth data readable by btmgmt
#
# To use: ./geneddystonebeacon.py [-p POWER] URL where POWER is an optional integer from -100 to 20 (per the Bluetooth spec) and
# URL is a URL including http(s):// to be broadcast by the beacon. Be aware that Physical Web (specifically Google Nearby)
# will not show the beacon unless you use https.
#
# To broadcast a beacon with that string: (as root)