Utility to set the time on a Hayes Stack Chronograph
1## chronosync
2
3A small utility to set the clock on a
4[Hayes Stack Chronograph](http://atari8bitads.blogspot.com/2017/06/theres-no-better-time.html)
5over its serial port.
6
7### Synopsis
8
9 chronosync [-d] [-s serial speed] <serial device>
10
11### Compiling
12
13Compile with a BSD Make:
14
15 $ make
16
17Install:
18
19 # make install
20
21Run and pass argument of the serial device connected to the Chronograph:
22
23 # chronosync /dev/cua02
24
25The computer's local time is sent to the Chronograph.
26
27### Notes
28
29Since the Chronograph only supports setting the time to minute precision with
30`ATST`, `chronosync` will sleep until zero seconds of the next minute before
31sending the time.
32
33The clock on the Chronograph will probably only need to be set once per day to
34stay accurate, so running this from cron once a day should suffice:
35
36 # sync time at 2am
37 1 59 * * * /usr/local/bin/chronosync /dev/cua02