Pebble camping mode

We should pull this conversion logic into a utility class somewhere.