-
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.
Add mqtt client to plant watering logic instread of udp
- Loading branch information
1 parent
2412e33
commit cbcb612
Showing
6 changed files
with
173 additions
and
52 deletions.
There are no files selected for viewing
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
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,13 @@ | ||
#!/bin/bash | ||
|
||
set -eux | ||
cross build --release --target aarch64-unknown-linux-gnu | ||
|
||
#stop the service on the pi | ||
ssh [email protected] sudo systemctl stop homebot.service | ||
|
||
#copy the binary | ||
scp target/aarch64-unknown-linux-gnu/release/homebot [email protected]:~/homebot/ | ||
|
||
#start the service | ||
ssh [email protected] sudo systemctl start homebot.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
Oops, something went wrong.