{"action":"created","issue":{"url":"https://api.github.com/repos/shivasiddharth/GassistPi/issues/323","repository_url":"https://api.github.com/repos/shivasiddharth/GassistPi","labels_url":"https://api.github.com/repos/shivasiddharth/GassistPi/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/shivasiddharth/GassistPi/issues/323/comments","events_url":"https://api.github.com/repos/shivasiddharth/GassistPi/issues/323/events","html_url":"https://github.com/shivasiddharth/GassistPi/issues/323","id":320298214,"node_id":"MDU6SXNzdWUzMjAyOTgyMTQ=","number":323,"title":"Triggering from GPIO17 on Zero w","user":{"login":"jptrsn","id":5185267,"node_id":"MDQ6VXNlcjUxODUyNjc=","avatar_url":"https://avatars3.githubusercontent.com/u/5185267?v=4","gravatar_id":"","url":"https://api.github.com/users/jptrsn","html_url":"https://github.com/jptrsn","followers_url":"https://api.github.com/users/jptrsn/followers","following_url":"https://api.github.com/users/jptrsn/following{/other_user}","gists_url":"https://api.github.com/users/jptrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/jptrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jptrsn/subscriptions","organizations_url":"https://api.github.com/users/jptrsn/orgs","repos_url":"https://api.github.com/users/jptrsn/repos","events_url":"https://api.github.com/users/jptrsn/events{/privacy}","received_events_url":"https://api.github.com/users/jptrsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-04T14:32:47Z","updated_at":"2018-06-14T23:54:32Z","closed_at":null,"author_association":"NONE","body":"I'm using a Pi Zero W with the ReSpeaker 2mic hat. I've gotten things working, and after running the pi zero installer script, the assistant can hear and respond properly, so I'm confident that the installation was successful.\r\n\r\nHowever, I'm not able to trigger the assistant with the on-board button. I've modified pushbutton.py to change the trigger pin to GPIO17.\r\n\r\n```\r\n#Trigger Pin\r\nGPIO.setup(17, GPIO.IN)\r\n```\r\nand\r\n```\r\n # If no file arguments supplied:\r\n        # keep recording voice requests using the microphone\r\n        # and playing back assistant response using the speaker.\r\n        # When the once flag is set, don't wait for a trigger. Otherwise, wait.\r\n        wait_for_user_trigger = not once\r\n        while True:\r\n            if wait_for_user_trigger:\r\n                button_state=GPIO.input(17)\r\n                if button_state==True:\r\n                    continue\r\n                else:\r\n                    pass\r\n```\r\nHowever, it's not picking up on button presses. When I reboot the pi, I hear the chime, then the assistant says \"Hi\" but I get nothing after that. It may be that the logic is inverse from GPIO22 (although I couldn't find any reference to whether the button is active low or active high for either project).\r\n\r\nI'm also curious about the support for custom hot words on the pi zero w. I've been reading the issues, and it looks like it was previously supported, but then Google made a change to their API so it's not working at present -- is this a correct statement?"},"comment":{"url":"https://api.github.com/repos/shivasiddharth/GassistPi/issues/comments/397472252","html_url":"https://github.com/shivasiddharth/GassistPi/issues/323#issuecomment-397472252","issue_url":"https://api.github.com/repos/shivasiddharth/GassistPi/issues/323","id":397472252,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzQ3MjI1Mg==","user":{"login":"abovedmc","id":5209050,"node_id":"MDQ6VXNlcjUyMDkwNTA=","avatar_url":"https://avatars0.githubusercontent.com/u/5209050?v=4","gravatar_id":"","url":"https://api.github.com/users/abovedmc","html_url":"https://github.com/abovedmc","followers_url":"https://api.github.com/users/abovedmc/followers","following_url":"https://api.github.com/users/abovedmc/following{/other_user}","gists_url":"https://api.github.com/users/abovedmc/gists{/gist_id}","starred_url":"https://api.github.com/users/abovedmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abovedmc/subscriptions","organizations_url":"https://api.github.com/users/abovedmc/orgs","repos_url":"https://api.github.com/users/abovedmc/repos","events_url":"https://api.github.com/users/abovedmc/events{/privacy}","received_events_url":"https://api.github.com/users/abovedmc/received_events","type":"User","site_admin":false},"created_at":"2018-06-14T23:54:32Z","updated_at":"2018-06-14T23:54:32Z","author_association":"NONE","body":"In looking at further, I see GPIO 17  is connected to physical pin 11.  Could you give a little more coaching on which file to change and how it might look?\r\nhttps://pinout.xyz/pinout/pin11_gpio17\r\n\r\nI'm getting close to a solution.  I was able to start pushbutton.py at startup and can manually start it too.  But without a pushbutton, I can't get assistant to respond after the chimes and \"hi\"."}}
{"actor":{"display_login":"abovedmc"}}