feat!: move config storage to python file
Should help with micropython in the future. Also fix indentation in main
This commit is contained in:
20
config.py
Executable file
20
config.py
Executable file
@@ -0,0 +1,20 @@
|
||||
|
||||
import os
|
||||
|
||||
def configure_env():
|
||||
""" exports environment variables with configuration """
|
||||
|
||||
os.environ["LATITUDE"] = "…"
|
||||
os.environ["LONGITUDE"] = "…"
|
||||
|
||||
os.environ["GOOGLE_API_KEY"] = "…"
|
||||
os.environ["TRAFFIC_FROM"] = "…+FM"
|
||||
#os.environ["TRAFFIC_FROM"] = f"${LATITUDE}-${LONGITUDE}"
|
||||
os.environ["TRAFFIC_1_THROUGH"] = "…+4FP"
|
||||
os.environ["TRAFFIC_2_THROUGH"] = "…+V9J"
|
||||
os.environ["TRAFFIC_TO"] = "…+GX"
|
||||
|
||||
os.environ["AIRLY_API_KEY"] = "…"
|
||||
|
||||
os.environ["OPENWEATHERMAP_API_KEY"] = "…"
|
||||
|
||||
Reference in New Issue
Block a user