lclarkmichalek / archey3

Simple python script to print the Archlinux logo with basic system information.
http://bluepeppers.github.com/archey3
Other
62 stars 27 forks source link

Sort out sensors module #4

Open lclarkmichalek opened 13 years ago

lclarkmichalek commented 13 years ago

Currently the sensors display module works (worked) for one case, the hardware that archey3 was origionaly written on. It may, or may not work for anyone elses hardware setup.

irgendwie commented 9 years ago

2014-11-28-231536_1600x900

I was able to adapt the sensors module to my own hardware and I was planning to enhance the support for this module a bit. But because of the diverse values you can get with the sensors command, I'm in need for output like this:

alex@songbird ~ % sensors thinkpad-isa-0000 Adapter: ISA adapter fan1: 0 RPM

coretemp-isa-0000 Adapter: ISA adapter Physical id 0: +45.0°C (high = +72.0°C, crit = +90.0°C) Core 0: +44.0°C (high = +72.0°C, crit = +90.0°C) Core 1: +41.0°C (high = +72.0°C, crit = +90.0°C)

Also I'm not sure on how to make it configurable by the .archey3.cfg in the future. I thought about a entry like "sensor(coretemp-isa-0000, "°CPU", 2-3)" to configure the sensor module, what do you think of that bluepeppers?

lclarkmichalek commented 9 years ago

I dunno; sensors can just do so much whacky shit on the output. I almost feel like it's not worth trying to do command parsing, and might be better to look in /proc for the raw values