https://github.com/eliottrobson/homebridge-macos
Homebridge plugin to track Mac OS events
https://github.com/eliottrobson/homebridge-macos
homebridge macos
Last synced: 12 months ago
JSON representation
Homebridge plugin to track Mac OS events
- Host: GitHub
- URL: https://github.com/eliottrobson/homebridge-macos
- Owner: eliottrobson
- License: mit
- Created: 2019-08-09T20:01:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-12T11:39:17.000Z (over 6 years ago)
- Last Synced: 2025-05-31T14:25:48.410Z (about 1 year ago)
- Topics: homebridge, macos
- Language: JavaScript
- Size: 15.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Homebridge MacOS
Homebridge plugin to track Mac OS events (screen on / off)
# Installation
## Install the plugin
```
sudo npm install @eliottrobson/homebridge-macos -g --registry "https://npm.pkg.github.com"
ln -s /usr/local/lib/node_modules/@eliottrobson/homebridge-macos /usr/local/lib/node_modules/homebridge-macos-@eliottrobson
```
## Configure in homebridge config
```
{
"platform": "homebridge-macos.MacOS",
"name": "Eliott's iMac",
"poll": 3000
}
```
# Debugging
```
DEBUG=* /usr/local/bin/homebridge -D -U ~/Documents/Homebridge/homebridge-dev -P ~/Documents/Source/homebridge-macos
```
# Config
Variable | Description
-------- | -----------
`name` | This will be the name of this sensor, is is required and must be unique.
`poll` | (Optional) This is the amount of time to poll for in milliseconds (default: 5000)