Do you ever wonder how well you sleep? This app uses the Pebble's built in accelerometer to monitor your night's sleep and provide a graph of how much you moved overnight. In essence it's an attempt to see if Pebble can do some of what the dedicated motion sensors can do.
The watch face itself is very simple showing just date and time:
However in the background it monitors movement and periodically transmits this information to your iPhone or Android phone, where the Javascript application stores it using the Javascript persistent storage mechanism.
The configuration page from the Pebble iOS or Android app is used to show a graph of that information using the jqplot graphing tool, and allows resetting of the persistent storage for the next night's monitoring:
No data is stored anywhere other than on the phone.
Tests so far indicate it is not profligate with Pebble battery power, using the hardware to capture samples over 2.5 second intervals, processing these without display updates and then summarising and pushing to the phone every minute.
The source for this can be found here, including the web page which I have hosted (hopefully shouldn't be too much of an issue as this is only serving up HTML, CSS and javascript).
Regards,
James.