getWeatherDailyHistory(data: GetWeatherDailyHistoryParams)
Requires:
@tuya-miniapp/cloud-api≥1.0.5
Description
Query historical weather by device ID
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Request body |
Return Value
Type: Promise<Record<string, Weather>>
GetWeatherDailyHistoryResult (keys are YYYY-MM-DD date strings, and values are the Weather object for that day; see type definitions and minituya return parameters for field meanings)
Referenced Types
interface
WeatherField set for a single day's weather: `date` and `localDate` are as documented; other keys correspond to the requested `weatherFieldNames`.| Property | Type | Description |
|---|---|---|
date | string | formatDate, e.g., 2023-10-24 |
localDate | number | Timestamp, e.g., 1698076800000 |