Simply Light Updates

Published March 22, 2016 in The Voyage of a Software Developer by Brian Douglass
Filed under Pebble, Releases

I just finished a round of minor updates to my Pebble watchface, Simply Light. Most of these changes are just code changes to use my new NodeJS modules: WeatherMan.

Unfortunately using a browserified module in Pebble can be problematic, but only on iOS. The first problem was the lack of promises, which was easily solved by using a promise polyfill. The second problem was weird errors coming from one of the polyfills that browserify uses. I solved this by tricking the polyfill into thinking it was running in a non-browser environment:

window.location = {};
document.createElement = null;

Find Simply Light in the app store