export_air_quality_history
Export historical air quality data from selected air-Q sensors as CSV or Excel, specifying sensor, time range, and device selection.
Instructions
Export historical air-Q sensor data as CSV or Excel.
Selector:
- `device` — one specific device
- `location` — all devices at one location
- `group` — all devices in one group
- if none is specified, all configured devices are exported together
OUTPUT FORMAT:
- "csv" — one UTF-8 CSV file containing all selected devices
- "xlsx" — one Excel workbook containing all selected devices
REQUIRED:
- sensor: one sensor key to export, for example `co2`, `pm2_5`, `radon`
TIME RANGE:
- `last_hours` or `from_datetime` / `to_datetime`
- `timezone_name` controls how timestamps are rendered in the exported file
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": {
"sensor": "<sensor>"
},
"name": "export_air_quality_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sensor | Yes | ||
| device | No | ||
| location | No | ||
| group | No | ||
| last_hours | No | ||
| from_datetime | No | ||
| to_datetime | No | ||
| output_format | No | csv | |
| max_points | No | ||
| timezone_name | No |