Skip to content

Commit

Permalink
Merge pull request #1 from Jokestevens/main
Browse files Browse the repository at this point in the history
changed and modified things.
  • Loading branch information
Boves556 authored Jan 18, 2024
2 parents 5be3296 + 46ba7a9 commit 939b545
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Automation_0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Create a new directory on your cli.
```
mkdir my_directory
```
Change 'my_directory' to whatever name you want.
Change 'my_directory' to any name you want.

In the new directory, create a virtual environment. Using a virtual environment in cli allows you to create isolated Python environments for your projects, each with its own set of dependencies. This helps prevent conflicts between different projects that might require different package versions.
Run the following commands to create a virtual environment:
Expand Down Expand Up @@ -118,6 +118,6 @@ Once you're done running the script, you can stop it using **ctrl+c** to stop ru
deactivate
```

My next blog gives a proper explanation of the script, its important you read it as it will help you understand the script and modify it to suit your needs. You can access my next blog by clicking the link below.
My next blog gives a proper explanation of the script, its important you read it because it will help you understand the script and modify it to suit your needs. You can access my next blog by clicking the link below.

## [Automation_blog2](Automation_0.2.md)
## [2nd_Automation](Automation_0.2.md)
12 changes: 6 additions & 6 deletions Automation_0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def monitor_and_output():
The def function defines the main function **monitor_and_output**. It contains an infinite loop (while True) to continuously monitor and output system and network information. Inside the loop:
- CPU and memory usage are obtained using the previously defined functions.
- Network speed is measured using the get_network_speed function.
- The information is then printed to the console, displaying CPU and memory usage percentages, as well as download and
upload speeds in Mbps.
- There is a 5-second delay (time.sleep(5)) at the end of each iteration to control the monitoring interval. You can adjust
this value based on how often you want to collect data.
- The information is then printed to the console, displaying CPU and memory usage percentages,
as well as download and upload speeds in Mbps.
- There is a 5-second delay (time.sleep(5)) at the end of each iteration to control the
monitoring interval. You can adjust this value based on how often you want to collect data.

# Group 6
```
Expand All @@ -76,8 +76,8 @@ if __name__ == "__main__":

This block ensures that the **monitor_and_output** function is executed only if the script is run as the main program (not imported as a module).

In summary, this Python script uses the psutil and speedtest libraries to monitor CPU and memory usage, as well as download and upload speeds. The **monitor_and_output** function continuously collects and prints this information in an infinite loop with a specified interval.
In conclusion, this Python script uses the psutil and speedtest libraries to monitor CPU and memory usage, as well as download and upload speeds. The **monitor_and_output** function continuously collects and prints this information in an infinite loop with a specified interval.

In my next two blogs I would talk about the problems I faced while trying to develop the script and how I figured it out. Hopefully, they would provide solutions to problems you may face. The link is below

## [Automation_blog3](Automation_0.3.md)
## [3rd_Automation](Automation_0.3.md)
2 changes: 1 addition & 1 deletion Automation_0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ In conclusion, prioritizing safety in a script development process is essential.

In my next and final blog, I would be sharing more problems I encountered and the way I solved these problems. You can click on the link below to access it. See you there!

## [Automation_blog4](Automation_0.4.md)
## [4th_Automation](Automation_0.4.md)
6 changes: 3 additions & 3 deletions Automation_0.4.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,6 @@ In conclusion, the journey to organize my Python script taught me valuable lesso
I hope these problem and solution blogs were helpful. If you have read my blog from beginning to this moment, I really do appreciate. If you haven't or you started from this blog, I advice you read the others as they are all connected. Below, I have attached the link to my other blogs.

## [Blog on Health benefits of video gaming](README.md)
## [Automation_blog1](Automation_0.1.md)
## [Automation_blog2](Automation_0.2.md)
## [Automation_blog3](Automation_0.3.md)
## [1st_Automation](Automation_0.1.md)
## [2nd_Automation](Automation_0.2.md)
## [3rd_Automation](Automation_0.3.md)

0 comments on commit 939b545

Please sign in to comment.