homebridge-macosHomebridge plugin to track Mac OS events

联合创作 · 2023-09-26 08:49

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)
浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报