onvif
    Preparing search index...

    Interface Schedule

    Schedule service

     const list = await cam.schedule.getScheduleInfoList();
    const token = list.scheduleInfo![0].token;
    console.log((await cam.schedule.getScheduleState({ token })).active);
    interface Schedule {
        onvif: Onvif;
        service: keyof OnvifServices;
        xmlns: string;
        createSchedule(options: CreateSchedule): Promise<string>;
        createSpecialDayGroup(options: CreateSpecialDayGroup): Promise<string>;
        deleteSchedule(options: DeleteSchedule): Promise<void>;
        deleteSpecialDayGroup(options: DeleteSpecialDayGroup): Promise<void>;
        getScheduleInfo(options: GetScheduleInfo): Promise<GetScheduleInfoResponse>;
        getScheduleInfoList(
            options?: GetScheduleInfoList,
        ): Promise<GetScheduleInfoListResponse>;
        getScheduleList(
            options?: GetScheduleList,
        ): Promise<GetScheduleListResponse>;
        getSchedules(options: GetSchedules): Promise<GetSchedulesResponse>;
        getScheduleState(options: GetScheduleState): Promise<ScheduleState>;
        getServiceCapabilities(): Promise<Capabilities>;
        getSpecialDayGroupInfo(
            options: GetSpecialDayGroupInfo,
        ): Promise<GetSpecialDayGroupInfoResponse>;
        getSpecialDayGroupInfoList(
            options?: GetSpecialDayGroupInfoList,
        ): Promise<GetSpecialDayGroupInfoListResponse>;
        getSpecialDayGroupList(
            options?: GetSpecialDayGroupList,
        ): Promise<GetSpecialDayGroupListResponse>;
        getSpecialDayGroups(
            options: GetSpecialDayGroups,
        ): Promise<GetSpecialDayGroupsResponse>;
        modifySchedule(options: ModifySchedule): Promise<void>;
        modifySpecialDayGroup(options: ModifySpecialDayGroup): Promise<void>;
        request<T = any>(
            body: Record<string, any>,
            options?: LineraseOptions,
        ): Promise<T>;
        setSchedule(options: SetSchedule): Promise<void>;
        setSpecialDayGroup(options: SetSpecialDayGroup): Promise<void>;
    }

    Hierarchy (View Summary)

    Index
    onvif: Onvif
    service: keyof OnvifServices
    xmlns: string
    • Creates or replaces a schedule (requires ClientSuppliedTokenSupported).

      Parameters

      Returns Promise<void>