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)
})()

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i google-nest-notifier

    Weekly Downloads

    15

    Version

    0.0.5

    License

    MIT

    Unpacked Size

    22.6 kB

    Total Files

    24

    Last publish

    Collaborators

    • inouetakuya