Skip to content

Commit

Permalink
feat(linux/hwmon): ✨ add an example usage
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuar committed Jan 21, 2024
1 parent ad970be commit 174840f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/linux/hwmon/examples/getAllSensors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) 2024 Joshua Rich <[email protected]>
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT

package main

import "github.com/joshuar/go-hass-agent/pkg/linux/hwmon"

func main() {
for _, s := range hwmon.GetAllSensors() {
println(s.String())
}
}

0 comments on commit 174840f

Please sign in to comment.