getLightRhythmsTimeInfo(data: CommonLonLatParams)
版本要求:
@tuya-miniapp/cloud-api≥1.0.5
描述
获取日出日落时间,并以设备或群组所在时区输出。
参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| 是 | 请求参数:bizId(业务 ID)、bizType(业务类型,0:设备 1:群组)、lon(经度)、lat(纬度) |
返回值
类型:Promise<GetLightRhythmsTimeInfoResult>
TimeInfo[];元素字段:date(日期,格式为 yyyyMMdd)、sunrise(日出时间)、sunset(日落时间)、transitAtNoon(正午时间)、dawn(日出前时间)、dusk(日落后时间)
引用对象
type
GetLightRhythmsTimeInfoResult合法值
CommonLonLatParams.bizType
| 值 | 说明 | 最低版本 |
|---|---|---|
0 | - | - |
1 | - | - |