Conda
啟動 conda 環境: conda activate aiot
Central broker
打開 docker console ,找到 rabbitmq 點選 start
回到程式資料夾底下,啟動 central broker
Config
刪除或新增"APP"的UI介面,上傳 config
啟動:
python main.py
上傳:
POST -> try it out -> 選擇檔案 -> execute
查看 Responses -> Code,如果有成功會寫: Build App successfully
Server
到 application 的資料夾底下,啟動 server
python server.py
Client
到 application 的資料夾底下,用 client.py 送資料
python client.py --audio <filename>.wav
Build container from a dockerfile
docker build -t <name> .
docker run --rm <name>
沒有留言:
張貼留言