Skip to main content

system.kanoaOPS.checkCurrentSchedule

Requires kanoaOPS license

Description

This function will grab all scheduled events, whether discrete or recurring, for the current time period and then filter them to only return the active one.

Syntax

checkCurrentSchedule(assetPath)

Parameters:
  • assetPath (string): Path of the asset.

  • Returns:
  • eventData (pyDataset): Event data.
  • Code Examples

    # Example Usage:
    asset_path = 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'
    current_schedule = system.kanoaOPS.checkCurrentSchedule(asset_path)