Implemented mqtt stuff
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-09-30 04:08:36 +02:00
parent 4cc347074a
commit 8f44e7d13a
4 changed files with 45 additions and 0 deletions

View File

@ -19,6 +19,12 @@ DEVICE_ID = os.environ.get("DEVICE_ID", "devraspi")
TICK_INTERVAL = float(os.environ.get("TICK_INTERVAL", 0.4))
SAMPLE_LENGTH = float(os.environ.get("SAMPLE_LENGTH", 1))
ENEMY_SOUNDS = os.environ.get("ENEMY_SOUNDS", '/var/lib/birbnetes/enemy_sounds')
MQTT_HOSTNAME = os.getenv("GUARD_MQTT_HOSTNAME", "localhost")
MQTT_PORT = int(os.getenv("GUARD_MQTT_PORT", 1883))
MQTT_USERNAME = os.getenv("GUARD_MQTT_USERNAME", None)
MQTT_PASSWORD = os.getenv("GUARD_MQTT_PASSWORD", None)
TARGET_NAME = os.environ.get("TARGET_CLASS_NAME")
MODEL_ID = os.environ.get("MODEL_ID")