homebridge-sensehat

0.1.0 • Public • Published

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

  1. Install Homebridge using npm install -g homebridge.
  2. Install this plugin npm install -g homebridge-sensehat.
  3. Update your configuration file. See below for an example.

Notes

  1. script_path (with trailing /) should point to the directory where the two python scripts are located.
  2. 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

Package Sidebar

Install

npm i homebridge-sensehat

Weekly Downloads

10

Version

0.1.0

License

MIT

Last publish

Collaborators

  • sjroberts