developing for pebble: control cloud apps from your wrist
TRANSCRIPT
Developing for Pebble Control cloud apps from your wrist
Mark Heckler Developer, Developer Advocate, Java Champion, and Really Hoopy Frood
@MkHeck
What is a Pebble?Original model
2012/2013
ePaper screen
Low resolution
Android AND iOS
INSANE battery life!
History & models
Pebble
Pebble Ste
el
(2013/2014
)
Pebble Tim
e
Pebble Tim
e Steel
(2015)
Pebble Tim
e Round
(2015)
Pebble 2
Pebble Tim
e 2
(2016)
Competitors
As a developer, why care?
Write once (sort of), run with Android or iOS phone
Write in C or JavaScript
Battery life key for resource-intensive apps
Pebble SDKDesktop IDE support
Android Studio
Xcode
Cloud IDE
C code
Runs on the watch
Pebble.jsDesktop IDE support
Cloud IDE
Runs on the phone (accelerometer, GPS, storage)
JavaScript code
Full access to UI elements, animations, etc.
Sync & async HTTP requests, WebSocket, etc.
app.js
Main “objects”UI framework
Accel
Voice
Window
Element
Vibe
Light
Timeline (app launch via Timeline interface)
Wakeup (scheduled app activation)
Window types
Window (dynamic): completely open to do your bidding
Card: displays a title, subtitle, banner image, & text
Menu: displays a menu ;)
Standard: XHR/Ajax/REST
Standard: WebSocket
Cloud Pebble
Code
Emulator, logs
Push to (actual) Pebble
App windows: a quick look
App menus: a quick look
Useful linkshttps://www.pebble.com/
https://cloudpebble.net/ide/
https://forums.pebble.com/
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
http://www.slideshare.net/HecklerMark/developing-for-pebble-control-cloud-apps-from-your-wrist
In conclusion…
IoT & cloud? Chocolate & peanut butter
Thank you for participating!
@MkHeck