From 7b5a6ebc6cc5303c205bab48d691d7cc724a4923 Mon Sep 17 00:00:00 2001 From: David Christenson Date: Sun, 7 Aug 2016 01:18:21 -0600 Subject: [PATCH] Generate API signature Fixes the Unknown6 API checks. --- config.py.example | 1 + requirements.txt | 2 +- worker.py | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py.example b/config.py.example index 70e09f2fc4..f868b53a5d 100644 --- a/config.py.example +++ b/config.py.example @@ -8,6 +8,7 @@ MAP_END = (13.4567, 35.6789) GRID = (2, 2) # row, column CYCLES_PER_WORKER = 3 SCAN_DELAY = 10 # seconds +ENCRYPT = './libencrypt.so' # external encryption library SCAN_RADIUS = 70 # metres diff --git a/requirements.txt b/requirements.txt index 9adbc95d65..4c9b7337a7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,4 +8,4 @@ gpsoauth==0.3.0 coveralls==1.1 werkzeug==0.11.10 sqlalchemy==1.0.14 --e git+https://github.com/tejado/pgoapi.git@0811db23d639039f968a82e06c7aa15a0a5016b6#egg=pgoapi +-e git+https://github.com/keyphact/pgoapi.git#egg=pgoapi diff --git a/worker.py b/worker.py index 3e5dbdd75a..79d9ee3c23 100644 --- a/worker.py +++ b/worker.py @@ -81,6 +81,7 @@ def __init__( center = self.points[0] self.api = PGoApi() self.api.set_position(center[0], center[1], 100) # lat, lon, alt + self.api.activate_signature(config.ENCRYPT) def run(self): """Wrapper for self.main - runs it a few times before restarting