Skip to main content

system.kanoa.event.getOEEColors

Description

Returns colors for OEE, Availability, Performance, and Quality based on the asset and OEE values.

Syntax

getOEEColors(paramsDict, oee, availability, performance, quality)

Parameters:
  • paramsDict (dict)
  • oee (float): OEE value.
  • availability (float): Availability value.
  • performance (float): Performance value.
  • quality (float): Quality value.

  • Returns:
  • oeeColor, aColor, pColor, qColor (tuple of string values for colors)
  • Dictionary

    ParameterTypeRequiredNotes
    assetIdinte.g. 18
    assetPathstringe.g. 'Kanoa Industries\Adelaide Hills\Packaging\Line 1'

    Code Examples

    # Example Usage:
    colors = system.kanoa.event.getOEEColors(paramsDict={'assetId': 18}, oee=80.0, availability=90.0, performance=85.0, quality=95.0)