From b6f76da409be98e69cbbe02f966e95775a690e12 Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Tue, 24 Dec 2024 19:02:17 +0100 Subject: [PATCH] Add IDBR. Update deps: - golang.org/x/text to v0.21.0 - github.com/jedib0t/go-pretty/v6 to v6.6.5 --- go.mod | 3 ++- go.sum | 6 ++++-- smc/sensors.go | 1 + src/current.txt | 1 + 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index e555b3d..5730ac7 100644 --- a/go.mod +++ b/go.mod @@ -14,12 +14,13 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect + golang.org/x/text v0.21.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) require ( github.com/inconshreveable/mousetrap v1.1.0 // indirect - github.com/jedib0t/go-pretty/v6 v6.6.4 + github.com/jedib0t/go-pretty/v6 v6.6.5 github.com/mattn/go-runewidth v0.0.16 // indirect github.com/rivo/uniseg v0.4.7 // indirect github.com/spf13/pflag v1.0.5 // indirect diff --git a/go.sum b/go.sum index 15ada15..6deade2 100644 --- a/go.sum +++ b/go.sum @@ -7,8 +7,8 @@ github.com/goccy/go-json v0.10.4 h1:JSwxQzIqKfmFX1swYPpUThQZp/Ka4wzJdK0LWVytLPM= github.com/goccy/go-json v0.10.4/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M= github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= -github.com/jedib0t/go-pretty/v6 v6.6.4 h1:B51RjA+Sytv0C0Je7PHGDXZBF2JpS5dZEWWRueBLP6U= -github.com/jedib0t/go-pretty/v6 v6.6.4/go.mod h1:zbn98qrYlh95FIhwwsbIip0LYpwSG8SUOScs+v9/t0E= +github.com/jedib0t/go-pretty/v6 v6.6.5 h1:9PgMJOVBedpgYLI56jQRJYqngxYAAzfEUua+3NgSqAo= +github.com/jedib0t/go-pretty/v6 v6.6.5/go.mod h1:Uq/HrbhuFty5WSVNfjpQQe47x16RwVGXIveNGEyGtHs= github.com/mattn/go-runewidth v0.0.16 h1:E5ScNMtiwvlvB5paMFdw9p4kSQzbXFikJ5SQO6TULQc= github.com/mattn/go-runewidth v0.0.16/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= github.com/panotza/gosmc v1.0.0 h1:xlszb8fU00ixVI5W00nnvicK66e6fKrVzffznnwqVlw= @@ -27,6 +27,8 @@ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOf github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/sys v0.28.0 h1:Fksou7UEQUWlKvIdsqzJmUmCX3cZuD2+P3XyyzwMhlA= golang.org/x/sys v0.28.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= +golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/smc/sensors.go b/smc/sensors.go index c084e86..f7521e9 100644 --- a/smc/sensors.go +++ b/smc/sensors.go @@ -472,6 +472,7 @@ var AppleCurrent = []SensorStat{ {Key: "IAPC", Desc: "WLAN Low-Side"}, {Key: "IBAC", Desc: "Battery"}, {Key: "IBLC", Desc: "Backlight"}, + {Key: "IDBR", Desc: "Brightness"}, {Key: "IC0I", Desc: "CPU I/O High Side"}, {Key: "IC0S", Desc: "CPU SA High Side"}, {Key: "IC1R", Desc: "CPU High Side From EMC1704"}, diff --git a/src/current.txt b/src/current.txt index 0e14bde..5c76f6c 100644 --- a/src/current.txt +++ b/src/current.txt @@ -19,6 +19,7 @@ Charger BMON:IPBR WLAN Low-Side:IAPC Battery:IBAC Backlight:IBLC +Brightness:IDBR CPU I/O High Side:IC0I CPU SA High Side:IC0S CPU High Side From EMC1704:IC1R