homebridge-sensehat
v0.1.0
Published
homebridge plugin for Sense Hat equipped Raspberry PI
Downloads
5
Maintainers
Readme
homebridge-sensehat
A Homebridge plugin for a Sense HAT equipped Raspberry Pi
The real work is performed by two small Python programs: leds.py is used for controlling the Sense HAT's LEDs and sensors.py for reading the temperature, humidity and air pressure sensors.
Installation
- Install Homebridge using
npm install -g homebridge
. - Install this plugin
npm install -g homebridge-sensehat
. - Update your configuration file. See below for an example.
Notes
- script_path (with trailing /) should point to the directory where the two python scripts are located.
- The user under which homebridge runs (often homebridge) needs to be able to use the Sense HAT API, the easiest way to do this is to make the user a member of the groups video, i2c (and others, to be documented).
Configuration
Example configuration (polling intervals default to indicated seconds):
"accessories": [
{
"accessory": "SenseHat",
"name": "Sense Hat",
"script_path": "path to python scripts",
"led_interval": 2,
"sensors_interval": 10
}
]
See also
License
MIT