Index: suite_leahi/shared/scripts/configuration/config.py =================================================================== diff -u -re74e550d3abff8c854a63ed41d5b01d78b110094 -redb98c8ca7fbfca12f75abaa7e83cbde98b31e59 --- suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision e74e550d3abff8c854a63ed41d5b01d78b110094) +++ suite_leahi/shared/scripts/configuration/config.py (.../config.py) (revision edb98c8ca7fbfca12f75abaa7e83cbde98b31e59) @@ -1,14 +1,58 @@ -from configuration.strings import * - # -S, --disable-sd-card-fail-log-stop disable-sd-card-fail-log-stop # -k, --enable-check-in-log Enables Check-In Log # -K, --enable-acknow-log Enables Acknowledgment Log AUT_NAME = "leahi -k -K -S -q" -AUT_NAME_ONLY = "leahi" # Need only the AUT name for tst_ui_logs, do not add options -HOME_DIR_PATH = "/home/denali" +AUT_NAME_ONLY = "leahi" + +# Configuration application_init.py TMP_DIR = "/tmp/" +APP_POST_LOG_LOCATION = "".join([str(TMP_DIR),'/post.log']) +#Service Export Logs ENABLED = True +DEVICE_SETTINGS_SCREEN_TITLE_TEXT = "Device Settings" +EXPORT_LOG_TEXT = "Export Logs" +EXPORT_LOGS_OPTIONS = ["Application", "Service", "Treatment"] +EXPORT_LOG_STATUS = "Application log export to USB is complete" +EXPORT_LOG_PROGRESS_STATUS = "Service log export to USB in progress ... " +SERVICE_SCREEN_TITLE_TEXT = "Service" -APP_POST_LOG_LOCATION = "".join([str(TMP_DIR),'/post.log']) +# Headerbar_information_popup +INFORMATION_PARAMETERS = [ + "OS Version", "UI Version", "TD Version", "TD FPGA Version", + "TD Serial Number", "DD Version", "DD FPGA Version", "DD Serial Number", +] + +#Device Settings Information Version +INFORMATION_SCREEN_TITLE_TEXT = "Information" +INFORMATION_TITLES = ["Information", "Versions"] +VERSION_PARAMETERS = [ + "Information", "UI Version", "TD Version", "TD FPGA Version", + "TD Serial Number", "DD Version", "DD FPGA Version", "DD Serial Number" +] +SERVICES_PARAMETERS = [ + "TD Last Service Date", "TD Next Service Date", + "DD Last Service Date", "DD Next Service Date" +] +SERIVCES_TITLE = "Service" +WATER_PARAMETERS = ["Water Configuration", "Water Input"] + +# General Alarm Requirements Instruction +NUM_OF_ALARM_PRIORITIES = 4 # Total number of alarm priorities +ALARM_MUTE_FLAG = 0B0000001000000000 +ALARM_UNMUTE_FLAG = 0B0000000000000000 +ALARM_PRIORITY_OPTIONS = { + 0 : 'ALARM_PRIORITY_NONE' , + 1 : 'ALARM_PRIORITY_LOW' , + 2 : 'ALARM_PRIORITY_MEDIUM', + 3 : 'ALARM_PRIORITY_HIGH', +} + +ALARMS_COLORS_HEADER = { + "ALARM_PRIORITY_NONE" : "#438feb", + "ALARM_PRIORITY_LOW" : "#db8f00", + "ALARM_PRIORITY_MEDIUM" : "#db8f00", + "ALARM_PRIORITY_HIGH" : "#c53b33" +} +ALARM_REJECT_NOTIFICATION_TEMPLATE = "No Active Alarm List [{}]"