Start a background log
log_startStarts background logging of voltage, current, power, temperature, mode, output state, and cumulative energy to CSV/JSONL at a set interval and duration; returns a job ID for status checks and stopping.
Instructions
Log the status to a CSV (or JSONL) file in the background: pc_time, local_time, vout_v, iout_a, pout_w, vin_v, temp_c, mode, output_on, cumulative ah and wh. Returns a job id; follow with job_status, end with job_stop. Other tools keep working meanwhile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out | No | file path (default: data/log_<time>.csv) | |
| every | No | s between samples (default 1) | |
| format | No | ||
| duration | No | 30s, 10m, 2h or forever (default forever) |