wire it all together
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-25 01:40:09 +02:00
parent 5d9e815407
commit 15f369446c
8 changed files with 114 additions and 12 deletions

View File

@@ -2,7 +2,8 @@
import logging
import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration
from utils import config
from utils import config, LoopingTimer
from signal_processor import SoundSignalProcessor
"""
Main Entrypoint
@@ -30,12 +31,24 @@ if config.SENTRY_DSN:
)
def main():
def timer_tick(*args) -> None:
"""
Tick of a timer
:param listofabcsignaprocessors:
:return:
"""
for abcsignaprocessor in args:
abcsignaprocessor.processcurrentsignal()
def main() -> None:
"""
Main function
:return:
"""
pass
listofabcsignaprocessors = [SoundSignalProcessor()]
loopingtimer = LoopingTimer(function=timer_tick, args=[listofabcsignaprocessors], interval=config.TICK_INTERVAL)
loopingtimer.start()
if __name__ == "__main__":