Measure energy over time
measure_energyAccumulate charge and energy from a JS220 device over a given duration and interval. Returns total and per-interval measurements in mAh and mWh.
Instructions
Measure JS220 charge and energy over duration_s using interval_s accumulation. Returns total charge/energy plus one sample per interval, including mAh and mWh.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"duration_s": "<duration_s>",
"interval_s": "<interval_s>"
},
"name": "measure_energy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration_s | Yes | ||
| interval_s | Yes | ||
| device_path | No | ||
| configure_auto_range | No | ||
| compact | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||