getAstronomicalList

Requires:
@ray-js/ray≥1.5.2

Method signature
getAstronomicalList(params: )

Description

Get the astronomical timer list

Parameters

ParameterTypeRequiredDescription
YesRequest parameters

Return Value

Type: Promise<IGetAstronomicalListResponse>
Array of astronomical timers

Referenced Types

interfaceIGetAstronomicalListResponse
PropertyTypeDescription
astronomicalTypenumberSunrise/sunset type
bizIdstringDevice or group ID
bizTypenumberResource type. 0: single device. 1: group device.
dpsstringDP value
idnumberSchedule ID
latnumberLongitude
lonnumberLatitude
loopsstringWeekly cycle
nextSunSetstringNext sunrise time
offsetTypenumberSchedule offset type
statusnumberScheduled task status: 0 = disabled, 1 = enabled, 2 = invalid/deleted
timestringScheduled time
timezonestringTime zone

Examples

Basic usage

import { getAstronomicalList } from '@ray-js/ray';

getAstronomicalList({
  bizId: 'vdevo160456552237748',
}).then((response) => {
  console.log('Astronomical timer list:', response);
}).catch((err) => {
  console.error(err);
});