forked from mzsmakr/PGSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.py
97 lines (80 loc) · 3.48 KB
/
config.example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
### Start Options ###
ENABLE_CONTROL = True
ENABLE_NEARBY = True
NEARBY_PROCESSES = 1
ENABLE_CROP = True
CROP_PROCESSES = 1
ENABLE_FINDFORT = True
FINDFORT_PROCESSES = 1
POOL_SIZE = 10
### General Settings ###
DB_ENGINE = 'postgres://user:pass@192.168.1.5:5432/monocle_raid'
#DB_ENGINE = 'mysql://user:pass@192.168.1.5:3306/monocle_raid?charset=utf8'
# ScreenShot size config
RAID_NEARBY_SIZE = [
{'width': 1536, 'height': 2048, 'crop_w': 320, 'crop_h': 525, 'crop_y1': 369, 'crop_y2': 977,
'comp3_x': 164, 'comp3_y': 528, 'crop3_x1': 160, 'crop3_x2': 608, 'crop3_x3': 1056,
'comp2_x': 389, 'comp2_y': 528, 'crop2_x1': 384, 'crop2_x2': 832,
'comp1_x': 612, 'comp1_y': 528, 'crop1_x1': 608}, # iPad, iPad mini
{'width': 750, 'height': 1334, 'crop_w': 157, 'crop_h': 260, 'crop_y1': 514, 'crop_y2': 811,
'comp3_x': 80, 'comp3_y': 590, 'crop3_x1': 78, 'crop3_x2': 297, 'crop3_x3': 516,
'comp2_x': 190, 'comp2_y': 590, 'crop2_x1': 188, 'crop2_x2': 406,
'comp1_x': 300, 'comp1_y': 590, 'crop1_x1': 297}, # iPhone
{'width': 640, 'height': 1136, 'crop_w': 134, 'crop_h': 221, 'crop_y1': 436, 'crop_y2': 690,
'comp3_x': 69, 'comp3_y': 503, 'crop3_x1': 67, 'crop3_x2': 253, 'crop3_x3': 440,
'comp2_x': 162, 'comp2_y': 503, 'crop2_x1': 160, 'crop2_x2': 347,
'comp1_x': 255, 'comp1_y': 503, 'crop1_x1': 253}, # iPhone SE
{'width': 1242, 'height': 2208, 'crop_w': 259, 'crop_h': 424, 'crop_y1': 850, 'crop_y2': 1342,
'comp3_x': 133, 'comp3_y': 980, 'crop3_x1': 130, 'crop3_x2': 492, 'crop3_x3': 854,
'comp2_x': 313, 'comp2_y': 980, 'crop2_x1': 310, 'crop2_x2': 672,
'comp1_x': 495, 'comp1_y': 980, 'crop1_x1': 492}, # iPhone Plus
]
### Device Manager Options ###
SCAN_AREA = None
#from shapely.geometry import Polygon
#SCAN_AREA = Polygon([
# [0.0, 0.0],
# [1.0, 1.0],
# [2.0, 0.0]
#])
#SCAN_AREA = 'All'
DEVICE_LIST = None
#DEVICE_LIST = ['168069373365c2dbf9155169cfa3dc2d25068761', 'xxx']
TELEPORT_DELAYS = [5, 5]
SCREENSHOT_DELAYS = [0.25, 0.25]
RESTART_DELAYS = [600, 600]
from os import path
DERIVED_DATA_PATH = path.dirname(path.realpath(__file__))+'/DerivedData'
SCREENSHOT_SAVE_PATH = path.dirname(path.realpath(__file__))+'/DerivedData/Logs/Test/Attachments'
RAID_START_TIME = "06:00"
RAID_END_TIME = "20:00"
# the corner points of a rectangle for download gym url image
# If either of them is (0, 0) then download all gym url image in database
MAP_START = (0,0)
MAP_END = (0,0)
# Webhook
SEND_WEBHOOK = False
WEBHOOK = 'http://yourweb.hook'
# !!! non replacement '{' must be escaped by a second one infront of it !!!
WH_PAYLOAD = """
[{{
"message": {{
"name": "{name_id}",
"latitude": {lat},
"longitude": {lon},
"level": {lvl},
"pokemon_id": {poke_id},
"raid_end": {end},
"raid_begin": {hatch_time},
"cp": {cp},
"move_1": {move_1},
"move_2": {move_2},
"gym_id": "{ext_id}",
"team": {team}
}},
"type": "{type}"
}} ]
"""
### RSSBOT ###
RAID_IMAGE_CHANNELS = ['channel_id_1', 'channel_id_2'] #limit users to using the bot in this channel, right click and copy ID.
TOKEN= '' #discord bot token (NOT bot ID)