JS 파일 작성하여 음성 제어

  • Google Assistant 이용하여 명렁어를 실행 할 수 있습니다.

sudo nano MagicMirror/modules/MMM-GoogleAssistant/recipes/Reboot-Restart-Shutdown.js

하기와 같이 수정 후 저장합니다.

var recipe = {
  transcriptionHooks: {
        "실행 연습": {
                pattern: "실행 연습",
                command: "Command_1"
    // Describe your transcriptionHook here.
  }
},
  commands: {
        "Command_1": {
        shellExec: {
                exec:"sudo /home/pi/test2.sh"
        }

}
}
}

Last updated