Skip to content
This repository has been archived by the owner on Feb 13, 2021. It is now read-only.
/ BluetoothEvent Public archive

Status bar app for Mac OS X. This is simple app to invoke your Python code when Bluetooth connection status is changed.

License

Notifications You must be signed in to change notification settings

goru/BluetoothEvent

Repository files navigation

BluetoothEvent

Status bar app for Mac OS X. This is simple app to invoke your Python code when Bluetooth connection status is changed.

Requirements

  • Python 2.7.x
  • Git
  • Mercurial (hg)

Dependencies

Dependencies will be resolved automatically by setup_requires keyword of setuptools.

Configure

You can modify checking intervals (INTERVALS) and callback (update_callback). There are defined in BluetoothEvent.py.

  • INTERVALS
    • List of interval time in sec.
  • update_callback
    • Callback function which is invoked when connection status is changed.
    • Device name, address and status (connected or not) will be passed from this app.

Build

Note. If you have use Python with pyenv, you need to reinstall Python with framework option. Please check this instruction.

You can clone and build BluetoothEvent.app with following commands. (This commands does NOT install any files to your system. Compiled files and depends packages will be saved to working directory.)

$ git clone https://github.com/lostman-github/BluetoothEvent.git
$ cd BluetoothEvent
$ python setup.py py2app

BluetoothEvent.app will be created in dist directory, if build process is successful.

Run

Run BluetoothEvent.app. (or run ./dist/BluetoothEvent.app/Contents/MacOS/BluetoothEvent in your terminal.) New icon will appear in status bar. Intervals and your devices are appeared as menu item in menu of status icon. Please select checking interval and devices. When you click device name, clicked item will be marked as checked. In next interval, this app will check connection status of checked devices. If status is changed, update_callback will be called.

About

Status bar app for Mac OS X. This is simple app to invoke your Python code when Bluetooth connection status is changed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages