https://github.com/tmsmr/pithermal
cat /sys/class/thermal/thermal_zone0/temp as Go Module.
https://github.com/tmsmr/pithermal
cpu-temperature golang raspberry-pi
Last synced: 5 months ago
JSON representation
cat /sys/class/thermal/thermal_zone0/temp as Go Module.
- Host: GitHub
- URL: https://github.com/tmsmr/pithermal
- Owner: tmsmr
- License: mit
- Created: 2021-10-16T18:19:55.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-16T18:30:53.000Z (over 4 years ago)
- Last Synced: 2025-02-12T02:38:39.627Z (over 1 year ago)
- Topics: cpu-temperature, golang, raspberry-pi
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pithermal
*`cat /sys/class/thermal/thermal_zone0/temp` as Go Module.*
## Usage
```go
import "github.com/tmsmr/pithermal"
...
temp, err := pithermal.GetCpuTemp()
if err != nil {
panic(err)
}
```
---
*Not worth a Module at the moment, but there may be more features in the future...*