use rpi gpi transport, set default log level do info
This commit is contained in:
@@ -164,7 +164,7 @@ if audio_mode in ["Webapp", "USB"]:
|
||||
config = auracast_config.AuracastConfigGroup(
|
||||
auracast_sampling_rate_hz=q['rate'],
|
||||
octets_per_frame=q['octets'],
|
||||
transport="auto",
|
||||
transport='serial:/dev/ttyAMA3,1000000,rtscts', # transport for raspberry pi gpio header
|
||||
bigs = [
|
||||
auracast_config.AuracastBigConfig(
|
||||
name=stream_name,
|
||||
|
||||
@@ -363,8 +363,8 @@ async def shutdown():
|
||||
|
||||
if __name__ == '__main__':
|
||||
import uvicorn
|
||||
log.basicConfig(
|
||||
level=os.environ.get('LOG_LEVEL', log.DEBUG),
|
||||
log.basicConfig( # for debug log level export LOG_LEVEL=DEBUG
|
||||
level=os.environ.get('LOG_LEVEL', log.INFO),
|
||||
format='%(module)s.py:%(lineno)d %(levelname)s: %(message)s'
|
||||
)
|
||||
uvicorn.run(app, host="0.0.0.0", port=5000)
|
||||
Reference in New Issue
Block a user