-
All replies
-
Helpful answers
Page
1
of 3
last
Next
-
Dec 8, 2010 4:29 AM in response to filippo1982by JohnAlanWoods,maybe try this as a start,
ioreg -n IOHWSensor | more -
Dec 8, 2010 5:12 AM in response to filippo1982by JohnAlanWoods,Or also try,
'ioreg -l'
http://macscripter.net/viewtopic.php?id=13643
Message was edited by: JohnAlanWoods -
Dec 8, 2010 5:31 AM in response to JohnAlanWoodsby filippo1982,Thank you for your answer but with "ioreg -l IOHWSensor | more" i cannot see the temperatures.
I also tried to run the script you linked:
"
set the_result to (do shell script "ioreg -c IOHWSensor | grep -vE '\\{|\\}|\\+\\-o'")'s paragraphs
set all_display to ""
repeat with i from 0 to 16
set jump to 14
set the_location to item (3 + (jump * i)) of the_result
set the_location to characters 41 thru ((count of characters of the_location) - 1) of the_location as string
set the_type to item (4 + (jump * i)) of the_result
set the_text to item (2 + (jump * i)) of the_result as string
set the_text to characters 44 thru (count of characters of the_text) of the_text as string --(length of item 2 of the_result)
set the_type to characters 37 thru ((count of characters of the_type) - 1) of the_type as string
if the_type = "temperature" then
set all_display to all_display & "
" & the_location & ": " & ((the_text / 65536) * (9 / 5)) + 32 & " F" as string
end if
end repeat
display dialog all_display
"
It doesn't work... maybe because it's referred to a G5 and not with Intel Mac hardware.
Other suggestions? -
-
Dec 12, 2010 6:11 AM in response to filippo1982by Tony T1,filippo1982 wrote:
No more suggestions?
There are a few widgets that do this, so maybe if you contact the developer he can tell you how he gets the temp's and then you can write a script for it. -
-
-
Dec 19, 2010 4:45 AM in response to filippo1982by MrHoffman,Ask the Apple folks via the Apple developer program? -
Dec 19, 2010 5:48 AM in response to MrHoffmanby filippo1982,Thanks you for the suggestion, the forum is: http://developer.apple.com/devforums
I cannot enter because membership costs 99$/year!
Do you know someone who's a developer member? -
Dec 19, 2010 5:56 AM in response to filippo1982by JohnAlanWoods,I'm a member, and I checked for you there's nothing on there, the way to do it, is use the ioreg command and parse the output,
Ie run ioreg and pipe it into a script that pulls the relevant data and then do a little math on the temp values
One of the links above has the kinda script you need unfortunately there's no command line tool included in OS X that just outputs what you want
Ie CPU TEMP = x Degrees C
GPU TEMP = y Degrees F
etc.
There are widgets for dashboard and other cocoa apps but I understand this isn't what you want -
Dec 19, 2010 6:59 AM in response to JohnAlanWoodsby filippo1982,Looking on the web, i read that "IOREG" can be used only in NON INTEL based cpu's systems!
My macbook pro (5,5 model) is a cored 2 duo cpu based.
So the script above doesn't work!
Have you ever tried a working script?
Thank you guys! -
Dec 29, 2010 1:05 AM in response to JohnAlanWoodsby filippo1982,@ JohnAlanWoods
Did you recieve my email? -
Jan 10, 2011 11:19 PM in response to filippo1982by filippo1982,@ JohnAlanWoods
Can you answer please? -
Jan 11, 2011 3:58 PM in response to filippo1982by Baumkartoffel,filippo1982, [Temperature Monitor|http://www.bresink.de/osx/TemperatureMonitor.html] comes with a command-line executable named [tempmonitor|http://www.bresink.de/osx/216202/Docs-en/commandline.html]. On my MacBookPro5,5, the command line
tempmonitor -ds -c -a -l | grep DIODE | sed -e 's/^[^:]*: //'
returns output in the format of
51 C
Is this the type of output that you’re seeking?