def __init__(self, config=None): self.config = config self.gen_device_id() self.logger = logging.getLogger(__name__) device_info = { "device_id": ApiWrapper.DEVICE_ID, "device_brand": 'Apple', "device_model": 'iPhone', "device_model_boot": 'iPhone8,2', "hardware_manufacturer": 'Apple', "hardware_model": 'N66AP', "firmware_brand": 'iPhone OS', "firmware_type": '9.3.3' } PGoApi.__init__(self, device_info=device_info) if not self.config.hashkey is None: PGoApi.activate_hash_server(self, self.config.hashkey) # Set to default, just for CI... self.actual_lat, self.actual_lng, self.actual_alt = PGoApi.get_position( self) self.teleporting = False self.noised_lat, self.noised_lng, self.noised_alt = self.actual_lat, self.actual_lng, self.actual_alt self.useVanillaRequest = False
def __init__(self, config=None): self.config = config self.gen_device_id() self.logger = logging.getLogger(__name__) device_info = { "device_id": ApiWrapper.DEVICE_ID, "device_brand": 'Apple', "device_model": 'iPhone', "device_model_boot": 'iPhone8,2', "hardware_manufacturer": 'Apple', "hardware_model": 'N66AP', "firmware_brand": 'iPhone OS', "firmware_type": '9.3.3' } PGoApi.__init__(self, device_info=device_info) if not self.config.hashkey is None: PGoApi.activate_hash_server(self,self.config.hashkey) # Set to default, just for CI... self.actual_lat, self.actual_lng, self.actual_alt = PGoApi.get_position(self) self.teleporting = False self.noised_lat, self.noised_lng, self.noised_alt = self.actual_lat, self.actual_lng, self.actual_alt self.useVanillaRequest = False
def __init__(self, config=None): self.config = config self.gen_device_id() self.capi = float(0.55) self.POGOProtos = float(2.6) # Check if bot is using lastest POGOProtos, only do so if check_niantic_api is set to true # If a new Protos is availible, it mean there's a possibility of a new API latestProtos = float(0.0) if self.config.check_niantic_api is True: if latestProtos > self.POGOProtos: link = "https://raw.githubusercontent.com/AeonLucid/POGOProtos/master/.current-version" f = urllib.urlopen(link) myfile = f.read() latestProtos = float(myfile[0:3]) print( "\033[1;31;40m We have detected a possibility of a new pogo API. Try upgarding it by using ./setup.sh -u command" ) print( "\033[1;31;40m This message might still be shown after updating unless a new commit is done in Github\n" ) device_info = { "device_id": ApiWrapper.DEVICE_ID, "device_brand": 'Apple', "device_model": 'iPhone', "device_model_boot": 'iPhone8,2', "hardware_manufacturer": 'Apple', "hardware_model": 'N66AP', "firmware_brand": 'iPhone OS', "firmware_type": '9.3.3' } PGoApi.__init__(self, device_info=device_info) if not self.config.hashkey is None: PGoApi.activate_hash_server(self, self.config.hashkey) # Set to default, just for CI... self.actual_lat, self.actual_lng, self.actual_alt = PGoApi.get_position( self) self.teleporting = False self.noised_lat, self.noised_lng, self.noised_alt = self.actual_lat, self.actual_lng, self.actual_alt self.useVanillaRequest = False
def __init__(self, config=None): self.config = config self.gen_device_id() self.capi = float(0.55) self.POGOProtos = float(2.6) # Check if bot is using lastest POGOProtos, only do so if check_niantic_api is set to true # If a new Protos is availible, it mean there's a possibility of a new API latestProtos = float(0.0) if self.config.check_niantic_api is True: if latestProtos > self.POGOProtos: link = "https://raw.githubusercontent.com/AeonLucid/POGOProtos/master/.current-version" f = urllib.urlopen(link) myfile = f.read() latestProtos = float(myfile[0:3]) print("\033[1;31;40m We have detected a possibility of a new pogo API. Try upgarding it by using ./setup.sh -u command") print("\033[1;31;40m This message might still be shown after updating unless a new commit is done in Github\n") device_info = { "device_id": ApiWrapper.DEVICE_ID, "device_brand": 'Apple', "device_model": 'iPhone', "device_model_boot": 'iPhone8,2', "hardware_manufacturer": 'Apple', "hardware_model": 'N66AP', "firmware_brand": 'iPhone OS', "firmware_type": '9.3.3' } PGoApi.__init__(self, device_info=device_info) if not self.config.hashkey is None: PGoApi.activate_hash_server(self,self.config.hashkey) # Set to default, just for CI... self.actual_lat, self.actual_lng, self.actual_alt = PGoApi.get_position(self) self.teleporting = False self.noised_lat, self.noised_lng, self.noised_alt = self.actual_lat, self.actual_lng, self.actual_alt self.useVanillaRequest = False