Main index > About new desklets > Temperarature sensors

By magoseitor (User), on Wed Jun 15 11:41:04 2005: Temperarature sensors.

Hi all,....
I have been using adesklets for a while, i am very happy with it, very stable, fast, low resource consuming and it has worked for me in many WM or desktops.

But in my opinion we are lacking of one desklet...we have, for meters for cpu, net, badwidth, clocks, xmms, rss news, mounters, dock......yes..very nice stuff...but again...we lack of one very important desklet too,....

TEMPERATURES!!!!!! (with lm_sensors)

yes people....most of us love to see how our cpu's atoms gain or lose speed resulting in a temperature change...
That's why i implore you all people with coding skills,....let's make a tempearture sensor...using lm_sensors, good examples (based on gdesklets) are....

http://gdesklets.gnomedesktop.org/shot/lt-lmsensors.jpg

and why not go further and take advantage of hddtemp's daemon and make a temp sensor for the HD's too....?

http://gdesklets.gnomedesktop.org/shot/SideCandy-HDDTemp-0.1_b.png



so guys, come on.....if anyone of you have the enough time or just are so l33t that can make this in a day......let's go for it, there will be a lot of persons very happy and sure many people will consider using adesklets and/or contributing to it too.

By mattboll (User), on Sun Jun 26 18:38:05 2005.

Hi,
I wanted to code something, so this could be a fine start ^^
i'll be back when i finish ( if I don't reply before 2 months then forget about me :/)

see U

By cs-cam (Desklet Author), on Sun Jun 26 18:41:01 2005.

I was going to do it but then when I had a look it seems my cheap motherboard doesn't have any temperature sensors on it or something because with everything compiling in my kernel that I might need, /proc/acpi/thermal_zones remains empty... :(

By mattboll (User), on Thu Jun 30 10:28:38 2005.

Hi,
I've started something, to use hddtemp and lm-sensors will not be really difficult, but at the moment it's quite horrible (it just displays temp1 : XX?C...) and it displays it on the previous one so it's not beautifull at all.

Well I just start with python/adesklets so let me take some times to make a real programm not just the test.py with values :/

I'll come back soon I hope with a link ^^

By mattboll (User), on Thu Jun 30 11:04:41 2005.

well,
if any body want to test it, just to see if regexp work on others linux (can't work on bsd because it need lm-sensor and hddtemp)

you can download a pre version ( 0.0.0.0.1 ;) ) just here :
http://mattboll.kicks-ass.org/temperatures.py

By magoseitor (User), on Fri Jul 1 12:18:11 2005.

hi mattboll!!

first of all, many thanks for taking interest in this project...i really appreciate it..
i downloaded the .py and gives doesn;t works for me...
the errors are these...

Quote:


Traceback (most recent call last):
File "./temperatures.py", line 103, in ?
My_Events().pause()
File "./temperatures.py", line 21, in __init__
adesklets.Events_handler.__init__(self)
File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 159, in __init__
self._alarm()
File "/usr/lib/python2.3/site-packages/adesklets/events_handler.py", line 296, in _alarm
timeout=self.alarm()
File "./temperatures.py", line 78, in alarm
self.display()
File "./temperatures.py", line 49, in display
temp1 = sensors_temp[0]
IndexError: list index out of range


again...many thanks for the interest!!

By mattboll (User), on Fri Jul 1 19:40:16 2005.

hi,
well what should I say ?

does the command "sensors" work ?
can you print here what it says ?

Quote:

temp1: +38?C (high = +0?C, hyst = +0?C) sensor = thermistor
temp2: +56.5?C (high = +80?C, hyst = +75?C) sensor = thermistor


you should have something like this, in fact the probleme is about the first characters :"temp1: +38" the regexp is "temp", a number, ':', as many spaces as you want, '+' and the temperature. If it isn't exactly like that, I can completely change my way of thinking.

By the way, I'm adding support for a config file, and I will think about something modular which should work everywhere (I hope) so let me know about it (what does sensors display)

PS : you can although try to comment every line about temp1 and temp2
just add '#' before lines : 49, 50, 59, 60 and insert the line "print sensors_temp" everywhere you want (line 51 is a good option ;) ) and hddtemp should work ^^

See you soon

By magoseitor (User), on Sat Jul 2 14:06:47 2005.

hi mattboll!!!

sensors output this:

Quote:


w83627thf-isa-0290
Adapter: ISA adapter
VCore: +1.54 V (min = +1.93 V, max = +1.93 V)
+12V: +12.16 V (min = +10.82 V, max = +13.19 V)
+3.3V: +3.28 V (min = +3.14 V, max = +3.47 V)
+5V: +5.01 V (min = +4.75 V, max = +5.25 V)
-12V: -14.91 V (min = -10.80 V, max = -13.18 V)
V5SB: +5.05 V (min = +4.76 V, max = +5.24 V)
VBat: +3.34 V (min = +2.40 V, max = +3.60 V)
CPU Fan: 3479 RPM (min = 6428 RPM, div = 2)
M/B Temp: +36 C (high = +117 C, hyst = +8 C) sensor = thermistor
CPU Temp: +41.5 C (high = +63 C, hyst = +58 C) sensor = thermistor


maybe could be that i edited sensors.conf to show "CPU Temp" instead of "temp1"??

