(self, fe_info)
return {
            'lock': (lock, None),
            'level': (signal_level, 'dBm'),
            'quality': (quality, '%')
        }
Parse frontend information returned by the server
Parse frontend information returned by the server
Parse frontend information returned by the server
def _parse_fe_info(self, fe_info):
        """Parse frontend information returned by the server"""
        signal_level = ((10 * float(fe_info['sq'])) - 3440) / 48
        quality = float(fe_info['ber']) * 100 / 15
        lock = fe_info['ls'] == 'yes'
        # Note:
        # - The 'sq' metric is mapped to the signal level in dBm.
        # - The 'ber' value returned by the server (the antenna) is a number
        #   from 0 to 15 related to the signal quality metric mentioned in
        #   Section 3.5.7 of the Sat-IP specification.
        return {
            'lock': (lock, None),
            'level': (signal_level, 'dBm'),
            'quality': (quality, '%')
        }
def _parse_fe_info ( self , fe_info ) : signal_level = ( ( 10 * float ( fe_info [ 'sq' ] ) ) - 3440 ) / 48 quality = float ( fe_info [ 'ber' ] ) * 100 / 15 lock = fe_info [ 'ls' ] == 'yes' # Note: # - The 'sq' metric is mapped to the signal level in dBm. # - The 'ber' value returned by the server (the antenna) is a number #   from 0 to 15 related to the signal quality metric mentioned in #   Section 3.5.7 of the Sat-IP specification. return { 'lock' : ( lock , None ) , 'level' : ( signal_level , 'dBm' ) , 'quality' : ( quality , '%' ) }