-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6ec4768
Showing
8 changed files
with
612 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/target |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[package] | ||
name = "argonfand" | ||
version = "0.1.0" | ||
authors = ["Adrian Woźniak <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
rppal = { version = "0.11.3" } | ||
gpio = { version = "0.4.1" } | ||
tokio = { version = "1.4.0", features = ["full"] } | ||
gumdrop = "0.8.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# ArgonOne Fan Service | ||
|
||
ArgonOne case for Raspberry Pi 4B fan service. | ||
|
||
```bash | ||
./build.sh | ||
sudo argonfand -g | ||
sudo argonfand -f 100 # enforce max speed and exit | ||
sudo argonfand # start service | ||
``` | ||
|
||
### Service | ||
|
||
```bash | ||
systemctl status argonfand.service | ||
systemctl start argonfand.service | ||
systemctl enable argonfand.service | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Argon One Fan and Button Service | ||
After=multi-user.target | ||
[Service] | ||
Type=simple | ||
Restart=always | ||
RemainAfterExit=true | ||
ExecStart=/usr/bin/argonfand | ||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cargo build --release | ||
strip ./target/release/argonfand | ||
sudo cp ./target/release/argonfand /usr/bin | ||
sudo cp ./argonfand.service /usr/lib/systemd/system/argonfand.service |
Oops, something went wrong.