Commit b01d1236 authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

Introduce 'dotenv' to decouple code from configuration

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent 3b9057fb
......@@ -7,6 +7,8 @@ import os
from distutils.util import strtobool # pylint: disable=E0401,E0611
from os import environ, path
from dotenv import load_dotenv
def _cast_or_none(func, value):
try:
......@@ -15,6 +17,8 @@ def _cast_or_none(func, value):
return None
load_dotenv()
# Ground station information
SATNOGS_API_TOKEN = environ.get('SATNOGS_API_TOKEN', None)
SATNOGS_PRE_OBSERVATION_SCRIPT = environ.get('SATNOGS_PRE_OBSERVATION_SCRIPT', None)
......
......@@ -21,6 +21,7 @@ zip_safe = False
install_requires =
APScheduler
SQLAlchemy
python-dotenv
requests
validators
python-dateutil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment