Last active
December 15, 2018 09:55
-
-
Save kiuchikeisuke/04659c366e453331f07947b8da0e5d3e to your computer and use it in GitHub Desktop.
google-home-notifierが気づいたら動かなくなってた時の対処法 ref: https://qiita.com/k_keisuke/items/2974ddaf2bf24a3ea32e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const serverPort = 8091; // default port | |
const token = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; //追加 | |
var deviceName = 'Google Home'; | |
var ip = '192.168.xx.xx'; // default IP | |
// 中略 | |
app.listen(serverPort, function () { | |
ngrok.connect({authtoken: token, addr: serverPort}, function (err, url) { //修正 | |
console.log('Endpoints:'); | |
console.log(' http://' + ip + ':' + serverPort + '/google-home-notifier'); | |
// 略 | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~中略~ | |
"dependencies": { | |
"body-parser": "^1.15.2", | |
"castv2-client": "^1.1.2", | |
"express": "^4.14.0", | |
- "google-tts-api": "0.0.2", | |
+ "google-tts-api": "0.0.4", | |
"mdns": "^2.3.3", | |
"ngrok": "^2.2.4" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment