Libre Hardware Monitor plugin
Posted: March 22nd, 2022, 11:12 am
Plugin to interface with Libre Hardware Library. Similar to a plugin named sensor bridge but using Libre Hardware Monitor as Open Hardware Monitor hasn't been updated for a long time.
This has my special brew Libre Hardware Monitor library That supports PMBus sensors if that's any use to anyone
Github page https://github.com/stokie-ant/LHM
Releases https://github.com/stokie-ant/LHM/releases
Readme from Github page:
Includes binaries from Libre Hardware Monitor https://github.com/LibreHardwareMonitor ... areMonitor Libre Hardware Monitor is licenced under MPL 2.0
Notes
LCD Smartie has to be run as administrator to use this plugin. DNBridge.dll is required. Copy LHM.dll, LibreHardwareMonitorLib.dll and HidSharp.dll to LCD Smartie plugins dir. On first run it should create a report called LHMreport.txt in the plugins folder. It will have basic variables for accessing each sensor. Delete this file to have it re-created.
function 1 gets hardware or sensor name
function 2 gets subhardware name
function 3 gets sensor value
Syntax:
function 1
takes 1 parameter:
HardwareIndex
$dll(LHM.dll,1,0,0)
or
HardwareIndex#SensorIndex
$dll(LHM.dll,1,1#0,0)
or
HardwareIndex#SubHardwareIndex#SensorIndex
$dll(LHM.dll,1,0#0#0,0)
second parameter ignored but must be present (,0)
function 2
takes 1 parameter for cases where name is sub hardware not sensor
HardwareIndex#SubHardware
$dll(LHM.dll,2,0#0,0)
second parameter ignored but must be present (,0)
function 3
takes 2 parameters
Param1: sensor:
HardwareIndex#SensorIndex
$dll(LHM.dll,3,1#0,0)
or
HardwareIndex#SubHardwareIndex#SensorIndex
$dll(LHM.dll,3,0#0#0,0)
param2: maths for value
0 Direct value as is
or
operator#operand
operator: index one of
Index Operator effect
1 + addition
2 - subtraction
3 / division
4 * multiplication
operand: Value, value to add, subtract, divide or multiply by
or
Operator#Operand#DecimalPlaces
Operator and operand can be zero to just trim the decimal places of a direct number
Examples: get name, hardware index,
$dll(LHM.dll,1,0,0)
get value, hardware index 0# sub hardware 0# sensor 4, multiply# by 6# trim decimal to 2
$dll(LHM.dll,3,0#0#4,4#6#2)
This has my special brew Libre Hardware Monitor library That supports PMBus sensors if that's any use to anyone
Github page https://github.com/stokie-ant/LHM
Releases https://github.com/stokie-ant/LHM/releases
Readme from Github page:
Includes binaries from Libre Hardware Monitor https://github.com/LibreHardwareMonitor ... areMonitor Libre Hardware Monitor is licenced under MPL 2.0
Notes
LCD Smartie has to be run as administrator to use this plugin. DNBridge.dll is required. Copy LHM.dll, LibreHardwareMonitorLib.dll and HidSharp.dll to LCD Smartie plugins dir. On first run it should create a report called LHMreport.txt in the plugins folder. It will have basic variables for accessing each sensor. Delete this file to have it re-created.
function 1 gets hardware or sensor name
function 2 gets subhardware name
function 3 gets sensor value
Syntax:
function 1
takes 1 parameter:
HardwareIndex
$dll(LHM.dll,1,0,0)
or
HardwareIndex#SensorIndex
$dll(LHM.dll,1,1#0,0)
or
HardwareIndex#SubHardwareIndex#SensorIndex
$dll(LHM.dll,1,0#0#0,0)
second parameter ignored but must be present (,0)
function 2
takes 1 parameter for cases where name is sub hardware not sensor
HardwareIndex#SubHardware
$dll(LHM.dll,2,0#0,0)
second parameter ignored but must be present (,0)
function 3
takes 2 parameters
Param1: sensor:
HardwareIndex#SensorIndex
$dll(LHM.dll,3,1#0,0)
or
HardwareIndex#SubHardwareIndex#SensorIndex
$dll(LHM.dll,3,0#0#0,0)
param2: maths for value
0 Direct value as is
or
operator#operand
operator: index one of
Index Operator effect
1 + addition
2 - subtraction
3 / division
4 * multiplication
operand: Value, value to add, subtract, divide or multiply by
or
Operator#Operand#DecimalPlaces
Operator and operand can be zero to just trim the decimal places of a direct number
Examples: get name, hardware index,
$dll(LHM.dll,1,0,0)
get value, hardware index 0# sub hardware 0# sensor 4, multiply# by 6# trim decimal to 2
$dll(LHM.dll,3,0#0#4,4#6#2)