-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py
More file actions
116 lines (111 loc) · 3.46 KB
/
Copy pathsettings.py
File metadata and controls
116 lines (111 loc) · 3.46 KB
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
import os
# Operations1 API Settings
TENANT = os.getenv('OP1_TENANT', '')
TOKEN = os.getenv('OP1_TOKEN', '')
BASE_URL = os.getenv('OPS1_API_BASE_URL', 'https://api.operations1.app/tenants')
DEFAULT_RETRY_TIME = 5 # seconds
MAX_API_RETRIES = 5
SN_IID = 274
INSPECTION_PROD_TYPE_IID = 306
PROD_TYPE_KEY = 'Produkt Typ / Product Type'
TEST_TYPE_KEY = 'Test Type'
# Azure Storage Resource Settings
OPS1_API_Q_NAME = os.getenv('OPS1_Q_NAME', 'ops1-api-queue')
OPS1_API_Q_URL = os.getenv('OPS1_Q_URL', 'https://sttestdatasvcprod01.queue.core.windows.net')
#TABLE_STORAGE_URL = os.getenv('TABLE_STORAGE_URL', 'https://falcondata01.table.core.windows.net/PerformanceReports')
TABLE_STORAGE_URL = os.getenv('AzureWebJobsStorage', 'https://falcondata01.table.core.windows.net/PerformanceReports')
PERF_REPORT_TABLE = os.getenv('REPORT_CACHE_NAME', 'PerformanceReports')
FINAL_INSP_REPORT_TABLE = os.getenv('FINAL_INSP_REPORT_CACHE', '01FinalInspectionReports')
RECHECK_OPS1_Q_TIME = 10 # seconds
# Product settings
PRODUCT_SETTINGS = {
"rook21": {
'performance': {
'supported': True,
"product_classifier_id": 348,
"stepPosition": 2,
"vpids": {
"SN": 15390,
"PD": 15429,
"PWR": 15430,
"SCFM": 15431,
"TA": 15432,
"ST": 15433,
"AV": 15434,
"RV": 15435,
"Hz": 0,
},
},
'final_insp': {
'supported': True,
'prefix': 'BL',
'pn': 'PN.000.00000',
},
},
"falcon1": {
'performance': {
'supported': True,
"product_classifier_id": 346,
"stepPosition": 2,
"vpids": {
"SN": 21317,
"RPM": 21325,
"PWR": 21326,
"A": 21327,
"TA": 21329,
"ST": 21328,
#"V": 9735,
"RV1": 21333,
"AV1": 21334,
# "RV2": 15515,
# "AV2": 15516,
# "RV3": 15517,
# "AV3": 15518,
# "RV4": 15519,
# "AV4": 15520,
# "RV5": 15521,
# "AV5": 15522,
"PG": 21425,
},
},
'final_insp': {
'supported': True,
'prefix': 'BL',
'pn': 'PN.000.00000',
},
},
"miniakb1": {
'performance': {
'supported': True,
"product_classifier_id": 347,
"stepPosition": 2,
"vpids": {
"SN": 10146,
"ST": 15625,
"Test Press": 1,
"Press Decay": 15626,
"Pressure": 10290,
"Leak Result": 1,
"AV": 16116,
"RV": 16117,
"TA": 15630,
"PWR": 10305,
"AMPS": 10292,
"RPM": 10291,
},
},
'final_insp': {
'supported': True,
'prefix': 'BL',
'pn': 'PN.000.00000',
},
},
"abl": {
'performance': {
'supported': False,
},
'final_insp': {
'supported': False,
},
},
}