FAQ Database Discussion Community


Array breaking in Pebble C

c,arrays,pebble-watch,cloudpebble
I'm trying to create a simple dice-rolling application in Pebble using C on CloudPebble. I have an array of different die sizes you can scroll through using Up/Down, and you roll (currently just generate a random number, it'll get fancier later) using the middle button. There's also a label at...

Pebble.js Menu Items Slow to Render

javascript,pebble-watch,cloudpebble,pebble-js
I've made an interface to a server at work to verify whether print servers and printers are up dynamically, and feed it back to the Pebble. The functionality is fine, the issue I'm having is with the Menu. I'll load the menu, then start scrolling down, and suddenly the items...

Pebble watch face crashing on exit

pebble-watch,pebble-sdk,cloudpebble,pebble-js
I am making a very simple watch face my my Pebble. I have three text layers. One shows the time, on shows the date, and one shows the progress indicator for the day. Whenever I press a button to go to the menu or go to another watch face, the...

Unknown “Uncaught SyntaxError: Unexpected token <”

javascript,pebble-watch,pebble-sdk,cloudpebble,pebble-js
<div class="tab-pane active" id="connectedDevices"> <script> if (req.user.pebble.watch_token == String) { <i class="fa fa-check"> Pebble </i> } else{ <i class="fa fa-warning">No Pebble connected</i> }; </script> </div> Using local strategy and Pebble kit to verify if a user has a pebble connected. All the AUTH is working, just wondering why nothing is...

Is it possible to display a settings page and communicate with a phone using Pebble.js and CloudPebble?

pebble-sdk,cloudpebble
Is it possible to get user input on the phone and do something with it and then display some result onto the pebble watch using only Pebble.js and the CloudPebble? For this case I think I would need PebbleKit JS or PebbleKit Android/iOS in order to communicate between the phone...

Pebble JS Menu Items Disappear

pebble-watch,cloudpebble,pebble-js
Hi I started creating a pebble app using Pebble.JS. I installed the app on my Pebble and I notice that some of the menu items disappear and reappear on their own. Nothing too fancy about the code: for(var i = 0; i < quantity; i++) { var rest = data.Result.results[i];...

Declaring a Uint8Array in CloudPebble … says its undefined

javascript,pebble-watch,pebble-sdk,cloudpebble
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? ...

Pebble App Message send timed out

pebble-watch,pebble-sdk,cloudpebble
I am trying to run the pebble-faces example project from here (it downloads an image from URL and sends it to the watch face). I tried running the project on CloudPebble and the local C SDK emulator. I get the same result. I believe there is something wrong with sending...

Pebble Time Basalt Image Merge Pixel

pebble-sdk,cloudpebble
I am wondering if you could help me complete an update to the dayworld map watch face. I am using David Gianforte's applite code and updating for basalt. My goal is to show the day image and when it is night to show the night image. David's code already loops...

How do I read from file using pebble c?

c,file-io,pebble-watch,cloudpebble
I have tried using a function that would work in "regular" c: const char* getfield(char* line, int num) { const char* tok; for (tok = strtok(line, ";"); tok && *tok; tok = strtok(NULL, ";\n")) { if (!--num) return tok; } return NULL; } int main() { FILE* stream = fopen("v1.csv",...

How can I make a pebble.js app that runs without pebble's phone app running?

javascript,pebble-watch,cloudpebble,pebble-js
I have made an app that runs fine on the pebble when the phone is connected and the pebble app is running, but when the pebble app on the phone is closed, the app crashes, doesn't start and gives the error that it is "Disconnected - Run the phone app",...