libpebble icon indicating copy to clipboard operation
libpebble copied to clipboard

how to use libpebble

Open tristan-k opened this issue 9 years ago • 2 comments

I'm trying to use libpebble from https://github.com/Hexxeh/libpebble in order to interact with my mac. I successfully installed it and I'm able to run python pebble.py, which gives me some instructions:

$ python pebble.py -h
usage: pebble.py [-h] [--debug] [--version]
             {new-project,convert-project,build,clean,install,install_fw,ping,list,remote,rm,current,uuids,logs,repl,screenshot,launch}
             ...

Pebble SDK Shell

optional arguments:
  -h, --help            show this help message and exit
  --debug               Enable debugging output
  --version             show program's version number and exit

Command:
  Action to perform

  {new-project,convert-project,build,clean,install,install_fw,ping,list,remote,rm,current,uuids,logs,repl,screenshot,launch}
    new-project         Create a new Pebble project
    convert-project     convert an existing Pebble project to the current SDK.
                        Note: This will only convert the project, you'll still
                        have to update your source to match the new APIs.
    build               Build your Pebble project
    clean               Clean your Pebble project
    install             Install your Pebble project to your watch
    install_fw          Install a Pebble firmware
    ping                Ping your Pebble project to your watch
    list                List the apps installed on your watch
    remote              Use Pebble's music app as a remote control for a local
                    application
    rm                  Remove an app from your watch
    current             Get the uuid and name of the current app
    uuids               List the uuids and names of installed apps
    logs                Continuously displays logs from the watch
    repl                Launch an interactive python shell with a `pebble`
                        object to execute methods on.
    screenshot          take a screenshot of the pebble
    launch              Launch an application.

The README.md refers to a p.py wrapper which is removed with commit a00d06cd (https://github.com/Hexxeh/libpebble/commit/a00d06cdcf05a2f5a817da78fcbfcd24c9b007f8). There is no further knowledge about how to utilize libpebble.

Does someone have experience with libpebble and point me to right direction? Please update the README.

tristan-k avatar Dec 10 '14 13:12 tristan-k

I too am interested in this.

I have 2 use cases

  1. send data to the pebble for display
  2. on a button press on the pebble, initiate a program on a Linux PC.

st599 avatar Jan 01 '15 17:01 st599

same question here

ghost avatar Jun 09 '15 14:06 ghost