Current location

narf Source control manager Git

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2014-12-30 21:11:06 +1100
committerOlivier Mehani <shtrom@ssji.net>2014-12-30 21:11:21 +1100
commita9c038244c7537e9fbce5b3d8717c1106f009e93 (patch)
tree6f5bae86f5a492423236359b3caf4fcb8213ec0a
parentba6dea61af134dcc887acb3169d820829dbbc23f (diff)
Add README, screenshot, boilerplate and comment
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rw-r--r--README.md28
-rw-r--r--resources/images/screenshot.pngbin0 -> 511 bytes
-rw-r--r--src/MinistryOfSillyWatches.c37
3 files changed, 65 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..7f2ca6b
--- /dev/null
+++ b/README.md
@@ -0,0 +1,28 @@
+= Ministry of Silly Watches =
+
+A silly watchface for Pebble smart watches.
+
+![A tribute to John Cleese by goonofhazzard on DeviantArt][silly-walk]
+
+Inspired by the [Monty Python's Ministry of Silly Walks sketch][wp-silly-walks],
+and in the ilk of [some physical watch][tg-silly-walk-watch], this watchface
+uses the actual steps of John Cleese's gait to show the time.
+
+![John's Cleese's Silly Walk, by Jazeen Hollings][id]
+
+Though reordered for better legibility (look where the lifted foot is pointed),
+the postures indicate the hour, and the cane points to the minutes.
+
+![It is 2.37-ish][screenshot]
+
+A short double vibration is also given every hour.
+
+* Copyright (c) 2014, Olivier Mehani <shtrom@ssji.net> (BSD Licensed)
+* Images from Jazeen Hollings and goonofhazzard on DeviantArt.
+* Main code repo at http://scm.narf.ssji.net/git/MinistryOfSillyWatches/
+
+[silly-walk]: resources/images/sillywalks/The_ministry_of_silly_walks.jpg "The Ministry of Silly Walks, by goonofhazzard on DeviantArt: http://goonofhazzard.deviantart.com/art/The-ministry-of-silly-walks-7665679"
+[wp-silly-walks]: https://en.wikipedia.org/wiki/The_Ministry_of_Silly_Walks "The Ministry of Silly Walks. Wikipedia"
+[tg-silly-walk-watch]: https://www.thinkgeek.com/product/16bc/?srp=32 "Monty Python Ministry of Silly Walks Watch. ThinkGeek"
+[silly-gait]: resources/images/sillywalks/Silly_Walk_Gait.jpg "Silly Walk Gait,
+by Jazeen Hollings, CC-BY-SA 3.0 on Wikimedia Commons: https://commons.wikimedia.org/wiki/File:Silly_Walk_Gait.jpg"
diff --git a/resources/images/screenshot.png b/resources/images/screenshot.png
new file mode 100644
index 0000000..13e77f2
--- /dev/null
+++ b/resources/images/screenshot.png
Binary files differ
diff --git a/src/MinistryOfSillyWatches.c b/src/MinistryOfSillyWatches.c
index f0da9e5..3d72b8d 100644
--- a/src/MinistryOfSillyWatches.c
+++ b/src/MinistryOfSillyWatches.c
@@ -1,3 +1,33 @@
+/*
+ * Ministry of Silly Watches, A silly watchface for Pebble smart watches
+ * Copyright (c) 2014, Olivier Mehani <shtrom@ssji.net>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright notice,
+ * this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
+ * this list of conditions and the following disclaimer in the documentation
+ * and/or other materials provided with the distribution.
+ * 3. Neither the name of Olivier Mehani nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
#include <pebble.h>
static Window *window;
@@ -135,6 +165,13 @@ static void init(void) {
.load = window_load,
.unload = window_unload,
});
+
+ /*
+ * For the adventurous, this can be modified so the tick_handler is called every
+ * second; the cane will be accordingly advanced by a smidgen to account for
+ * the time elapsed since the full minute, just like analog watches.
+ * This is disabled by default to avoid using too much battery.
+ */
tick_timer_service_subscribe(MINUTE_UNIT, tick_handler);
const bool animated = true;
window_stack_push(window, animated);