Skip to content

Commit

Permalink
https -> http
Browse files Browse the repository at this point in the history
  • Loading branch information
markyharris committed Mar 28, 2022
1 parent 2daf9e8 commit 7390ec0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
6 changes: 3 additions & 3 deletions data.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KCMH
7
3600
kflg
6
1800
0
2 changes: 1 addition & 1 deletion metar_layouts.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,7 @@ def layout6(display, metar, remarks, print_table, use_remarks):
print(lat, lon)

# Image URL is created using https://vfrmap.com/map_api.html
url = "https://vfrmap.com/api?req=map&type=ifrlc&lat="+str(lat)+"&lon="+str(lon)+"&zoom=10&width=790&height=470&api_key=1234"
url = "http://vfrmap.com/api?req=map&type=ifrlc&lat="+str(lat)+"&lon="+str(lon)+"&zoom=10&width=790&height=470&api_key=1234"
display.show_pic(url, COL0, LINE2, "b")

if flightcategory == "VFR":
Expand Down
21 changes: 21 additions & 0 deletions metar_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,24 @@
"KLAX","KNBC","KFVE","KBUF"] #, "KTPA", "KLAS","KGEU","KOLS", \
# "KSAN", "KPDX", "KBOI", "KMSP", "KSTL", "KBNA", "KTYS"]

# Class Bravo airports used to find bad weather to display on Multiple Airports Layout5
class_b = ["KPHX", "KLAX", "KNKX", "KSAN", "KSFO", "KDEN", "KMCO", "KMIA", "KTPA", "KATL", \
"PHNL", "KORD", "KCVG", "KMSY", "KADW", "KBWI", "KBOS", "KDTW", "KMSP", "KMCI", \
"KSTL", "KLAS", "KLSV", "KEWR", "KJFK", "KLGA", "KCLT", "KCLE", "KPHL", "KPIT", \
"KMEM", "KDAL", "KDFW", "KHOU", "KIAH", "KSLC", "KDCA", "KIAD", "KSEA"]

# Class Charlie airports used to find bad weather to display on Multiple Airports Layout5
class_c = ['KBHM', 'KHSV', 'KMOB', 'PANC', 'KDMA', 'KTUS', 'KLIT', 'KXNA', 'KBAB', 'KBUR', \
'KFAT', 'KMRY', 'KOAK', 'KONT', 'KRIV', 'KSBA', 'KSJC', 'KSMF', 'KSNA', 'KCOS', \
'KBDL', 'KDAB', 'KFLL', 'KJAX', 'KNDZ', 'KNPA', 'KNSE', 'KPBI', 'KPNS', 'KRSW', \
'KSFB', 'KSRQ', 'KTLH', 'KSAV', 'PHOG', 'KBOI', 'KCMI', 'KMDW', 'KMLI', 'KPIA', \
'KSPI', 'KEVV', 'KFWA', 'KIND', 'KSBN', 'KCID', 'KDSM', 'KICT', 'KLEX', 'KSDF', \
'KBAD', 'KBTR', 'KLFT', 'KSHV', 'KBGR', 'KPWM', 'KFNT', 'KGRR', 'KLAN', 'KCBM', \
'KJAN', 'KSGF', 'KBIL', 'KLNK', 'KOFF', 'KOMA', 'KRNO', 'KMHT', 'KACY', 'KABQ', \
'KALB', 'KBUF', 'KISP', 'KROC', 'KSYR', 'KAVL', 'KFAY', 'KGSO', 'KPOB', 'KRDU', \
'KCAK', 'KCMH', 'KDAY', 'KTOL', 'KOKC', 'KTIK', 'KTUL', 'KPDX', 'KABE', 'KPVD', \
'KCAE', 'KCHS', 'KGSP', 'KMYR', 'KSSC', 'KBNA', 'KCHA', 'KTYS', 'KABI', 'KAMA', \
'KAUS', 'KCRP', 'KDLF', 'KDYS', 'KELP', 'KHRL', 'KLBB', 'KMAF', 'KSAT', 'KBTV', \
'KORF', 'KRIC', 'KROA', 'KGEG', 'KNUW', 'KSKA', 'KCRW', 'KGRB', 'KMKE', 'KMSN', \
'TJSJ', 'TIST']

0 comments on commit 7390ec0

Please sign in to comment.