Developing for Pebble: Control cloud apps from your wrist
-
Upload
mark-heckler -
Category
Software
-
view
275 -
download
2
Transcript of Developing for Pebble: Control cloud apps from your wrist
![Page 1: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/1.jpg)
Developing for Pebble Control cloud apps from your wrist
Mark Heckler Developer, Developer Advocate, Java Champion, and Really Hoopy Frood
@MkHeck
![Page 2: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/2.jpg)
What is a Pebble?Original model
2012/2013
ePaper screen
Low resolution
Android AND iOS
INSANE battery life!
![Page 3: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/3.jpg)
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)
![Page 4: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/4.jpg)
Competitors
![Page 5: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/5.jpg)
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
![Page 6: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/6.jpg)
Pebble SDKDesktop IDE support
Android Studio
Xcode
Cloud IDE
C code
Runs on the watch
![Page 7: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/7.jpg)
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.
![Page 8: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/8.jpg)
app.js
![Page 9: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/9.jpg)
Main “objects”UI framework
Accel
Voice
Window
Element
Vibe
Light
Timeline (app launch via Timeline interface)
Wakeup (scheduled app activation)
![Page 10: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/10.jpg)
Window types
Window (dynamic): completely open to do your bidding
Card: displays a title, subtitle, banner image, & text
Menu: displays a menu ;)
![Page 11: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/11.jpg)
Standard: XHR/Ajax/REST
![Page 12: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/12.jpg)
Standard: WebSocket
![Page 13: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/13.jpg)
Cloud Pebble
![Page 14: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/14.jpg)
Code
![Page 15: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/15.jpg)
Emulator, logs
![Page 16: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/16.jpg)
Push to (actual) Pebble
![Page 17: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/17.jpg)
App windows: a quick look
![Page 18: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/18.jpg)
App menus: a quick look
![Page 19: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/19.jpg)
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
![Page 20: Developing for Pebble: Control cloud apps from your wrist](https://reader031.fdocuments.net/reader031/viewer/2022030303/587b24b71a28ab736c8b7515/html5/thumbnails/20.jpg)
In conclusion…
IoT & cloud? Chocolate & peanut butter
Thank you for participating!
@MkHeck