Google Home Notify Client
Send notifications to Google Home
source: https://github.com/o-o-o/google-home-notify-client
npm: https://www.npmjs.com/package/google-home-notify-client
Installation
npm install google-home-notify-client
Usage
const Scanner = ;Scannername'Google Home';
Scanner (Scan local network)
const Scanner = ; Scanner; // orconst scanner = ;scanner;
IP address filtering
Scanner; // orScanner; // orScanner; // orScanner;
Device name filtering
Scannername'Google Home'; // orScannername'Google Home' 'AQUOS'; // orScannername'Google Home'name'AQUOS'; // orScannername'Google Home' 'AQUOS';
Promise and timeout
const devices = await Scanner;devices;
Device
const Device = ;const device = '192.168.11.1' 'My Google Home'; // language and accentconst device = '192.168.11.1' 'My Google Home' 'ja' 'ja';// language and accent and speechSpeec and speechTimeoutconst device = '192.168.11.1' 'My Google Home' 'ja' 'ja' 1 10 * 1000;
Notify (message)
device; // language and accentdevicelanguage'ja';// speech speed (0.24 = slow), speech timeoutdevice; // use callbackdevice; // use promisetry await device; catch error console;
Play (mp3)
device; // use callbackdevice; // use promisetry await device; catch error console;