1.0.5 • Published 3 years ago

homebridge-glances v1.0.5

Weekly downloads
6
License
ISC
Repository
github
Last release
3 years ago

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:

PropertyUtilizationDefault ValueDescription
namerequiredGlancesThe name handled by homebridge
platformrequiredGlancesRequired to identify the platform
hostnamerequiredThe ip or hostname of your target system where glances server is running
portoptional61208The port of your target system where glances server is running
updateIntervaloptional5000The update interval in milliseconds to update the sensors, ATTENTION values below 1000 may slow down your homebridge or target system
prefixoptionalA prefix to identify the exposed accessories better
sensorsoptionalfalseEnables the sensors plugin to be exposed
cpuoptionalfalseEnables the cpu plugin to be exposed
memoryoptionalfalseEnables 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
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago