GithubHelp home page GithubHelp logo

dcf77.js's Introduction

DCF77.js

Demo available here.

DCF77.js is a proof-of-concept DCF77 time signal emulator written in JavaScript and its Web Audio API. It currently works correctly on Firefox, Chrome and Chromium based browsers. You can use DCF77.js to synchronise your DCF77-radio-controlled clocks/watches. You can check out the demo page to see how it can be implemented on a web page.

Set your radio controlled clock/watch to “receive” mode and place it near the speaker or headphones. It should take 2–10 minutes for your watch to synchronize.

Signal documentation

1 Leap second and summer time announcements (bits 16 and 19) are not implemented in DCF77.js.

Usage

Include the script in your HTML file.

<script src="DCF77.js"></script>

DCF77.js exposes two methods, startTransmission() and stopTransmission(). Use these to start and stop the signal transmission. You can check the demo page in /demo to see an example.

Disclaimer:

This script will produce a high-pitched 15.5kHz sine wave noise! Please protect your hearing! Also, it may or may not be legal to transmit this sound in your country. Consult your local laws if you are unsure.

Instructions

  1. Call DCF77.startTransmission(). The sound will start playing immediately. The encoded time signal will automatically be in German time (UTC+1).
  2. Set your radio controlled watch or clock to "receive" mode and place its antenna near the speaker or headphones (~1–5 cm)
  3. Wait. It can take anywhere from 2 to 10 minutes for your watch to synchronize. You can stop the signal at any time by calling DCF77.stopTransmission() or closing the browser window.

What if it doesn't work?

It's most likely one of these reasons:

  1. The speaker volume is not loud enough: Try increasing your system volume.
  2. The antenna is not placed near enough to the speaker: Try placing it closer to the speaker.

If it's still not working, your clock/watch probably cannot be fooled by this signal. The signal was tested on my Casio Wave Ceptor wristwatch and a radio controlled wall clock.

dcf77.js's People

Contributors

einoko 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.