Skip to content

kazunoko sync

Sync the device RTC (Real-Time Clock) to the current system time.

This ensures that detection event timestamps are accurate. Previously, RTC synchronization only happened automatically inside kazunoko measure. sync allows you to do it standalone at any time.


Basic Usage

kazunoko sync

CLI Options

Option Short Default Description
--port -p auto Serial port, or auto for auto-detection
--timeout -t 0.1 Serial communication timeout in seconds
--verbose / --quiet -v / -q --quiet Show or suppress status messages
--format -f jsonl Output format: jsonl, table, json, csv, ssv, tsv, ltsv
--use-flat / --use-raw --use-flat Use flattened or raw field names
--mock off Use mock device (no hardware needed)

Usage Examples

Sync RTC to system time

kazunoko sync

With verbose output

kazunoko sync --verbose

With specific port

kazunoko sync --port /dev/ttyUSB0

Test without hardware

kazunoko sync --mock