【文件属性】:
文件名称:google-home-push:向您的 Google Home 设备发送推送通知
文件大小:7KB
文件格式:ZIP
更新时间:2021-08-04 19:28:09
push-notifications google-home push google-cast JavaScript
谷歌主页推送
向您的 Google Home 设备发送推送通知。
安装
$ npm install --save google-home-push
用法
const GoogleHome = require ( "google-home-push" ) ;
// Pass the name or IP address of your device
const myHome = new GoogleHome ( "192.168.0.5" ) ;
myHome . speak ( "Hello world!" ) ;
myHome . push ( "https://example.com/music.mp3" ) ;
例子
使用不同的语言
let options = {
language : "ko"
} ;
const myHome = new GoogleHome ( "
【文件预览】:
google-home-push-master
----index.js(3KB)
----package.json(576B)
----package-lock.json(7KB)
----index.d.ts(636B)
----LICENSE.md(1KB)
----.gitignore(1KB)
----README.md(2KB)