npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-glances

v1.0.5

Published

Homebridge Glances Plugin

Downloads

9

Readme

Homebridge Glances plugin

verified-by-homebridge

This Homebridge plugin platform exposes the temperature sensors, cpu load and memory load from Glances Monitoring Tool as accessoires to homebridge.

Installation

npm install -g homebridge-glances

You need to install Glances on your target system and start it in server mode, which is done via the paramater -w. Start the Glances server with your own configuration. See -> Configuration Docs. You can also put aliases to you sensors there, so on default they have generic names like 'it3451' etc. Following Plugins are supported:

  • sensors -> Temperature data
  • cpu -> Cpu load
  • mem -> Memory load

Annotation : The cpu loads and memory loads are exposed as HumidityService, because the loads are in percent value, the HumidityService.CurrentRelativeHumidity characteristic was the best option for that.

Example:

[sensors]
#enable it
disable=False 
#alias for 'it3451'
it3451_alias=CoreTemp1

[cpu]
#enable it
disable=False 
[...]

[mem]
#enable it
disable=False 
[...]

Homebridge configuration

To enable the platform in homebridge add the following to the config:

platforms:
[
	{
		"name":  "Glances",
		"platform":  "Glances",
		"hostname":  "{IP},
		"updateInterval":  3000,
		"prefix":  "{PREFIX}",
		"sensors": true,
		"cpu": true,
		"memory": true
	}
]

following parameters are defined:

| Property | Utilization | Default Value | Description |--|--|--|--| | name | required | Glances| The name handled by homebridge | |platform|required|Glances|Required to identify the platform| |hostname|required||The ip or hostname of your target system where glances server is running| |port|optional|61208|The port of your target system where glances server is running| |updateInterval|optional|5000|The update interval in milliseconds to update the sensors, ATTENTION values below 1000 may slow down your homebridge or target system| |prefix|optional||A prefix to identify the exposed accessories better| |sensors|optional|false|Enables the sensors plugin to be exposed| |cpu|optional|false|Enables the cpu plugin to be exposed| |memory|optional|false|Enables the memory plugin to be exposed|

Release Notes

Version 1.0.0

  • Initial Version

Version 1.0.1

  • Some small fixes

Version 1.0.2

  • made it all asynch
  • changed from StaticPlatform to DynamicPlatform (for async reasons)
  • better error handling
  • logs

Future plans:

  • add support for multiple hosts
  • more plugins for glances to expose network and filesystem