{"id":13830528,"url":"https://github.com/gauravsacc/MMM-GoogleAssistant","last_synced_at":"2025-07-09T11:33:29.244Z","repository":{"id":217324874,"uuid":"95463473","full_name":"gauravsacc/MMM-GoogleAssistant","owner":"gauravsacc","description":"Google Assistant module for magic mirror https://github.com/MichMich/MagicMirror","archived":false,"fork":false,"pushed_at":"2018-04-19T17:21:20.000Z","size":156,"stargazers_count":117,"open_issues_count":40,"forks_count":40,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-08-04T10:03:19.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gauravsacc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-06-26T15:51:05.000Z","updated_at":"2024-04-07T17:29:15.000Z","dependencies_parsed_at":"2024-01-15T19:44:14.255Z","dependency_job_id":"5a738147-28cf-4473-ad93-bc310a3b0387","html_url":"https://github.com/gauravsacc/MMM-GoogleAssistant","commit_stats":null,"previous_names":["gauravsacc/mmm-googleassistant"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravsacc%2FMMM-GoogleAssistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravsacc%2FMMM-GoogleAssistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravsacc%2FMMM-GoogleAssistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gauravsacc%2FMMM-GoogleAssistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gauravsacc","download_url":"https://codeload.github.com/gauravsacc/MMM-GoogleAssistant/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225539430,"owners_count":17485326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T10:01:01.559Z","updated_at":"2024-11-20T11:30:55.876Z","avatar_url":"https://github.com/gauravsacc.png","language":"Python","funding_links":[],"categories":["Assistants"],"sub_categories":[],"readme":"# MMM-GoogleAssistant\n\nGoogle Assistant module for your Magic Mirror.\n\nYou can now ask questions to your MagicMirror powered by Google Assistant.\n\nAll this module does for now is show the following logo -\n\n![](assistant_inactive.png)\n\nAnd animates it to following when assistant is activated using the hotword 'Ok Google' -\n\n![](assistant_active.png)\n\nIt also shows up parsed user speech that is sent to Google Assistant.\n\n## Installation\n\nThis module uses a pubsub model to communicate with google assistant running on Pi.\n\n### Create an app in pubnub admin console\nSignup for a free dev account here https://admin.pubnub.com/#/register and create an app and get publish and subscriber keys to configure it in following files and `config.js`.\n\nReplace keys in following files\n* pi/assistant.py\n\n### Setup GA Module\n* `git clone https://github.com/gauravsacc/MMM-GoogleAssistant.git` into the `~/MagicMirror/modules` directory.\n* Install all dependencies by running 'npm install' from the ''~/MagicMirror/modules/MMM-GoogleAssistant' directory\n### Register your GA device\nRegister your GA device using the register-tool available here and replace the magic-mirror-device-id in the assistant.py with your unique device id\nhttps://developers.google.com/assistant/sdk/reference/device-registration/device-tool\n\n### Setup Google Assistant on Pi\n* Setup your raspberry pi and run the sample to verify if your google assistant is working https://developers.google.com/assistant/sdk/prototype/getting-started-pi-python/run-sample\n* If you are able to launch google-assistant-demo(see link above) and use the assistant, you should able to use the 'pi/assistant.py' script that communicates with the magic mirror module.\n* Install Pubnub dependencies using pip install 'pubnub\u003e=4.0.13'\n* Download the 'pi/assistant.py' script on your raspberry pi and launch it via terminal\n* If you see a 'No module named google' error try running it via /home/pi/env/bin/python3 -u assistant.py\n\n\n## Add to Config.js\n    {\n        module: \"MMM-GoogleAssistant\",\n        position: \"top_right\",\n        config: {\n            maxWidth: \"100%\",\n            header: \"\",\n\t    publishKey: 'YOUR_PUBNUB_PUBLISH_KEY',\n\t    subscribeKey: 'YOUR_PUBNUB_SUBSCRIBE_KEY',\n\t    updateDelay: 500\n        }\n    },\n\n## Video\nplace holder for Video\n\n## What's coming in future?\n* use Node.js gRPC bindings so we don't have to use assistant.py running separately\n* Local Command support - Create a dictionary of commands that can be processed locally. If a command can be processed locally don't send it to cloud.\n* Integration with other modules (via Socket Notifications)\n* Integration with Api.ai to parse local commands in natural language.\n* Show/Hide modules based on the user query context\n  e.g - Ok, google how's the weather today?\n  Google Assistant answers the weather and MagicMirror brings up a detailed weather module\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauravsacc%2FMMM-GoogleAssistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgauravsacc%2FMMM-GoogleAssistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgauravsacc%2FMMM-GoogleAssistant/lists"}