Skip to content

watercompany/chia-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chia-tools

LogPlumber

LogPlumber checks timestamp order and copy log files from source to destination.

Command:

go run main.go setTargets [Source] [Destination]

Sample run:

go run main.go setTargets "/home/mike/.chia/mainnet/log/" "/home/mike/logtemp/"

LogScraper

LogScraper scrapes data from the logs. These data can be

  1. Proofs found
  2. Total eligible plots
  3. Total plots
  4. Max proof time
  5. Median proof time
  6. Mean proof time
  7. Percent proof time
  8. Gaps proof checks

To get proofs found, use:

sudo go run ./cli/LogScraper/main.go 
-src [Directory that contains the harvester logs] 
-dest [Destination directory of saved csv] 

-proofs [Set if data scraped will be proofs found] 
-total-plots [Set if tool will scrape for minimum total plots]
-total-eligible-plots [Set if tool will scrape for total eligible plots]
-max-proof-time [Set if tool will scrape for max proof time]
-median-proof-time [Set if tool will scrape for median proof time]
-mean-proof-time [Set if tool will scrape for mean proof time]
-percent-proof-time [Set N to get percentage of proof time instances less than N]
-gaps-proof-checks [Set N to get number of instances where proof check time gaps is greater or equal than N]

-start-date [Set for starting date of logs to be scraping (YYYY-MM-DD)]

-save [Set if csv file will be saved to the dest dir] 
-print [Set if summary will be printed in the cli]

Note: Source Directory must be a directory that contain folders "farm-01", "farm-02", "farm-03", and so on which then contains the actual harvester logs.

Example command:

sudo go run ./cli/LogScraper/main.go -src /mnt/skynas-log/HarvesterLog -dest /mnt/skynas-log/HarvesterLog/summary -proofs -print -save

Watcher

Watcher is a telegram bot that will send a message to a telegram chat group whenever there's proof found or when there are no proof checks for more than 15 minutes.

Command:

sudo go run ./cli/Watcher/main.go 
-src [Source of live logs that will be scraped and monitored]
-bot-token [Telegram bot token]
-chat-id [Telegram chat id]

Note: Source Directory must be a directory that contain folders "farm-01", "farm-02", "farm-03", and so on which then contains the actual harvester logs.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages