Skip to main content

system.kanoaOPS.checkCurrentSchedule

This function requires KanoaOPS module

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 (kanoaOPS).

Syntax

checkCurrentSchedule(assetPath)
  • Parameters
      assetPath (string) - Path of the asset.
  • Returns
      Event data (pyDataset).
  • Code Example

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