system.kanoa.schedule.getCalendarEvents
Syntax
getCalendarEvents(paramsDict)Parameters:
Returns:
Dictionary
| Parameter | Type | Required | Notes | 
|---|---|---|---|
| scheduleType | string | 'shift' or 'operation' | |
| startDate | datetime | Start of the date range | |
| endDate | datetime | End of the date range | |
| assetPath | string | Asset path to filter schedule data | |
| activeEventsOnly | bool | Used when looking for the current shift or operation schedule only | |
| tzOffsets | dict | Timezone offset data for proper calendar alignment | 
Code Examples
startDate = system.date.parse("2025-01-01 00:00:00")
endDate = system.date.parse("2025-01-07 00:00:00")
assetPath = 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
tzOffsets = {'Pacific Standard Time': {startOffsetMins': -480, 'endOffSetMins': -480}}
scheduleData = system.kanoa.schedule.getCalendarEvents({'scheduleType': 'shift', 'startDate': startDate, 'endDate': endDate, 'assetPath': assetPath, 'tzOffsets': tzOffsets})