Some Conky Stuff
function conky_format(format, number)
Usage example:
${lua format %3s ${cpu cpu1}}
function round(value)
function trim(value)
function readlink(path)
function conky_hwmon(device, type, index)
Replacement for ${hwmon ...}
statement with name of device instead number. Also NVME devices named with index: nvme0
, nvme1
, etc.
Usage example:
${lua hwmon k10temp temp 1}
function conky_hwmon_index(device)
Return index of named device.
Usage example:
${lua hwmon_index k10temp}
Get data from apcupsd
service by apcaccess
.
function conky_apcups_get(hostport, property, update)
Get some property. Set update
to true
for one (first) property of device.
Usage example:
${lua apcups_get localhost:3551 model true}
${lua apcups_get localhost:3551 bcharge}
function conky_apcups_load(hostport)
Reload data for device.
Usage example:
${lua apcups_load localhost:3551}${lua apcups_get localhost:3551 model}