Skip to content

Commit fd30783

Browse files
authored
Update README with complete Markdown format
This commit updates the README file to include the complete content in Markdown format. The previous version of the README had incomplete information, and this commit addresses that by providing the necessary sections such as Prerequisites, Explanation of the Script, Setup Instructions, Output, Compatibility, Contributing, and License. The README now provides a comprehensive guide for using the CPU temperature retrieval script, including instructions for installation, execution, and understanding the script's functionality.
1 parent e4cf23e commit fd30783

File tree

1 file changed

+25
-17
lines changed

1 file changed

+25
-17
lines changed

CPU temperature/Readme.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,39 @@
11
# CPU Temperature
22

3-
This python script is used to get cpu temperature
3+
This Python script is used to retrieve the CPU temperature using the psutil library.
44

5-
- psutil (process and system utilities) is a cross-platform library.
6-
- It is used for retrieving information on running processes and system utilization (CPU, memory, disks, network, sensors) in Python.
75

8-
## Explanation of the script
6+
## Prerequisites
7+
- Python installed on your machine
8+
- `psutil` library installed. You can install it by running the following command:
9+
```bash
10+
pip install psutil
911

10-
- Using psutil library's inbuilt function "sensors_temperatures()" to measure temperature of CPU
1112

12-
## Setup instructions
13+
## Explanation of the Script
1314

14-
- Clone the repo to your machine
15-
- Head over to the required folder (Cpu Temperature folder)
16-
- Install psutil using
15+
The script utilizes the `psutil` library's `sensors_temperatures()` function to measure the temperature of the CPU.
16+
17+
## Setup Instructions
18+
19+
1. Clone the repository to your local machine.
20+
2. Navigate to the "Cpu Temperature" folder.
21+
3. Install the `psutil` library if you haven't already by running the following command:
1722
```bash
1823
pip install psutil
1924
```
20-
- Run the script
21-
```bash
22-
python temp.py
23-
```
24-
2525
## Output
2626

27-
<img src="https://raw.githubusercontent.com/gavinlyonsrepo/raspberrypi_tempmon/master/screenshots/main_screen.jpg">
27+
The script will display the current CPU temperature in Celsius.
28+
29+
30+
31+
## Compatibility
32+
33+
Please note that the script is primarily designed for Linux-based systems. While it may work on other platforms, the availability and format of temperature information can vary. Ensure that your system supports the `psutil` library and has the necessary sensors for CPU temperature measurement.
34+
35+
## Contributing
36+
37+
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request.
2838

29-
## Disclaimer
3039

31-
This does not work on a windows machine

0 commit comments

Comments
 (0)