Questions tagged [pebble-sdk]

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.

230 questions
4
votes
1 answer

Why does my Pebble watchface not update the time every minute?

I'm learning watchface development. I have been following the Pebble guide closely, so 80% of my code is the same as their sample code. I'm probably missing something very small, but my face does not seem to be correctly subscribed to the time…
Antrikshy
  • 2,918
  • 4
  • 31
  • 65
4
votes
2 answers

PebbleKit JavaScript send image to Pebble

Is it possible to send a images to the Pebble watch using PebbleKit Javascript sendAppMessage. My idea is to load an image from the web and send it to the watch and display them there. If an image is not possible directly then I was thinking of…
ryuutatsuo
  • 3,924
  • 3
  • 27
  • 29
3
votes
1 answer

Is free()ing memory on exit() really necessary in Pebble?

In the More C Concepts (Google webcache, not on Internet Archive), I read the following: When the app is exiting or when the buffer is no longer needed, the memory must be freed for applications to use: // Free dynamically allocated…
binki
  • 7,754
  • 5
  • 64
  • 110
3
votes
1 answer

Start Pebble app from a watchapp

The Pebble Docs clearly describe how to start a watchapp on the Pebble from an Android app, but I cannot find instructions on how to start an Android app from a watchapp. Is that possible, and how?
Eir
  • 1,003
  • 9
  • 24
3
votes
2 answers

initializer element not constant?

I am relatively knew to C and only learning pieces of it to publish a Pebble C/PebbleKitJS app to track buses. So far I have the data being processed on a Node server, and I am getting ready to have the data processed by a JS File. MY one problem…
AgentSpyname
  • 105
  • 1
  • 9
3
votes
1 answer

Overriding Gradle Remote Dependency's targetSdkVersion in Android Studio

So today we did a release of an app and unfortunately we didn't notice a new permission had been added which is android.permission.READ_PHONE_STATE. A few users pointed out that a new permission category had been added to the app which was Device…
3
votes
2 answers

What does this dot syntax mean in the Pebble watch development tutorial?

I came across following code in Pebble watch app development tutorial: // Set handlers to manage the elements inside the Window window_set_window_handlers(s_main_window, (WindowHandlers) { .load = main_window_load, .unload =…
binW
  • 13,220
  • 11
  • 56
  • 69
3
votes
1 answer

Pebble SDK/SimplyJS not honoring the \t character

I'm having an interesting time trying to get my Pebble watch to honor the escape sequence character \t when pushing data to my watch (using SimplyJS). The following snippet is the code that I have been…
Dave Cooper
  • 10,494
  • 4
  • 30
  • 50
3
votes
1 answer

How to display a float on the Pebble

I am building an app that displays how many miles you have gone and I want it to have 3 decimal places. So "0.435 miles" for instance. I have tried the code below: static char stopwatch_miles[50]; snprintf(stopwatch_miles, sizeof(stopwatch_miles),…
Jaret Burkett
  • 123
  • 2
  • 7
3
votes
3 answers

Including an external javascript library in pebble js file?

Is there any way I can include an external JS library in my pebble code? Conventionally on a webpage I would do this in my head tags: But in…
Ravin Sardal
  • 717
  • 1
  • 13
  • 23
3
votes
4 answers

snprintf + Pebble

I'm developing for Pebble and I'm off to a rough start. I'm trying to populate a text_layer with 2 strings and 2 values, something like this: WAIT AVG: 3 MAX: 5 Since malloc is not supported in Pebble SDK, I can't use sprintf, hence I'm stuck with…
gh0st
  • 214
  • 3
  • 15
2
votes
1 answer

Pebble SDK with Ionic or similar cross platform environment

is it possible to develop cross platform apps with ionic (2) or similar cross platform frameworks for the pebble watch with the pebble sdk? The SDK is available for native android / iOS, so a possible way is to use that SDK library. But how should I…
Marco Rehmer
  • 1,033
  • 2
  • 12
  • 32
2
votes
3 answers

How to pass a pointer to an array without decay, and use the 'reference' in a function for barbarrians?

I've read many discussions on passing arrays to functions. They seem to be written for people who are fluent in C. I am a barbarian not yet fluent in C. From what I've read in other discussions it should be possible to pass an array without pointer…
kjl
  • 311
  • 3
  • 13
2
votes
1 answer

setting the configuration page to specific defaults already saved in the Pebble 3.0 SDK

I am trying to have my watch face's configuration page to default to what the user has already saved in the configuration page previously. Currently, I have a watch face that can have a choice of 15 colors from a list via the settings configuration…
OscarTheGrouch
  • 2,374
  • 4
  • 28
  • 39
2
votes
1 answer

libgthread not up-to-date when running qemu emulator

I'm trying to run the Pebble emulator for the first time with one of my Pebble apps, and I'm getting the following message: $ pebble install --emulator aplite Couldn't launch emulator: dyld: Library not loaded:…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
1
2
3
15 16