@@ -13,13 +13,17 @@ This tool provides real-time monitoring of your Raspberry Pi's system statistics
13
13
14
14
## 📖 Table of Contents
15
15
16
- 1 . [ Features] ( #🌟-features )
17
- 2 . [ Installation] ( #📦-installation )
18
- 1 . [ Download] ( #📥-download )
19
- 1 . [ Pre-built binaries] ( #pre-built-binaries )
20
- 2 . [ Cargo] ( #cargo )
21
- 2 . [ Configuration] ( #📝-configuration )
22
- 3 . [ Building] ( #🛠️-building )
16
+ - [ 🦀🍇 RustBerry-PoE-Monitor] ( #-rustberry-poe-monitor )
17
+ - [ 📖 Table of Contents] ( #-table-of-contents )
18
+ - [ 🌟 Features] ( #-features )
19
+ - [ 📦 Installation] ( #-installation )
20
+ - [ Easy Installation] ( #easy-installation )
21
+ - [ Manual Installation] ( #manual-installation )
22
+ - [ 📝 Configuration] ( #-configuration )
23
+ - [ 🛠️ Building] ( #️-building )
24
+ - [ Prerequisites] ( #prerequisites )
25
+ - [ Building for Raspberry Pi] ( #building-for-raspberry-pi )
26
+ - [ 🏃♂️ Running] ( #️-running )
23
27
24
28
25
29
## 🌟 Features
@@ -31,66 +35,31 @@ This tool provides real-time monitoring of your Raspberry Pi's system statistics
31
35
32
36
## 📦 Installation
33
37
34
- ### 📥 Download
35
- First, you will need the binary file. You can either download the pre-built binaries or download it using cargo.
38
+ ### Easy Installation
36
39
37
- #### Pre-built binaries
38
- Pre-built binaries are available for download on the [ releases page] ( https://github.com/jackra1n/RustBerry-PoE-Monitor/releases )
39
-
40
- To be able to run the binary anywhere on your system, you can move it to ` /usr/local/bin ` :
40
+ Run the following command to install:
41
41
``` bash
42
- sudo mv rustberry-poe-monitor /usr/local/bin
42
+ curl -sSL https://raw.githubusercontent.com/jackra1n/RustBerry-PoE-Monitor/main/install.sh | sudo bash
43
43
```
44
44
45
- #### Cargo
46
-
47
- Install with ` cargo ` :
48
- ``` bash
49
- cargo install rustberry-poe-monitor
50
- ```
45
+ And that's it!
51
46
52
- ### 📝 Configuration
47
+ ### Manual Installation
53
48
54
- You should be able to run the binary file now:
55
- ``` bash
56
- rustberry-poe-monitor
57
- ```
49
+ Check out the [ wiki page] ( https://github.com/jackra1n/RustBerry-PoE-Monitor/wiki/Manual-Installation ) to learn how to install manually.
58
50
59
- There are 2 CLI arguments available:
60
- - ` --temp-on ` - The temperature at which the fan should turn on (default: 60)
61
- - ` --temp-off ` - The temperature at which the fan should turn off (default: 50)
51
+ ## 📝 Configuration
62
52
63
- Example:
64
- ``` bash
65
- rustberry-poe-monitor --temp-on 65 --temp-off 55
66
- ```
67
-
68
- To run the program on startup, you can create a systemd service:
69
- ``` bash
70
- sudo nano /etc/systemd/system/rustberry-poe-monitor.service
71
- ```
53
+ To change the fan on/off temperature, you can add ` temp-on ` and ` temp-off ` arguments to the application.
54
+ If you installed the application using the install script, you can edit the systemd service file to change the arguments.
72
55
73
- Paste the following into the file:
74
56
``` bash
75
- [Unit]
76
- Description=RustBerry PoE Monitor
77
- After=network.target
78
-
79
- [Service]
80
- ExecStart=/home/yourUser/.cargo/bin/rustberry-poe-monitor
81
- User=yourUser
82
- Restart=always
83
- RestartSec=30
84
-
85
- [Install]
86
- WantedBy=multi-user.target
57
+ sudo nano /etc/systemd/system/rustberry-poe-monitor.service
87
58
```
88
59
89
- Then enable the service :
60
+ Change the ` ExecStart ` line to the following :
90
61
``` bash
91
- sudo systemctl daemon-reload
92
- sudo systemctl enable rustberry-poe-monitor.service
93
- sudo systemctl start rustberry-poe-monitor.service
62
+ ExecStart=/usr/local/bin/rustberry-poe-monitor --temp-on 60 --temp-off 50
94
63
```
95
64
96
65
0 commit comments