google-nest-notifier
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

google-nest-notifier

Send notifications to Google Nest

Usage

import { GoogleNestNotifier } from 'google-nest-notifier'

const googleNestNotifier = new GoogleNestNotifier({
  deviceName: 'Rachael', // You can set deviceName on initialize and/or assign deviceName on notify.
  // or ipAddress: 'xxx.xxx.xxx.xxx',
  language: 'en', // Supported languages: https://cloud.google.com/translate/docs/languages
})

;(async () => {
  const status = await googleNestNotifier.notify('Hello', {
    deviceName: 'Rachael',
    // or ipAddress: 'xxx.xxx.xxx.xxx',
    language: 'en', // supported languages: https://cloud.google.com/translate/docs/languages
  })
  console.log(status)
})()

Package Sidebar

Install

npm i google-nest-notifier

Weekly Downloads

9

Version

0.0.5

License

MIT

Unpacked Size

22.6 kB

Total Files

24

Last publish

Collaborators

  • inouetakuya