The Pebble SDK is a software development kit for the Pebble smartwatch and the Pebble App Store. It is generally installed on a computer and includes all of the libraries available to developers for Pebble.
Questions tagged [pebble-sdk]
230 questions
16
votes
1 answer
How to create a form in pebble watch
I am creating a pebble watch app and I would like to create a form where the user could give input for certain parameters.
Something like this would serve me well enough, but I cannot find a way to create it in the documentation (maybe I don't know…

cs04iz1
- 1,737
- 1
- 17
- 30
14
votes
4 answers
Pebble Watch Faces
I'm trying to create my own Pebble watch faces. It appears no one has done this yet and there's no SDK.
So far I've figured out that the watch faces are hosted here:
http://pebble-static.s3.amazonaws.com/watchfaces/index.html
Each watch face is a…

user2057786
- 169
- 1
- 4
10
votes
1 answer
Logging enums on the pebble watch
When i log an error on the Pebble like this:
static void message_dropped(AppMessageResult reason, void *context) {
APP_LOG(APP_LOG_LEVEL_DEBUG, "Message dropped. Reason: %d", reason);
}
i just get the int value of the error message. Is there an…

r-dent
- 685
- 8
- 22
8
votes
2 answers
How to convert int to string with Pebble SDK in C
Just got my Pebble, and I am playing around with the SDK. I am new to C, but I know Objective-C. So is there a way to create a formatted string like this?
int i = 1;
NSString *string = [NSString stringWithFormat:@"%i", i];
And I can't use sprintf,…

David Gölzhäuser
- 3,525
- 8
- 50
- 98
6
votes
2 answers
What is this C function syntax?
I'd say I have intermediate experience with programming in c, however I've never seen this syntax used before to make a function. This reminds me of the syntax for a JQuery event. Overall, I'd like a detailed explanation of what this is and what the…

lavacode
- 155
- 2
- 9
6
votes
0 answers
Unable to add fullscreen bitmap to Pebble due to window size
I'm using Pebble SDK 2 and running into graphics problems.
I'm trying to add a full screen graphic with the dimensions 144 x 168, however, when I do-- the bottom gets clipped.
Investigating further- the root layer has the dimensions of 144 x 152…

makala.bay
- 61
- 2
6
votes
2 answers
Pebble JS, GitHub, and Image Resources
I'm working on a pebble.js project that is loading from a GitHub repo. I essentially am writing my code locally, pushing up to GitHub, and then pulling into CloudPebble to build as my computer is unfit to run the SDK. CloudPebble sees my image…

phatskat
- 1,797
- 1
- 15
- 32
6
votes
1 answer
XMLHttpRequest fails basic authentication
Any idea why XMLHttpRequest with correct credentials in Pebble JS Framework fails basic authentication on Android but works in iOS?
Exactly the same code, along the lines of:
var req = new XMLHttpRequest();
req.open(method, url, true, user,…

Yuriy Galanter
- 38,833
- 15
- 69
- 136
6
votes
4 answers
How to test app without pebble watch?
I have to add a feature for the Pebble smart watch in my android app. Is there any cloud or emulators available to test Pebble watch coding? How can I test my app without a Pebble watch ?

Gayathiri
- 427
- 1
- 4
- 9
6
votes
1 answer
Accessing strings in AppMessage array on the pebble
I'm building a internet connected BitCoin app. To watch the ticker info from different bitcoin markets.
Everything works. Now I want to send a list of available markets down to the watch to be displayed as a menu.
JSON to be sent:
{"markets":…

GusOst
- 4,105
- 3
- 19
- 28
5
votes
2 answers
Setting up pebble sdk with jet brains cLion?
I would like to develop for the pebble using CLION (jetbrains c/c++ IDE). I am aware of cloud pebble , and would still like to use Clion. Could anybody tell me how to set it up so that :
I get auto complete for pebble sdk functions
When I click on…

harveyslash
- 5,906
- 12
- 58
- 111
4
votes
1 answer
Can someone explain part of this code found in the Pebble C Watchface tutorial?
I'm looking into the Pebble C watch face tutorial found here https://developer.getpebble.com/tutorials/watchface-tutorial/part1
The part of code in question is here:
static void init() {
// Create main Window element and assign to pointer
…

ekeen4
- 352
- 1
- 4
- 10
4
votes
0 answers
How to pop to main window in Pebble app?
Is there any way to pop to root window (main window or very first window on stack).
Ex: I have 4 windows say 1,2,3,4. "1" is being my root window and I traverse to 4th window. Now on some action event I want to Jump Back to Window 1 directly.
I…

iLearner
- 1,670
- 2
- 19
- 45
4
votes
1 answer
Transparency in layers on Pebble Time using alpha channel
I want to precache some bitmaps and then create a series of layers with small details. e.g. hands of watch. I guess this can be done by me manually combining bitmaps respecting the .a channel and sending it in to the BitmapLayer. But I was…

Ajaxharg
- 2,974
- 2
- 18
- 19
4
votes
2 answers
JSON won't compile, gives: "Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '['" error
Can someone please tell me whats wong with this code? Ive tried everything and don't know why it keeps giving me this error:
Parse error on line 3:
...", "shortName": “Simple”, "longN
----------------------------------------------^
Expecting…

pjtnt11
- 495
- 2
- 5
- 22