Outils pour utilisateurs

Outils du site


Panneau latéral

Tips

Divers

Projets

Ham Radio

Machines

Research

Privé

Études

tip:pebbledevelopment

Development of Pebble Applications

Installing the SDK

ArchLinux:

$ yaourt -S pebble-sdk

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.

$ sudo hciconfig  hci0 up
$ bluetoothctl
[NEW] Controller AA:BB:CC:DD:EE:FF host-0 [default]
[bluetooth]# scan on
Discovery started
[CHG] Controller 60:D8:19:F9:3E:B2 Discovering: yes
[NEW] Device 00:11:22:33:44:55 Pebble 4455
[bluetooth]# pair 00:11:22:33:44:55
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:
        00001101-0000-1000-8000-00805f9b34fb
        0000110e-0000-1000-8000-00805f9b34fb
        00001200-0000-1000-8000-00805f9b34fb
[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]
$ export PEBBLE_BTID=00:11:22:33:44:55 PEBBLE_ID=4455 # avoid having to use --pebble_id later
$ sudo rfcomm bind 0 ${PEBBLE_BTID} 1
$ sudo ln -s /dev/rfcomm0 /dev/tty.Pebble${PEBBLE_ID}-SerialPortSe

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

$ export PEBBLE_PHONE=192.2.0.1

Project lifecycle

$ pebble new-project
$ pebble build
$ pebble install

References

  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 par oliviermehani