Use submodules to process the actual data then use MQTT / HTTP in order to have the bed to the actual changes needed (such as lifting the pillow)
E.g. SmartSleep app (ran via 'flask run') sends sounds data to the snoring.py standalone, snoring.py determines if the user is snoring and if it does, sends the request to the SmartSleep app to lift the pillow.
Use submodules to process the actual data then use MQTT / HTTP in order to have the bed to the actual changes needed (such as lifting the pillow)
E.g. SmartSleep app (ran via 'flask run') sends sounds data to the snoring.py standalone, snoring.py determines if the user is snoring and if it does, sends the request to the SmartSleep app to lift the pillow.