def _parse_see_args(topic, data):
 (host_name, dev_id) = parse_topic(topic, False)
 kwargs = {'dev_id': dev_id, 'host_name': host_name, 'gps': (data[WAYPOINT_LAT_KEY], data[WAYPOINT_LON_KEY])}
 if ('acc' in data):
  kwargs['gps_accuracy'] = data['acc']
 if ('batt' in data):
  kwargs['battery'] = data['batt']
 return (dev_id, kwargs)

def _parse_see_args ( topic , data ) : ( host_name , dev_id ) = parse_topic ( topic , False ) kwargs = { 'dev_id' : dev_id , 'host_name' : host_name , 'gps' : ( data [ WAYPOINT_LAT_KEY ] , data [ WAYPOINT_LON_KEY ] ) } if ( 'acc' in data ) : kwargs [ 'gps_accuracy' ] = data [ 'acc' ] if ( 'batt' in data ) : kwargs [ 'battery' ] = data [ 'batt' ] return ( dev_id , kwargs )
parse the owntracks location parameters .