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
0
votes
1 answer
Declaring a Uint8Array in CloudPebble ... says its undefined
I need to make a Uinte8Array. I am using CloudPebble and it says that Uint8Array is not defined.
How can I declare this object in CloudPebble?
0
votes
1 answer
gbitmap_create_from_png_data() fails to load image
I am developing an app that downloads a png image from internet and displays it. For some reason gbitmap_create_from_png_data() fails to load most images with following error message:
[ERROR] gbitmap_png.c:49: PNG memory allocation failed
[ERROR]…

binW
- 13,220
- 11
- 56
- 69
0
votes
1 answer
pebble-sdk - are applications for pebble STEEL transferable to TIME
I need to write a Pebble simple application and I need to know if I can develop it once for both Pebble STEEL and TIME. So far I have theoretical background found here http://developer.getpebble.com/sdk/migration-guide/.
Is it enough to simply use…

John Overiron
- 517
- 1
- 5
- 20
0
votes
1 answer
JS not executed on Pebble Time with "notifyWithAppMessage: no delegate" in the app logs
I have a perfectly working (Pebble Classic) app on the Pebble app store. However, when installed on Pebble Time, the JS is not always executed (or takes too long to kick in) and in the logs I can see "[PHONE] pebble-app.js:?: notifyWithAppMessage:…

Marcel
- 1
0
votes
1 answer
Redefining an Enum/ Global Enum Value in C
In a previous question I asked, I found out I had to use an enum for whatever reason to define my values in the following source code:
enum { key0_buffer = 0};
void process_tuple(Tuple *t)
{
//Get key
int key = t->key;
//Get integer…

AgentSpyname
- 105
- 1
- 9
0
votes
1 answer
pebble-app.js randomly fails to start
Some times my pebble app fails to launch and I see the following print in the logs:
[PHONE] pebble-app.js:?: {'runhost client uuid' = 625fe469-ed20-48a7-a786-19a37200cad2}:{'webapp uuid' = 9f1e3aed-98f8-41ec-9bff-2c15fa4f3c24}:…

binW
- 13,220
- 11
- 56
- 69
0
votes
1 answer
Pebble full screen slides
I want to use the Panel dots UI pattern in my Pebble app, which is mentioned here.
How can I use it?
I can not find anything about it inside the developer documentation.

roschulze
- 505
- 2
- 6
- 21
0
votes
1 answer
Pebble JS SDK: how to catch & react on an external app notification
I have a weather app which sends a notification about an upcoming rain.
This is a standalone app, runs on Android/iOS.
Is there a way to catch a notification from the app and show some info on the watch screen with Pebble JS SDK?

Igor
- 2,834
- 2
- 26
- 44
0
votes
1 answer
How do I get this clock to update every minute with the ticker service?
I am making a super simple watchface for the pebble using SDK 2. The watchface compiles and install but the clock does not update. I have attached my code below. Any ideas?
#include
static Window *s_main_window;
static TextLayer…

Metaxu
- 1
0
votes
1 answer
Pebble configuration page communications not responding
I'm creating my first watchface which requires a configuration page where two strings can be stored (a title and a message).
I'm not too familiar with all the communication things because there aren't really any full on examples out there but I've…

Barry Michael Doyle
- 9,333
- 30
- 83
- 143
0
votes
1 answer
Iterative MenuLayer Pebble
I am trying to create an app on pebble using MenuLayer. My intention is to create Menu's and then sub-menus using the MenuLayer.
I did some basic implementation using "menu_layer_set_callbacks" method and registering callbacks methods for each…

blackbug
- 1,098
- 3
- 13
- 40
0
votes
0 answers
Unterminated character class using square brackets
I'm pulling in a web data source and need to clean it up. In Pebble JS I've used the following which works on a standard web page:
var arr = JSON.parse('[' + str.replace(/\]\[/gi, '],[') + ']');
console.log(arr);
This returns the error…

keeganthewelsh
- 1
- 1
0
votes
1 answer
Will app_message_outbox_send() cause the Pebble to crash if there is no companion app?
I'm very new to Pebble Development, and I'm having trouble finding an answer to this. I'm wondering if you try to use app_message_outbox_send(); and you don't have a companion app, will the Pebble app crash? I'm asking because that function call…

Hudson Worden
- 2,263
- 8
- 30
- 45
0
votes
0 answers
menuIcon not showing
I'm building my first watchface for pebble and everything has built pretty good now I'm trying to pretty it up and add a menuIcon so it's not a blank image when I look in the pebble app drawer. Needless to say I ran into a bit of a snag and I can't…

macintoshPrime
- 244
- 4
- 12
0
votes
1 answer
Pebble stopwatch change in font size bug
I have been trying to get an app working on my pebble for a while now and I finally got it to work. It's a sports counter that keeps track of the score for both teams and also has a built in stop watch in the middle. Everything works as it should…

user4694897
- 15
- 4