pds-bot #1
12
pds.py
12
pds.py
@@ -480,12 +480,12 @@ class ProductionBotScreen(QWidget):
|
||||
self.awaiting_plants = True
|
||||
QTimer.singleShot(500, self.load_plants)
|
||||
|
||||
def load_plants(self):
|
||||
url = "https://pds.iotsignin.com/api/get/moduleplant-name/data"
|
||||
headers = {
|
||||
"Authorization": "Bearer sb-eba140ab-74bb-44a4-8d92-70a636940def!b1182|it-rt-dev-cri-stjllphr!b68:616d8991-307b-4ab1-be37-7894a8c6db9d$0p0fE2I7w1Ve23-lVSKQF0ka3mKrTVcKPJYELr-i4nE=",
|
||||
"plant-name": "Plant List"
|
||||
}
|
||||
# def load_plants(self):
|
||||
# url = "https://pds.iotsignin.com/api/get/moduleplant-name/data"
|
||||
# headers = {
|
||||
# "Authorization": "Bearer sb-eba140ab-74bb-44a4-8d92-70a636940def!b1182|it-rt-dev-cri-stjllphr!b68:616d8991-307b-4ab1-be37-7894a8c6db9d$0p0fE2I7w1Ve23-lVSKQF0ka3mKrTVcKPJYELr-i4nE=",
|
||||
# "plant-name": "Plant List"
|
||||
# }
|
||||
try:
|
||||
response = requests.get(url, headers=headers, timeout=10)
|
||||
response.raise_for_status()
|
||||
|
||||
Reference in New Issue
Block a user