mefri / lcdproc-temperature Goto Github PK
View Code? Open in Web Editor NEWSmall lcdproc mod adding a custom CPU/Memory/Temperature screen
Small lcdproc mod adding a custom CPU/Memory/Temperature screen
Howdy,
Hopefully this message gets to you even though your repo appears to be dormant for some years now.
You've done some great work here aaaaaaand I'd like to see if it possible to integrate/modify this patch for FreeBSD purposes.
I'm not entirely familiar with how Linux/Debian goes about reporting cpu core temperatures...I'm assuming the "/sys/class/thermal/thermal_zone0/temp" file simply contains a number that is expressed as the temperature in Celsius?
FreeBSD reports cpu core temperatures with "sysctl dev.cpu..temperature: C" . This is given provided that the Kernel module "coretemp.ko" is loaded. We can, for instance, grab that temperature number by executing "exec sysctl -n dev.cpu.0.temperature | cut -c-2" , which gives us a whole number (40) ... "exec sysctl -n dev.cpu.0.temperature | cut -c-4" gives us a number with one decimal (40.1)... "exec sysctl -n dev.cpu.0.temperature | cut -c-5" gives us a number with one decimal and C (C for Celsius)
Full disclosure: I am actually only interested in displaying the temperature, not so much the other very useful gauges you've included in the [Total] screen.
Have you any suggestions/insights in how I might achieve this? Perhaps a modified version of your [Total] screen that is specific to FreeBSD, with say, the cpu core temperatures (individual and/or average of the combined cores) and perhaps along with other temperature sensors on the motherboard? Motherboard temperatures can be provided by executing "sysctl hw.acpi.thermal.tz0.temperature", and for motherboards with multiple temperature sensors on the board, simply executing "sysctl hw.acpi.thermal.tz1.temperature" and so forth. All sysctl commands I listed here do not require root/superuser privileges.
I'll be mighty appreciative for any help you can provide!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.