libpebble is an open source python library for communicating with the Pebble watch.
libpebble contains a Pebble class that can be used for
Also included is a command line tool called p.py that allows you to use most features of the Pebble class.
libpebble was first developed on Mac OS X, but it also works in some shape or form on Linux and Windows.
Everything works as expected.
Currently, autodetection is only implemented for Mac OS X systems.
libpebble relies on pyserial, so please make sure it is installed before moving on.
The main version of libpebble is currently hosted on Hexxeh's github account.
If you wish to contribute to libpebble, fork it from Github and send pull requests.
To download the source using git, open terminal, move to where ever you would like to download the source and type
git clone email@example.com:Hexxeh/libpebble.git.
To download a zip of the source click here.
p.py is a command line interface for libpebble
If you get stuck, type
p.py -h for help.
By default, p.py automatically detects Pebbles connected to your computer. However, it is also possible to set which pebble to use with the
--pebble_id argument. This allows you to select a pebble by the last four digits of the Pebble's MAC address.
p.py --pebble_id 1234 COMMAND
||pings the Pebble.|
||loads a compiled app bundle to the Pebble.|
||loads firmware onto the Pebble.|
||prints logs sent from a connected watch.|
||lists apps installed on the Pebble|
||removes the app installed at the given app index.|
||resets the Pebble remotely.|
||sends an email notification to the Pebble|
||sends an SMS notification to the Pebble|
||prints the time stored on Pebble|
||sets the time stored on Pebble|
||allows you Pebble to control the music app|