|
1 | | -# Package/Script Name |
| 1 | +# CPU Temperature |
2 | 2 |
|
3 | 3 | This python script is used to get cpu temperature
|
4 | 4 |
|
5 | 5 | - psutil (process and system utilities) is a cross-platform library.
|
6 | 6 | - It is used for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python.
|
7 | 7 |
|
8 | | -## Detailed explanation of script, if needed |
| 8 | +## Explanation of the script |
9 | 9 |
|
10 | | -- install psutil using( pip install psutil) |
11 | | -- Use inbuilt function "sensors_temperatures()" to measure temperature of CPU |
| 10 | +- Using psutil library's inbuilt function "sensors_temperatures()" to measure temperature of CPU |
12 | 11 |
|
13 | 12 | ## Setup instructions
|
14 | 13 |
|
15 | 14 | - Clone the repo to your machine
|
16 | | -- head over to the required(Cpu Temperature folder) |
17 | | -- run the script(python temp.py) |
| 15 | +- Head over to the required folder (Cpu Temperature folder) |
| 16 | +- Install psutil using |
| 17 | +```bash |
| 18 | +pip install psutil |
| 19 | +``` |
| 20 | +- Run the script |
| 21 | +```bash |
| 22 | +python temp.py |
| 23 | +``` |
18 | 24 |
|
19 | 25 | ## Output
|
20 | 26 |
|
21 | 27 | <img src="https://raw.githubusercontent.com/gavinlyonsrepo/raspberrypi_tempmon/master/screenshots/main_screen.jpg">
|
22 | 28 |
|
23 | | -## Disclaimers, if any |
| 29 | +## Disclaimer |
24 | 30 |
|
25 | 31 | This does not work on a windows machine
|
0 commit comments