Macã®ã¹ãã¼ã¿ã¹ãã¼ã«CPU温度ã表示ãããããããã¯ã¹ã¯ãªããã®appåã®æ¹æ³
ã¦ã¿ããã«
- Macã®ã¹ãã¼ã¿ã¹ãã¼ã«CPU温度ã表示ããã ãã®ã¢ããªã±ã¼ã·ã§ã³ãä½ãã¾ãã
- ã¹ã¯ãªããã®appåã®æ¹æ³ãç´¹ä»ãã¾ã
1. Macã®ã¹ãã¼ã¿ã¹ãã¼ã«CPU温度ã表示ãã
é·ãã Temperature Monitor ã使ã£ã¦Macã®ã¹ãã¼ã¿ã¹ãã¼ã«CPU温度ã表示ããã¦ããã®ã§ãããèµ·åæã«ããã®ãã¼ãã¦ã§ã¢ã¯ãªããã¦ãµãã¼ããã¦ãªãã«ããæ¨ã®ãã¤ã¢ãã°ãåºã¦ä½¿ããªããªã£ã¦ãã¾ãã¾ããã
ä»ã®ã¢ããªãä¾ãã° iStat Menusã ã¨æ¸©åº¦è¡¨ç¤ºã§ããããã§ããææã§ãã(ç¡æã§ãããã®ããã£ããæãã¦ãã ããï¼ï¼)
ããã§RubyCocoaã§CPU温度ãã¹ãã¼ã¿ã¹ãã¼ã«è¡¨ç¤ºããã¹ã¯ãªãããæ¸ãã¦appåãããã®ãä½ãã¾ããã
git clone ã㦠CPUTemperature.app ãããã«ã¯ãªãã¯ããã°åãã¨æãã¾ãããMavericks (10.9)以å¤ã ã¨shebangã®ä¿®æ£ã¨ãå¿
è¦ããããã¾ããã
2. ã¹ã¯ãªããã®appåã®æ¹æ³
温度æ å ±ã®åå¾
èªåã® MacBook Air 11", Mid 2013 ã§ã¯Temperature Monitor ã¯èµ·åã§ããªããªã£ãã®ã§ãããããã«å«ã¾ãã tempmonitor ã³ãã³ãï¼TemperatureMonitor.app/Contents/MacOS/tempmonitorï¼ã使ãã°æ¸©åº¦ãåããã®ã§ãããã使ããã¨ã«ãã¾ããã
$ /Applications/TemperatureMonitor.app/Contents/MacOS/tempmonitor -a -l -ds -c SMC BATTERY: 36 C SMC BATTERY CHARGER PROXIMITY: 60 C SMC BATTERY POSITION 2: 36 C SMC BATTERY POSITION 3: 33 C SMC CPU A PROXIMITY: 65 C SMC CPU H PROXIMITY: 57 C SMC LEFT PALM REST: 32 C SMC MAIN HEAT SINK 2: 38 C SMC MAIN LOGIC BOARD: 47 C SMC SSD BAY: 45 C SMC WLAN CARD: 48 C
ã¹ãã¼ã¿ã¹ãã¼ã¸ã®æå
ã°ã°ã£ããRubyCocoaã§ã¹ãã¼ã¿ã¹ãã¼ã«æåããã¹ã¯ãªããã®æ å ±ããã£ãã®ã§ããããããã ãã¾ããã
appå
ä»ã¾ã§ã¹ã¯ãªãããappåããã¨ãã¯AppleScriptã§ã©ããã¼ã¢ããªãä½ã£ã¦ããã®ã§ãããã°ã°ã£ããã¢ããªã±ã¼ã·ã§ã³ãã³ãã«ã®ã¹ã±ã«ãã³ãçæãã¦ãããä½¿ãæ¹æ³ãè¦ã¤ããã®ã§ãä»åã¯ããã§ãã£ã¦ã¿ã¾ããã
$ echo | osacompile -o CPUTemperature.app $ rm -f CPUTemperature.app/Contents/MacOS/applet $ cp cpu-temperature.rb CPUTemperature.app/Contents/MacOS/ $ vi CPUTemperature.app/Contents/Info.plist # CFBundleExecutable ã® applet ã cpu-temperature.rb ã«æ¸ãæãã
ãããã«
RubyCocoaã§ãµã¯ãã¨ã¹ãã¼ã¿ã¹ãã¼ãªã¢ããªãä½ãããã¨ããããã¾ãããCPU温度以å¤ã«ã好ããªæååããã¡ãã£ã¨ããã°ãã°ç»åãã¹ãã¼ã¿ã¹ãã¼ã«è¡¨ç¤ºã§ãããã§ããããæãããã§ããã