This package has been deprecated

Author message:

no longer works

@haydenhigg/gohome

1.0.2 • Public • Published

GoogleHome

This is a small low-level library for interfacing with Google Homes' (hardly-functional) public API.

Usage

const GoHome = require('@haydenhigg/gohome');

var myhome = new GoHome('192.168.86.249'); // or whatever IP there is

myhome.getEurekaInfo(console.log);

Methods

Static:

  • nightModeParams(options) (returns an object; is useful so that you don't have to remember the properties)

Instance:

  • constructor(ip)
  • reboot([cb = () => {}])
  • welcome([cb = () => {}])
  • getAlarms([cb = res => {})
  • setEurekaInfo(data[, cb = () => {}])
  • getEurekaInfo([cb = res => {}])
  • setNightModeParams(data[, cb = () => {}])
  • getNightModeParams([cb = res => {}])

Note: The options for nightModeParams and their defaults are shown below:

{
  doNotDisturb = false,
  enabled = true,
  volume = 0.5,
  ledBrightness = 0.5,
  startHour = 22,
  length = 8, // in hours
  days = [0, 1, 2, 3, 4, 5, 6]
}

Package Sidebar

Install

npm i @haydenhigg/gohome

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

10.5 kB

Total Files

5

Last publish

Collaborators

  • npm