Outils pour utilisateurs

Outils du site


Development of Pebble Applications

Installing the SDK


$ <in>yaourt -S pebble-sdk<in>

A Debian package is available here.

Examples are in /opt/pebble/Examples

Associating via BlueTooh

According to https://github.com/pebble/libpebble#c-debian-additional-dependencies.

$ <in>sudo hciconfig  hci0 up</in>
$ <in>bluetoothctl</in>
[NEW] Controller AA:BB:CC:DD:EE:FF host-0 [default]
[bluetooth]# <in>scan on</in>
Discovery started
[CHG] Controller 60:D8:19:F9:3E:B2 Discovering: yes
[NEW] Device 00:11:22:33:44:55 Pebble 4455
[bluetooth]# <in>pair 00:11:22:33:44:55</in>
Attempting to pair with 00:11:22:33:44:55
[CHG] Device 00:11:22:33:44:55 Connected: yes
[CHG] Device 00:11:22:33:44:55 Modalias: bluetooth:v005Ep0001d0112
[CHG] Device 00:11:22:33:44:55 UUIDs:
[CHG] Device 00:11:22:33:44:55 Paired: yes
Pairing successful
[CHG] Device 00:11:22:33:44:55 Connected: no
[bluetooth]# quit
[DEL] Controller AA:BB:CC:DD:EE:FF host-0 [default]
$ <in>export PEBBLE_BTID=00:11:22:33:44:55 PEBBLE_ID=4455</in> # avoid having to use --pebble_id later
$ <in>sudo rfcomm bind 0 ${PEBBLE_BTID} 1</in>
$ <in>sudo ln -s /dev/rfcomm0 /dev/tty.Pebble${PEBBLE_ID}-SerialPortSe</in>

Alternatively, the Pebble can be reached through the phone app, with developer mode enabled.

$ <in>export PEBBLE_PHONE=</in>

Project lifecycle

$ <in>pebble new-project</in>
$ <in>pebble build</in>
$ <in>pebble install</in>


  1. Matthew Wiggins. Pebble SDK Watchface Tutorial. http://concentricsky.com/blog/2013/jun/pebble-sdk-watchface-tutorial
  2. PebMsg source code. http://pastebin.com/R9Uvpunv
  3. Patrick Catanzariti. Advanced Pebble Watch Configuration. http://www.sitepoint.com/advanced-pebble-watch-configuration/
  4. Damian Mehers. In depth: Pebble OAuth configuration using Node.js. https://blog.evernote.com/tech/2014/03/18/pebble-oauth/
tip/pebbledevelopment.txt · Dernière modification : 2014-11-26 10:31 de oliviermehani