Added FEED_TYPE config

This commit is contained in:
2021-12-11 00:19:07 +01:00
parent b665fd835d
commit e609411897
3 changed files with 7 additions and 2 deletions

View File

@@ -36,3 +36,8 @@ REPORT_INTERVAL = float(os.environ.get("REPORT_INTERVAL", 15))
DISABLE_AI = os.environ.get("DISABLE_AI", 'no').lower() in ['yes', '1', 'true']
PLATFORM = os.environ.get("PLATFORM", "raspberry")
FEED_TYPE = os.environ.get("FEED_TYPE", "input") # probably the worst naming the type of the accepting service.
if FEED_TYPE not in ['input', 'filter']:
raise ValueError("FEED_TYPE must be either input or filter")