{"id":26149541,"url":"https://github.com/ghostrick/node-googlehome","last_synced_at":"2025-04-14T03:52:12.022Z","repository":{"id":57311373,"uuid":"115293702","full_name":"ghostrick/node-googlehome","owner":"ghostrick","description":"🍰 It uses Node.js to communicate with Google Home.","archived":false,"fork":false,"pushed_at":"2019-01-08T23:42:13.000Z","size":17,"stargazers_count":19,"open_issues_count":2,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T17:51:49.502Z","etag":null,"topics":["google","googlehome","javascript","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ghostrick.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}},"created_at":"2017-12-25T00:18:22.000Z","updated_at":"2022-12-22T22:36:19.000Z","dependencies_parsed_at":"2022-09-10T22:10:09.336Z","dependency_job_id":null,"html_url":"https://github.com/ghostrick/node-googlehome","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostrick%2Fnode-googlehome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostrick%2Fnode-googlehome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostrick%2Fnode-googlehome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghostrick%2Fnode-googlehome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghostrick","download_url":"https://codeload.github.com/ghostrick/node-googlehome/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248635848,"owners_count":21137318,"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":["google","googlehome","javascript","nodejs"],"created_at":"2025-03-11T05:33:12.176Z","updated_at":"2025-04-14T03:52:12.003Z","avatar_url":"https://github.com/ghostrick.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-googlehome\nIt uses Node.js to communicate with Google Home.  \n  \n[![npm version](https://badge.fury.io/js/node-googlehome.svg)](https://badge.fury.io/js/node-googlehome)\n[![Build Status](https://travis-ci.org/Ghostrick/node-googlehome.svg?branch=master)](https://travis-ci.org/Ghostrick/node-googlehome)\n\n## Install\n### npm\n```bash\n$ npm install node-googlehome --save\n```\n### yarn\n```bash\n$ yarn add node-googlehome\n```\n\n## Usage\n```js\nconst GoogleHome = require('node-googlehome')\n\n/**\n * search google home.\n * @param {waitTime: number(default: 1000)}\n */\nGoogleHome.search(1000)\n  .then(resp =\u003e { console.log(resp) })\n\n/**\n * connect google home with IP.\n * @param {ip_address: string}\n */\nlet device = new GoogleHome.Connecter('192.168.11.13')\n\n/**\n * setting language\n * @param {{lang: string(default: 'en')}}\n */\ndevice.config({lang: 'ja'})\n\n\n/**\n * Start speaker.\n * If you do this, google home will immediately sound when you call speak() or playMedia()\n */\ndevice.readySpeaker()\n  .then(() =\u003e { /* do something */ })\n\n/**\n * play media. pass media url.\n * @param {url: string}\n */\ndevice.playMedia('http://www.hypertrombones.jp/sample/system7.mp3')\n  .then(console.log)\n  .catch(console.log)\n\n/**\n * google home speak!\n * @param {message: string, speed: number(default:1), timeout: number(default: 3000)}\n */\ndevice.speak('こんにちは！')\n  .then(console.log)\n  .catch(console.log)\n```\n\n## Requirements\n・Node.js \u003e= v7\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostrick%2Fnode-googlehome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostrick%2Fnode-googlehome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostrick%2Fnode-googlehome/lists"}