Skip to content
/r/thebutton Python client and bluetooth gatttool wrapper. Includes example code for controlling Bluetooth, Philips Hue and Arduino devices
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md

README.md

The Button Python Client

A simple library for querying the /r/thebutton button.
Includes a gatttool wrapper for interacting with bluetooth devices.

Bluetooth Example

In Action

Bluetooth Example 2

(Uses non-interactive gatt session without the gatt library, thanks to samph)

Philips Hue Example

(Thanks to kaloncheung124) ####In Action

Arduino Example

(Thanks to primehunter326)

thebutton.py

A WebSocketApp that automatically updates relevant button data.
Based on https://github.com/mfontanini/thebutton

Requirements

gatt.py

Basic Python wrapper for BlueZ gatttool.
Based on https://github.com/stratosinc/pygatt

Requirements

  • Linux: BlueZ (for gatttool)
  • Bluetooth 4.0 adapter
  • pexpect
  • Tested on Python 2.7+
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.