Skip to content

Commit

Permalink
Bumped pgoapi version
Browse files Browse the repository at this point in the history
Note that libencrypt is not provided, and won't be provided.
  • Loading branch information
modrzew committed Aug 7, 2016
1 parent 74d896d commit 34a67c4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.idea
config.py
db.sqlite
*.log
*.log
*.so
2 changes: 2 additions & 0 deletions config.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from datetime import datetime

DB_ENGINE = 'sqlite:///db.sqlite'
ENCRYPT_PATH = './libencrypt.so'

AREA_NAME = u'Wrocław'
MAP_START = (12.3456, 34.5678)
MAP_END = (13.4567, 35.6789)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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@06eaef1e0353d17f775f2d1765d6281a05be7654#egg=pgoapi
2 changes: 2 additions & 0 deletions worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# Check whether config has all necessary attributes
REQUIRED_SETTINGS = (
'DB_ENGINE',
'ENCRYPT_PATH',
'CYCLES_PER_WORKER',
'MAP_START',
'MAP_END',
Expand Down Expand Up @@ -80,6 +81,7 @@ def __init__(
self.running = True
center = self.points[0]
self.api = PGoApi()
self.api.activate_signature(config.ENCRYPT_PATH)
self.api.set_position(center[0], center[1], 100) # lat, lon, alt

def run(self):
Expand Down

0 comments on commit 34a67c4

Please sign in to comment.