Control LED's by CPU-Temperature

Hi Guys,

I wrote a little Script for you, that show’s the CPU-Temperature by using the On-Board-LED’s from the BPI-M3.

LED-Settings:



R = red_LED G = green_LED B = blue_LED



0-39 °C R = ON G = OFF B = OFF


40-49 °C R = ON G = HEARTBEAT B = OFF


over 50 °C R = ON G = ON B = HEARTBEAT



Installation:

  1. Download the attached File and upload it to your BPI-M3 Temperature-Tool_v1.0.tar.bz2 (1.5 KB)
  2. Extract it with:

tar -xjf Temperature-Tool_v1.0.tar.bz2

  1. Go into the extracted Folder with:

cd Temperature-Tool_v1.0

  1. Switch to root user:

su root

  1. Set Permissions:

chmod +x install.sh

  1. Start the Installation-Script with:

./install.sh



Features:

./config_temptool.sh start //starts the Tool.


./config_temptool.sh stop //stops the Tool.


./config_temptool.sh reset //reset the LED’s to normal mode.


./config_temptool.sh autostart //writes the Tool into startup.


./config_temptool.sh removeauto //delete Tool from startup



I hope that everything works fine. If you get problems or have some questions please contact me. Also if you finde some errors in the Scripts or you have some suggestions.

Thank you and best regards

root_Padi


Temperature-Tool_v1.0.tar.bz2 (1.5 KB)

1 Like

so cool ,thank you share it .