Skip to content

willnewii/homebridge-plantower

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-plantower

Homebridge plugin for plantower sensors

Based on node-plantower

npm version Current version - 0.0.1

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-plantower

edit file

path->node_modules/plantower/plantower.js
//line:43
ret.error   ==>  ret.error.value !== 0
  1. Update your configuration file. See sample config.json snippet below.

Config.json example

    "accessories": [
        {
            "accessory": "plantower",
            "name": "PM2.5",
            "model":"PMS5003ST",
            "device":"/dev/ttyAMA0"
        }
    ]
  • model: device model eg: PMS5003/PMS3003
  • device: serial port eg: '/dev/ttyAMAO'

Releases

No releases published

Packages

No packages published