|
1 year ago | |
---|---|---|
src/main | 1 year ago | |
.gitignore | 1 year ago | |
README.md | 1 year ago | |
pom.xml | 1 year ago | |
start_miner.sh | 1 year ago |
A simple Telegram bot to manage Ethminer, requires self compilation for now to use.
ping - Ping miner
stat - Mining stats
gpu - GPU information
shares_chart - Shares chart
rate_chart - Hashrate chart
gpu_chart - GPU temperature chart
list - List of connections
set - (index), Set active connection
rem - (index), Remove connection
add - (uri), Add URI to connection list
restart - Soft restart miner
reset - Hard restart miner
reboot - Reboot system
Edit config.json accordingly
{
"botUsername": "MyBot", // username of bot
"botToken": "011899988:MyBoTsuPersEcreT", // api key of bot
"apiHost": "localhost", // host of Ethminer API
"apiPort": 80, // port of Ethminer API
"whitelist": [
0
], // list of whitelisted chat IDs
"observer": 0, // main chat ID for watchdog output
"cmdReset": "sudo systemctl restart ethminer", // command to hard reset Ethminer
"cmdReboot": "sudo reboot" // command to reboot system
}
Afterwards just compile and run using Java. You may want to set config.json to skip worktree to prevent uploading to git.
$ git update-index --skip-worktree src/main/resources/config.json