def send_hmi_warning(sensor_owner,hmi_type,hmi_level=None,time_stamp=None): try: PyPanoWarningOutput.create_value(sensor_owner,hmi_type,warning_dict[hmi_type],warning_level=hmi_level) print('*******************************************') print('*******告警类型 :'+hmi_type+' 告警级别 :'+str(hmi_level)+' *******') print('*******************************************') except Exception as ex: print(str(ex)) finally: pass
def send_hmi_warning(sensor_owner,hmi_type,timestamp, duration=0.00,isAlwaysShow = False, info = 'warning info'): try: PyPanoWarningOutput.create_value(sensor_owner,hmi_type,warning_dict[hmi_type]) print('*******************************************') print(hmi_type) print('*******************************************') except Exception as ex: print(str(ex)) finally: pass
def send_hmi_warning(sensor_owner, hmi_type, timestamp, duration=0.00, isAlwaysShow=False, info='warning info'): PyPanoWarningOutput.create_value(sensor_owner, hmi_type, warning_dict[hmi_type]) print('*******************************************') print(hmi_type) print('*******************************************')
def send_hmi_warning(sensor_owner,hmi_type,hmi_level=None,time_stamp=None): try: code = 403 if hmi_type.split("-", 1)[0] not in warning_dict.keys() else warning_dict[hmi_type.split("-", 1)[0]] PyPanoWarningOutput.create_value(sensor_owner,hmi_type, code,warning_level=hmi_level) print('*******************************************') print('*******告警类型 :'+hmi_type+' 告警级别 :'+str(hmi_level)+' *******') print('*******************************************') except Exception as ex: print(str(ex)) finally: pass