Constants¶
constants
¶
Module used to store constants used in the package.
ALLOCATION_CHILD_DEFAULT_CATEGORIES = {'Weather Outage': 'Wind Speed'}
module-attribute
¶
Default child allocation categories, when .UND is not the default
BASE_URL = f'{HOSTNAME}/BazeField.Services/api'
module-attribute
¶
Base URL for Bazefield API.
DEFAULT_API_KEY
module-attribute
¶
Default API key for Bazefield API.
DEFAULT_TIME_ZONE = -3
module-attribute
¶
Default time zone for Bazefield API.
HOSTNAME = 'https://bazefield.echoenergia.com.br'
module-attribute
¶
Default host name for Bazefield API.
TAG_QUALITY_CODES = {'Bad': int('00000000', 16), 'BadConfigurationError': int('00000004', 16), 'BadNotConnected': int('00000008', 16), 'BadDeviceFailure': int('0000000C', 16), 'BadSensorFailure': int('00000010', 16), 'BadLastKnownValue': int('00000014', 16), 'BadCommFailure': int('00000018', 16), 'BadOutOfService': int('0000001C', 16), 'BadWaitingForInitialData': int('00000020', 16), 'Good': int('000000c0', 16), 'GoodLocalOverride': int('000000d8', 16), 'Uncertain': int('00000040', 16), 'UncertainLastUsableValue': int('00000044', 16), 'UncertainSensorNotAccurate': int('00000050', 16), 'UncertainEUExceeded': int('00000054', 16), 'UncertainSubNormal': int('00000058', 16), 'ExtraData': int('00010000', 16), 'Interpolated': int('00020000', 16), 'Raw': int('00040000', 16), 'Calculated': int('00080000', 16), 'NoBound': int('00100000', 16), 'NoData': int('00200000', 16), 'DataLost': int('00400000', 16), 'Conversion': int('00800000', 16), 'Partial': int('01000000', 16)}
module-attribute
¶
Dictionary with OPC quality codes.