hello,
I have this
And I want to get the "Actual speed " and display on my Touch Bar
Help me please
I use this AppleScript:
set FanSpeed to do shell script "/usr/local/bin/istats fan speed --value-only"
set Fan1 to "Fan 1: " & word 1 of FanSpeed & " rpm"
set Fan2 to "Fan 2: " & word 2 of FanSpeed & " rpm"
return Fan1 & "
" & Fan2
Needs iStats to be installed! But works perfectly.
Oops. Forgot to say that iStats is needed. Thanks
But if I want to use my app "temp monitor" can I do this ?
Change the shell script I use to whatever your Temp Monitor one is. Then count how many words it takes to get to the fan speed. I find it's easiest to run the shell script in Script Editor or similar first and count the words there. Might take a few tries to get the right number, but no reason it shouldn't work.
okay thank you
Using @Doa's solution, you could do :
set FanSpeed to do shell script "/Users/manateatchapa/Downloads/Temp\ Monitor.app/Contents/Resources/Temp\ Monitor\ SMC -f | | grep -e 'Actual speed' | sed 's/[a-zA-Z :]//g'"
set Fan1 to "Fan 1: " & word 1 of FanSpeed & " rpm"
set Fan2 to "Fan 2: " & word 2 of FanSpeed & " rpm"
return Fan1 & " " & Fan2