AudioClassifier-MQTT
AudioClassifier-MQTT copied to clipboard
error line 66
Hello,
I have conform the guidline install the script, but when i start it i get the next error:
python3 ./listen.py File "./listen.py", line 68 logging.basicConfig(level=LOG_LEVEL, format=LOG_FORMAT.replace(f'%(log_color)s', ''), stream=sys.stdout) ^ SyntaxError: invalid syntax
Its runs on a raspberry pi with clean install.
Please confirm which version of Python you are using by typing python3 --version
. The script has been tested with Python 3.8 and 3.9.
I'm using version 3.9 at this moment. But...i have reinstall the pi (just to be sure) what did the trick.
few small point, in the config file the user and password for the MQTT must be inside "" and the libatlas-base-dev must be installed on the OS.
As far i see it's working now, the sensor is inside the homeassistant mqtt envourment and is publishing data after the switch in HA is on.
Optional wishes. Is it possible to include the maximum and average sound volume, so that you can also monitor peak moments.