예제 #1
0
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
예제 #2
0
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
예제 #3
0
파일: agent00.py 프로젝트: MrEditor0/V2X
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('*******************************************')
예제 #4
0
파일: agent.py 프로젝트: MrEditor0/V2X
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