Raspberry Pi Google Assistant: googlesamples-assistant-pushtotalk command saying no config found

两盒软妹~` 提交于 2019-12-25 03:21:06

问题


I'm making a google assistant with my Raspberry Pi 3 and I'm just trying make an LED turn on and off like in the docs (https://developers.google.com/assistant/sdk/guides/service/python/extend/handle-device-commands) but when I run this command googlesamples-assistant-pushtotalk to test it, I get an error:

(env) pi@raspberrypi:~ $ googlesamples-assistant-pushtotalk
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or 
directory: '/home/pi/.config/googlesamples- 
 assistant/device_config.json'
INFO:root:Registering device
ERROR:root:Option --device-model-id required when registering a device 
instance.

I've tried troubleshooting but nothing seems to work. I'm completely lost here. Any help appreciated!

Thanks!


回答1:


So it turns out I just needed to add the device model id and the project id to the end of the command so it could register.

googlesamples-assistant-pushtotalk --device-model-id <device model id> --project-id <project id>

I hope this helps others!



来源:https://stackoverflow.com/questions/53584065/raspberry-pi-google-assistant-googlesamples-assistant-pushtotalk-command-saying

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!