Code Monkey home page Code Monkey logo

clock's Introduction

Clock

Packagist Twitter URL

This script produces the background for a 24-hour wall clock. Sunrise and sunset times for the summer and winter solstices are included for a particular location.


Requirements

  • python 3.5.2
  • matplotlib 1.5.1
  • numpy 1.11.1

Installation

Clone this repo using https://github.com/mkudija/Clock.git.

Background and Usage

I found out about 24-hour watches (such as those from No-Watch and Jacopo Dondi) with a single hour hand that makes one full revolution in 24 hours. What I like about this concept is the ability to see the entire day at a glance.

The website 24hourtime.info gives a great overview of the design of 24 hour timepieces. One design consideration mentioned is whether to place 12 (noon) or 24 (midnight) at the top of the dial. My optinion is that the intitive solution is to put noon at the top and midnight at the bottom, which matches how we observe the sun moving throughout the day. Jacopo Dondi also points out how a 24 hour watch can be used as a compass.

My Design

If you can see the entire day, why not also show the sunrise and sunset time? If on a smartwatch, you could pull the sunrise and sunset time for your current location. As a first step, I wanted to make a clock face that shows the sunrise and sunset times at the summer and winter solstices for a given location.

My design places midnight at the bottom and noon at the top to present an intuitive view of the day with respect to the movement of the sun. Sunrise and sunset times at the winter solstice (shortest day of the year) are represented by the dark grey shaded region. Likewise, sunrise and sunset times at the summer solstice (longest day of the year) are represnted by the lighter grey shaded region. Notice the offset between these regions, representing the hour adjustment for daylight savings time. The location is also printed on the clock face because these times are location-dependent. I also include, in red numerals, 12-hour representation for the p.m. hours for ease of use for those used to 12-hour time.

The clock face is generated by running wall-clock.py.

I bought a 24-hour clock movement, printed the clock face, adhered it using Mod Podge and a foam brush.

Here is the result:

clock's People

Contributors

mkudija avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.