make trap list configurable

This commit is contained in:
David Bures
2024-06-26 15:24:17 -07:00
parent db4f229b78
commit a6603d4d48
4 changed files with 17 additions and 7 deletions

View File

@@ -13,6 +13,8 @@ DAYS_OF_WEATHER = 2 # weather forecast days, the first two rows are today and to
NO_DATA_NOGPS = "no location data: does your device have GPS?"
ERROR_FETCHING_DATA = "error fetching data"
trap_list_location = ("whereami", "tide", "moon", "wx", "wxc")
def where_am_i(lat=0, lon=0):
whereIam = ""
if float(lat) == 0 and float(lon) == 0:
@@ -157,3 +159,4 @@ def replace_weather(row):
line = line.replace(key, value)
return line