a config file could be a pretty good thing..
although, i will try to replace temp1 for CPU Temp and se what happens...

cheers!!!
:D

By magoseitor (User), on Sat Jul 2 14:34:37 2005.

Hi again!!! i managed it to work.
I did not touch the .py file, but changed te sensors.conf file.
What i did was setting the temp1 and temp2 labels back to default, (temp1 and temp2),....they were set as "M/B Temp" and "CPU Temp".

the prof :lol:
[URL=http://www.imageshack.us]http://img88.imageshack.us/img88/2913/desklettemp2gg.png[/URL]

Could there be that config file so users could specify their labels??
also...if it is not to much asking....a background image file??, like those in "anetmon" and "acpumon"..?


again i thank you for taking interest in this request :D !!

cheers!!

By ZeroDivide (Desklet Author), on Sat Jul 2 16:34:54 2005.

Hello,

I wouldn't mind dropping the border code from anetmon/acpumon into this temperature desklet. It wouldn't take much time at all, just a cut and paste job really. Let me know what you think mattboll.

By mattboll (User), on Sat Jul 2 19:21:51 2005.

Hi all,

magoseitor : I'm happy to see it working :)

I wanted to see something working before adding features but obviously I was thinking about some things (border, background, colors cold and hot...) and of course labels for devices, for exemple some persons have many HDD and not in /dev/hda

About "anetmon" and "acpumon', I can easily add the same border (I hope :p) but if you think that it could be a good idea to add the same "progress bar" (I don't know how do you call it : "[------ ]" It can although be done but It isn't how I thought it to be.well, I can do 2 themes.

So :

first choice : adding the border of anetmon/acpumon, add a complete config file, and change colors/image if temps are hot or cold

second choice : add the border/bar of anetmon, add a complete config file AND do the first choice (a fork of "atempmon")

What do you think about the name atempmon ? :)
Do you know what pictures I could take for everything ? ('hot-babe' can be a good exemple :p )


Let's think about it, at the moment I will just add basic stuff.

By magoseitor (User), on Sat Jul 2 22:49:25 2005.

hi again!!

matboll: SECOND choice.....would be very l33t!! :D :D :D :D :D :D :D :D :D and niiiiiice :D

Nice idea making two themes, would that be: 1-one without the bar, but a backgorund, a nice image (like a thermomether) and the temps text ?, 2- a bar for the temps, a background and an image..?? wich one? or you have other idea in mind?

Another thing: if you add a progress bar, then one thing that must be taking in count are min and max values for it.......you know that for example, an Intel Celeron and an AMD AthlonXP (palomino core :lol: ) have very diferent temperatures ranges.

You mentioned also that about "changing image"............., dude, does it means that you could put a "thermomether" that depending the cpu temp the mercury could "go up"??? that is definitly ultra-eyecandy :shock:

Also, very nice what you said about the HD's....me for example . I have two HD's, hda and hdb, but weeks ago, they were as hda and hdc.


And (almost) last.......

What about forking the project in 2 pieces......lm_sensors part and hddtemp part.. ??
i thought that some people may not have hddtemp...or backwards.. (no lm_sensors)

now.....last :lol:

About the name, well...atempmon sounds good. But now that is really your choice hehehe..though, i like hot-babe too :lol: ,ahotdesklet sounds good too....

ce ya..
and cheers!!!!

PD: again, thank you guys.

By mattboll (User), on Sun Jul 3 19:01:05 2005.

Hi,

I will have to go to some cities to be admitted on a University so I will not have a lot of time this week. But the next one, I will try to update the config file such as you said (It must not be so l33t ;) )

about the name hot-babe already exists and is quite... hot :) (let's see by yourself)

but "ahotdesklet" sounds very good for me :D

see you

By syfou (Core Developer & Desklet Author), on Tue Jul 5 00:50:25 2005.

Just to let you know that, as usual, I will be happy to include a packaged desklet on the site whenever you feel like submitting one, mattboll (the procedure is fully described in the documentation: see appendix E at the time of writing). Thanks for all your work, by the way. :-)

By magoseitor (User), on Wed Jul 6 07:43:15 2005.

mattboll: well, just wich you luck to be admitted on the best one!! what role are you taking, student or teacher??

I saw hot-babe.....hehe....i love what you can find in open source world..

see ya around!!! :D

By mattboll (User), on Sun Jul 10 07:51:06 2005.

I'm still student and admitted in a pretty one (may be the best too, I need to wait)

Time to work now (I'm looking to the documentation but It will not be submitted today :/)

++

By magoseitor (User), on Mon Jul 11 12:36:10 2005.

HI!

i am happy you got admitted mattboll
btw, what will you be studing??

cheers :D

By Jedidiah (Desklet Author), on Fri Jul 15 20:14:13 2005.

If you are keen feel free to try something similar with SystemMonitor (which now supports ACPI stuff, including a very basic temperature meter). Adding more info like fan rates, CPU throttling, or whatever shouldn't be too hard, but my machine doesn't have that info in the /proc/acpi filesystem so I can't play around and set those up.

If you are interested, don't worry adding meters should be easy - all the hard work is done in some base classes, all you have to do is inherit and provide a method that returns the text and meter value.

Jedidiah.


adesklets is proud to be hosted on:

SourceForge.net Logo

Back to adesklets.sf.net.