feat!: move config storage to python file

Should help with micropython in the future.
Also fix indentation in main
This commit is contained in:
2022-01-16 20:30:52 +01:00
parent 320b1a2362
commit 1440112dab
4 changed files with 29 additions and 28 deletions

20
config.py Executable file
View 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"] = ""