Plugin for homebridge providing stats about the running instance.
homebridge-info acts as a server, that emits several infos about the homebridge instance. You can subscribe and display these in the browser frontend.
Features:
As usual, plugins for homebridge are installed with npm
:
npm install -g homebridge-info
Open the config.json
file located in your homebridge directory in your favorite text editor.In the platforms
section, add info to the array:
{
"platform": "Info",
"port": 9876,
"name": "Homebridge Info Server",
"updateFrequency": 10000,
"updateCheckFrequency": 86400
}
The config options are
port (number): The port homebridge-info listens for requests. The default should work fine. If there's a different service in your network, that uses this port, just enter a unused port number here. Default: 9876
name (string): Choose any arbitrary name for this plugin. Default: "Homebridge Info Server"
updateFrequency (number): The plugin will emit updates every n milliseconds, e.g.
Don't set this too low. Default is 10000 (10 seconds).
updateCheckFrequency (number): The plugin will check for if an updated version of homebridge is available every n milliseconds, e.g.
Don't set this too low. Default is 3600000 (every hour).
homebridge-info acts as an EventSource which can be subscribed under /api/info
:
var eventSource = new EventSource('http://ip:port/api/info');
where ip
is the IP address of your homebridge server and port
is the port configured for hombridge-info.
To receive events, add a listener to eventSource
:
eventSource.addEventListener('message', function(e) {
var result = JSON.parse(e.data);
console.log("got message: " + JSON.stringify(result));
}, false);
result
is a JSON object with two properties:
type
: either bridgeInfo
or bridgeUpdateAvailable
data
:
type === "bridgeInfo"
:
uptime
- uptime of the homebridge processheap
- heap memory used by the homebridge processosInfo
- info about the hosthbVersion
- The version of the hombridge instancetype === "bridgeUpdateAvailable"
:
updateAvailable
true
, if the installed version of homebridge is older than the latest releasefalse
, if not"unknown"
, if either the running or latest version could not be determinedlatestVersion
- either "unknown"
or the version number of the latest homebridge releaseSee test.html
for an example browser client.
This plugin uses the API provided by npms.io to check for the latest homebridge version. Therefore, only homebridge versions available on npmjs.com will be reported.
Homebridge 是一个轻量级 NodeJS 服务器,它模拟 iOS HomeKit API,提供从 HomeKit 到“智能家居”设备制造商提供的各种第三方 API 的基本桥接。通过 Homebridge 的桥接,可以让 Siri 控制完全不支持 HomeKit 的设备。 此外 Homebridge 支持插件。
homebridge-macosx-info See changelog homebridge-macosx-info is homebridge plugin for Apple HomeKit, get and return somes systems informations from macOSX computer. Such as : updateTime Temperature (C°
homebridge-vsx homebridge-vsx is a plugin made for homebridge,which allows switching on and off your Pioneer AV receiver. All AV receivers (VSX and SC),which work with the iControl AV5 App are support
homebridge-sesame Control and monitor your Sesame smart lock with HomeKit integration. Prerequisites Installation of Homebridge iOS 11 or later Sesame lock with enabled cloud integration Sesame Wifi A
homebridge-panasonictv A homebridge plugin for turning on and off your Panasonic Viera TV. The plugin also has experimental support for changing the volume and channel. These characteristics are not r
Quick Start | Contribute A Wake on Lan plugin for Homebridge Turn your PCs, laptops, servers and more on and off through Siri Quick Start To install the plugin, head over to the machine with Homebridg