src/server/server.py
def emit_imdtabler_data(fs_list, imdtabler_ver=None, **params):
    '''Emits IMDTabler data for given frequencies.'''
    try:
        imdtabler_data = None
        if len(fs_list) > 2:  # if 3+ then invoke jar; get response
            imdtabler_data = subprocess.check_output( \
                        'java -jar ' + IMDTABLER_JAR_NAME + ' -t ' + ' '.join(fs_list), shell=True)
    except Exception:
        imdtabler_data = None
        logger.exception('emit_imdtabler_data exception')
    emit_payload = {
        'freq_list': ' '.join(fs_list),
        'table_data': imdtabler_data,
        'version_str': imdtabler_ver
    }
    if ('nobroadcast' in params):
        emit('imdtabler_data', emit_payload)
    else:
        SOCKET_IO.emit('imdtabler_data', emit_payload)
Emits IMDTabler data for given frequencies.
Emits IMDTabler data for given frequencies.
Emits IMDTabler data for given frequencies .
def emit_imdtabler_data(fs_list, imdtabler_ver=None, **params):
    try:
        imdtabler_data = None
        if len(fs_list) > 2:  
            imdtabler_data = subprocess.check_output( \
                        'java -jar ' + IMDTABLER_JAR_NAME + ' -t ' + ' '.join(fs_list), shell=True)
    except Exception:
        imdtabler_data = None
        logger.exception('emit_imdtabler_data exception')
    emit_payload = {
        'freq_list': ' '.join(fs_list),
        'table_data': imdtabler_data,
        'version_str': imdtabler_ver
    }
    if ('nobroadcast' in params):
        emit('imdtabler_data', emit_payload)
    else:
        SOCKET_IO.emit('imdtabler_data', emit_payload)
def emit_imdtabler_data ( fs_list , imdtabler_ver = None , ** params ) : try : imdtabler_data = None if len ( fs_list ) > 2 : imdtabler_data = subprocess . check_output ( 'java -jar ' + IMDTABLER_JAR_NAME + ' -t ' + ' ' . join ( fs_list ) , shell = True ) except Exception : imdtabler_data = None logger . exception ( 'emit_imdtabler_data exception' ) emit_payload = { 'freq_list' : ' ' . join ( fs_list ) , 'table_data' : imdtabler_data , 'version_str' : imdtabler_ver } if ( 'nobroadcast' in params ) : emit ( 'imdtabler_data' , emit_payload ) else : SOCKET_IO . emit ( 'imdtabler_data' , emit_payload )
Emits IMDTabler data for given frequencies.
Emits IMDTabler data for given frequencies .
'''Emits IMDTabler data for given frequencies.''' # if 3+ then invoke jar; get response
fs_list
imdtabler_ver