Git Product home page Git Product logo

wadokei's Introduction

About 和時計 (Wadokei)

History of 和時計

Early mechanical clocks were introduced to Japan by the Europeans in the 16th century. During Japan's isolationist period, from 1641, Japanese clockmakers built upon the technology from these first examples. By the Edo period, these skilled clockmakers were making clocks that followed the Japanese system of time, which divided used 12 Toki (hours), 6 for the period of sunlight, and 6 for the period of dark. These clocks were known as 和時計 (Wadokei) and were quite complex due to the "unfixed" nature of the hours. Day Toki were longer in summer and shorter in winter, and night Toki were shorter in summer and longer in winter.

How did the clock makers address this challenge?

  1. Make the hands move faster during certain parts of the day
  2. Change the size of the Toki regions

Toki names followed the Chinese Zodiac and Japanese numeral system.

By the early Meiji period, Japan switched to the standard 24 'fixed' hour time system, but one can still find these mechanical masterpieces at clock museums in Tokyo and Matsumoto.

Sources: SEIKO Clock Museum Wadokei explanation Wikipedia EN Wikipedia JA Matsumoto Clock Museum

This project

I built this project to improve my React and general frontend skills. It has a toggle between a western style clock and a 和時計. I adjusted the size of the hours based on the sunrise and sunset times, fetched from an API.

Currently it only tells time in Japan :)

Future enhancements coming.

View a working demo

https://ann-kilzer.github.io/wadokei/

Available Scripts

In the project directory, you can run:

npm run dev

Runs the app in the development mode.
Open http://localhost:5173 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run test

Launches vitest in watch mode

npm run build

Builds the app for production to the build folder.\

npm run deploy

Deploy this project to github pages TODO: under maintenance

Inspiration & Citations

Thank you to Mercari Japan, who allowed me to work on this project as part of a Hackathon. If you'd like to do creative coding and contribute to an exciting e-commerce platform in Japan, please check out our job listings here. Overseas applicants welcome!

wadokei's People

Contributors

ann-kilzer avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

wadokei's Issues

update lat / lon based on location

There is a 🐞 bug in the app outside japan due to the fixed lat / lon.

  1. Update the lat / lon based on location.
  2. Estimate sunrise and sunset based on timezone
  3. allow the user to input their lat / lon?

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.