homebridge-go-plantower

0.1.3 • Public • Published

homebridge-go-plantower

Homebridge plugin for plantower sensors

Uses go-plantower CLI tool

npm version

Screenshots

Installation

Homebridge Installation

You may need to use the --unsafe-perm flag if you receive an error similar to this: gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.5.0"

  1. Install homebridge using: npm install -g homebridge

  2. Install this plugin using: npm install -g homebridge-go-plantower

  3. Ensure that the go-plantower binary is accessible and permitted to be run by Homebridge. Note for Raspbian: Ensure your Homebridge user is part of the dialout group.

  4. Update your configuration file. See sample config.json snippet below.

Config.json example

  "accessories": [
    {
      "accessory": "go-plantower",
      "name": "Plantower",
      "device": "/dev/ttyAMA0",
      "model": "pms5003",
      "binary": "/usr/local/bin/go-plantower",
      "interval": 120,
      "timeout": 10
    }
  ]

Only accessory and name are required, the rest have defaults. interval and timeout are in seconds. However, see go-plantower on possible values for model and device.

Readme

Keywords

Package Sidebar

Install

npm i homebridge-go-plantower

Weekly Downloads

1

Version

0.1.3

License

ISC

Unpacked Size

5.88 kB

Total Files

4

Last publish

Collaborators

  • duncanleo