Questions tagged [pebble-js]

Pebble.js lets you write beautiful Pebble applications completely in JavaScript.

Pebble.js applications run on your phone. They have access to all the resources of your phone (internet connectivity, GPS, almost unlimited memory, etc). Because they are written in JavaScript they are also perfect to make HTTP requests and connect your Pebble to the internet.

74 questions
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
3
votes
1 answer

How to remove a window's onclick event (Pebble.js)

I am writing a Pebble app in Pebble.js which needs to run different functions when the same button is pressed at different times throughout the app. I can easily associate a function with a button: dispWindow.on('click', 'up', function(e) { …
dybm
  • 126
  • 1
  • 2
  • 8
3
votes
1 answer

Date formatting and manipulation in PebbleJS

I'm writing an app using PebbleJS in CloudPebble and would like to have functionality similar to that provided by Moment.js and xdate.js. Specifically, I am interested in: turning a datetime into a string using a custom format string adding and…
rossng
  • 318
  • 3
  • 11
3
votes
2 answers

Pebble.js WatchApp displays: "Disconnected - run the pebble phone app"

I can't find much documentation around this issue. All other running apps on my pebble have a connection to my phone, and work as expected. However, a Pebble.js application I'm currently working on simply displays Disconnected - run the pebble…
bvulaj
  • 5,023
  • 5
  • 31
  • 45
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

MAC OS X Pebble SDK 3.0 error building: Compilation error InverterLayer

A few months ago I was running pebble SDK 3.0 on my mac and it worked perfectly, I ran my apps with the basalt emulator. Recently I cleaned(wiped) my mac because it was running slow. Today I was going to run my apps again but I obviously didn't have…
Kevin Cohen
  • 1,211
  • 2
  • 15
  • 22
2
votes
1 answer

Running 'pebble install' gives error on Mac

I am trying to run pebble install on Mac. I have already installed the Pebble SDK, and I can start the Pebble simulator... I cannot however start the phone simulator. When I cd'd into the directory of my app and ran pebble install, it returned…
felixpackard
  • 579
  • 7
  • 21
2
votes
2 answers

Unknown "Uncaught SyntaxError: Unexpected token <"