Memention Blog

Yak shaving a Pebble


Update! I have now integrated this into httpebble. I was using httpebble and to get a screenshot I had to disable it and enter mockup data. But by integrating it I can still use httpebble and also grab a screenshot at the same time, and easily keep all in the same code. This is now the master branch of pblindex and can be found here. The modified iPhone client of httpebble can be found here. I also made a demo with another watchface by adding http capture to it, this can be found here (branch http_capture). Youtube demo

I never thought I’d be posting this soon again. But coding for the Pebble was pretty fun. Think I love these low-end devices. There are fun challenges to get all these small devices to do the bidding.

Well, I submitted the result from the last post to www.allpebble.com and I was going to submit it to www.mypebblefaces.com but stumbled on lacking a screenshot. Sure I could mockup one in Pixelmator. Na, that’s no fun so I started to hack the Pebble a little to see if I could make a screenshot, somehow. Well, lo and behold, I found a hack to find the app framebuffer on the Pebble. It wasn’t particularly hidden I can add.

So I wrapped this together into a little code piece to put in the Pebble app and a receiver app to be run on the iPhone.

An example use can be found here (branch capture on https://github.com/epatel/pblindex). There you can also find the files pblcapture.h and pblcapture.c which should go in the Pebble app.

iphone screenshot

The source code for the iPhone app is available at github with a short description in the README.

Youtube demo

Yeah, I might add that this is totally hacking and I can’t promise it will work after the next Pebble firmware update.

Maybe it’s time to submit to www.mypebblefaces.com now…done!

Happy hacking!

By Edward Patel, 20 Jul 2013




Show comments

Archive

Getting there13 Mar 2014
Throwing pebbles12 Jul 2013
Provision this!30 Aug 2012
Break what?18 Aug 2011
That old thing04 May 2011
Removing a Step15 May 2010
Make It Work22 Feb 2010
KISS server31 Jan 2010
tig on Mac12 Dec 2009
The XML Runner31 Oct 2009
Get some software from Memention
Powered by Jekyll and Disqus.
Copyright © 2010-2013 Memention AB