-
Notifications
You must be signed in to change notification settings - Fork 12
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
Showing
4 changed files
with
58 additions
and
5 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.idea | ||
.vscode | ||
*.log | ||
chialoganalyzer | ||
chia-log-analyzer | ||
builds |
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 |
---|---|---|
@@ -1 +1,18 @@ | ||
# Chia log analyzer | ||
# Chia log analyzer | ||
Simply realtime chia log analyzer | ||
|
||
## Howto run | ||
``` | ||
chia-log-analyzer.go-linux-amd64 --log=/path/to/debug.log | ||
``` | ||
![Screenshot](./docs/screenshot-1.png) | ||
|
||
## Features | ||
- monitoring of chia debug.log file | ||
- simply show basic info about farming | ||
- automatic refresh every 5s | ||
|
||
## Supported platforms | ||
- Linux (tested on Ubuntu) | ||
- RPI4 (use linux-arm builds) | ||
- Windows10 |
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,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
package=chia-log-analyzer.go | ||
#package=$1 | ||
#if [[ -z "$package" ]]; then | ||
# echo "usage: $0 <package-name>" | ||
# exit 1 | ||
#fi | ||
package_split=(${package//\// }) | ||
package_name=${package_split[-1]} | ||
|
||
platforms=("windows/amd64" "linux/amd64" "linux/arm" "darwin/amd64") | ||
|
||
for platform in "${platforms[@]}" | ||
do | ||
platform_split=(${platform//\// }) | ||
GOOS=${platform_split[0]} | ||
GOARCH=${platform_split[1]} | ||
output_name=$package_name'-'$GOOS'-'$GOARCH | ||
if [ $GOOS = "windows" ]; then | ||
output_name+='.exe' | ||
fi | ||
|
||
env GOOS=$GOOS GOARCH=$GOARCH go build -o ./builds/$output_name $package | ||
if [ $? -ne 0 ]; then | ||
echo 'An error has occurred! Aborting the script execution...' | ||
exit 1 | ||
fi | ||
done |
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