You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above example is a `systemd` service for the binary which would execute it on boot on port number **6969** and would be accessible to both IPv4 and IPv6 addresses.
44
+
- The following options are available for **tweaking** as per your choice.
45
+
```shell script
46
+
Options:
47
+
-p, --portdata TEXT Set the port value [0-65536]
48
+
-6, --ipprotv6 Start the server on an IPv6 address
49
+
-4, --ipprotv4 Start the server on an IPv4 address
50
+
--version Show the version and exit.
51
+
--help Show this message and exit.
52
+
```
53
+
- Copy the downloaded `WebStationSYSMON` file to `/usr/local/bin/` directory.
54
+
- Make the binary **executable** by running `sudo chmod 744 /usr/local/bin/disk-space-check.sh`.
55
+
- Make the `systemd` service file **executable** by running `sudo chmod 664 /etc/systemd/system/WebStationSYSMON.service`.
56
+
-**Reload** new `systemd` service configuration files by running `sudo systemctl daemon-reload`.
57
+
-**Enable** the newly created service by running `sudo systemctl enable WebStationSYSMON.service`.
58
+
- To **test** the script before a reboot, execute `sudo systemctl start WebStationSYSMON.service`.
59
+
- Check the service **status** by running `sudo systemctl status WebStationSYSMON.service`.
60
+
- Open up a browser in a device reachable to your PC and visit `http://<IP-ADDRESS>:<PORT-NUMBER>/primary` to get started.
61
+
- To **stop** the service, execute `sudo systemctl stop WebStationSYSMON.service` - It will start again on boot.
62
+
- To **disable** the service, execute `sudo systemctl disable WebStationSYSMON.service` - It will need **enabling** to work.
63
+
- Give stars to the repository if it was helpful.
25
64
26
65
## Screenshots
27
66
@@ -52,6 +91,20 @@ An intuitive remotely-accessible system performance monitoring and task manageme
52
91
### Sensors and Thermal Overview [Maroon]
53
92

54
93
94
+
## Using the script
95
+
1. Install and upgrade virtualenv if not already done by executing `pip3 install virtualenv --user`.
96
+
2. Clone the repository on your local drive and make it your current working directory.
97
+
3. Create a virtual environment by executing `virtualenv venv`.
98
+
4. Activate the virtual environment by executing `source venv/bin/activate`.
99
+
5. Install all dependencies for the project by executing `pip3 install -r requirements.txt`.
100
+
6. Run the project server by executing `python3 main.py`.
101
+
7. Take a note of the computer's IP address and make sure that it is reachable.
102
+
8. Visit `http://<YOUR-IP-ADDRESS>:9696/primary` from the other device (or `http://localhost:9696/primary` on the same PC).
103
+
9. Take a look at the different themes available, refresh the monitor or print reports when needed.
104
+
10. Select processes to open up modals - `TERMINATE`, `KILL`, `SUSPEND` and `RESUME` processes at will.
105
+
11. When done tinkering, deactivate the virtual environment by executing `deactivate`.
106
+
12. Give stars to the repository if it was helpful.
107
+
55
108
## To-do
56
109
-[X] Write driver code and endpoint access code for **Processor** page
57
110
-[X] Write client-side Jinja template and AJAX calls for **Processor** information
@@ -97,8 +150,8 @@ An intuitive remotely-accessible system performance monitoring and task manageme
97
150
-[ ] Add functionality to switch the units for thermal data between celsius and fahrenheit
98
151
-[ ] Add an obligatory dark mode feature (for everybody else has it now)
99
152
-[ ] Change `onclick` highlighting color on dropdown menus (It is by-default `primary` for all accents)
100
-
-[] Package it in a binary file with [`click`](https://click.palletsprojects.com/en/7.x/) to set command-line options
101
-
-[] Make the binary (along with command-line options) usable as a `systemd` service
153
+
-[X] Package it in a binary file with [`click`](https://click.palletsprojects.com/en/7.x/) to set command-line options
154
+
-[X] Make the binary (along with command-line options) usable as a `systemd` service
102
155
-[ ] Add user login feature as with complex process management, control cannot be left open
103
156
-[X]`[Would not be implemented as it breaks tab-switching feature]` Replace all card tabs `anchors` with `document.location.href` attributes
104
157
-[ ] Replace all `getElementById` with JQuery methods for speed up
0 commit comments