This commit is contained in:
parent
5aff5e242b
commit
1292666b66
@ -8,6 +8,7 @@ from birbnetes_iot_platform_raspberry import BirbnetesIoTPlatformStatusDriver
|
|||||||
from actuator import Loudspeaker
|
from actuator import Loudspeaker
|
||||||
import paho.mqtt.client
|
import paho.mqtt.client
|
||||||
import json
|
import json
|
||||||
|
import sys
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Main Entrypoint
|
Main Entrypoint
|
||||||
@ -72,6 +73,8 @@ def main() -> None:
|
|||||||
Main function
|
Main function
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
|
logging.basicConfig(stream=sys.stdout, format="%(asctime)s - %(name)s [%(levelname)s]: %(message)s",
|
||||||
|
level=logging.DEBUG if '--debug' in sys.argv else logging.INFO)
|
||||||
BirbnetesIoTPlatformStatusDriver.init()
|
BirbnetesIoTPlatformStatusDriver.init()
|
||||||
listofabcsignaprocessors = (SoundSignalProcessor())
|
listofabcsignaprocessors = (SoundSignalProcessor())
|
||||||
loopingtimer = LoopingTimer(function=timer_tick, args=[listofabcsignaprocessors], interval=config.TICK_INTERVAL)
|
loopingtimer = LoopingTimer(function=timer_tick, args=[listofabcsignaprocessors], interval=config.TICK_INTERVAL)
|
||||||
|
Loading…
Reference in New Issue
Block a user