Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

DCF77 simulator written in JavaScript

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.