Merge branch 'multi' of https://github.com/Jxck-S/plane-notify into multi
This commit is contained in:
commit
03a1ba7a6f
|
@ -21,7 +21,7 @@ def pullADSBX(planes):
|
|||
data = response.text
|
||||
data = json.loads(data)
|
||||
failed = False
|
||||
except (requests.HTTPError, requests.ConnectionError, requests.Timeout, IncompleteRead) as error_message:
|
||||
except (requests.HTTPError, requests.Timeout, IncompleteRead, ConnectionError, ConnectionResetError) as error_message:
|
||||
print("ADSBX Connection Error")
|
||||
print(error_message)
|
||||
failed = True
|
||||
|
|
2
defSS.py
2
defSS.py
|
@ -9,7 +9,7 @@ from selenium import webdriver
|
|||
import time
|
||||
def getSS(icao):
|
||||
chrome_options = webdriver.ChromeOptions()
|
||||
chrome_options.add_argument('--headless')
|
||||
chrome_options.headless = True
|
||||
chrome_options.add_argument('window-size=800,800')
|
||||
#chrome_options.add_argument('--no-sandbox') # required when running as root user. otherwise you would get no sandbox errors.
|
||||
browser = webdriver.Chrome(options=chrome_options)
|
||||
|
|
|
@ -131,7 +131,7 @@ class Plane:
|
|||
print ("Longitude: ", self.longitude)
|
||||
print ("GEO Alitude Ft: ", self.geo_alt_ft)
|
||||
print(Style.RESET_ALL)
|
||||
#Set Check for inconsistancy in data
|
||||
#Set Check for inconsistancy in data
|
||||
if not self.last_recheck_needed:
|
||||
#Recheck needed if feeding state changes
|
||||
if self.feeding == False and self.last_feeding:
|
||||
|
|
Loading…
Reference in New Issue