ASIC manager
Project description
bitfarmer :man_farmer:
CLI ASIC Manager
Features :sparkles:
- Terminal based
- Time of Day ASIC management
- Manual ASIC management
- Manage Pools
- Status Logging and Printout
Supported Miners :robot:
- Elphapex DG1
- Elphapex DG1+
- Elphapex DG Home
- Volcminer D1
- Volcminer D1 Lite
Installation
Logs :file_cabinet:
Configuration
bitfarmer can be configured through the guided prompts or manually with the editor provided. If no configuration has been saved, the user will be prompted to create one with the guided prompts. It is recommended to use the guided menus to edit the configuration rather than manually.
The configuration file is located at:
- Linux:
$HOME/.config/bitfarmer/conf.json
Configuration Variables:
tod_schedule: Time of Day (TOD) schedule to turn miners that are designated astod[true|false]on or off.daysare a list that contains the days the TOD applies ([Monday - Sunday]).hoursare a list of integers that correspond to the 24 hour clock ([0 - 23]). Minutes are not available.exceptionsare a list of days in the formatmm/dd/yyyythat are days where the TOD schedule does not apply.
view: How will the stats be viewed in the terminal (full|small).icons: Enable icons (true|false). Requires nerd fonts to be installed.editor: Editor to be used when manually editing the configuration (Usevim).ntp: NTP serversbitfarmeruses to get accurate time.pools: List of mining pool urls to assign miners to.miners: List of machines to be controlled and monitored bybitfarmer.ip: IP address of machine. Must be online when adding via the guided method.type: Miner type (DG1+/Volcminer)login: Login user (usuallyroot)password: Login user passwordtod: Is miner behind TOD meter (true|false)primary_pool: Pool url that will be set as the primary pool url in the miner.primary_pool_user: Pool username that will be set as the primary pool username in the miner.primary_pool_pass: Pool password that will be set as the primary pool password in the miner.secondary_pool: Pool url that will be set as the secondary pool url in the miner.secondary_pool_user: Pool username that will be set as the secondary pool username in the miner.secondary_pool_pass: Pool password that will be set as the secondary pool password in the miner.
Example Configuration
{
"tod_schedule": {
"days": [
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday"
],
"hours": [
6,
7,
8
],
"exceptions": [
"01/01/2025",
"04/18/2025",
"07/04/2025",
"09/01/2025",
"11/27/2025",
"11/28/2025",
"12/24/2025",
"12/25/2025"
]
},
"view": "full",
"icons": false,
"editor": "nvim",
"ntp": {
"primary": "NTP_SERVER_1",
"secondary": "NTP_SERVER_2"
},
"pools": [
"stratum+tcp://POOL_URL:PORT",
"stratum+tcp://POOL_URL:PORT",
],
"miners": [
{
"ip": "MINER_IP",
"type": "DG1+/DGHome",
"login": "MINER_LOGIN",
"password": "MINER_LOGIN_PASSWORD",
"tod": true,
"primary_pool": "stratum+tcp://POOL_URL:PORT",
"primary_pool_user": "POOL_WORKER_NAME",
"primary_pool_pass": "POOL_PASSWORD",
"secondary_pool": "stratum+tcp://POOL_URL:PORT",
"secondary_pool_user": "POOL_WORKER_NAME",
"secondary_pool_pass": "POOL_PASSWORD"
},
{
"ip": "MINER_IP",
"type": "VolcMiner D1",
"login": "MINER_LOGIN",
"password": "MINER_LOGIN_PASSWORD",
"tod": true,
"primary_pool": "stratum+tcp://POOL_URL:PORT",
"primary_pool_user": "POOL_WORKER_NAME",
"primary_pool_pass": "POOL_PASSWORD",
"secondary_pool": "stratum+tcp://POOL_URL:PORT",
"secondary_pool_user": "POOL_WORKER_NAME",
"secondary_pool_pass": "POOL_PASSWORD"
}
]
}
Donate :hugs:
- BTC:
bc1qvx8q2xxwesw22yvrftff89e79yh86s56y2p9x9 - Lightning:
lightning:lnurl1dp68gurn8ghj7urjd9kkzmpwdejhgtewwajkcmpdddhx7amw9akxuatjd3cz76tkdae8jmrpv3ukyat88y48qmzv
TODO :construction_worker_man:
- Guided edit of configuration
- Volcminer
- Cap fan speed when stopped mining
- Manual mode:
- Start subset of machines
- Stop subset of machines
- Integrate pool stats
- API key in configuration file
- Ping test when adding miners (ip)
- Improve error handling (could still be better)
- Improve README
- Installation
- Configuration explanation
- Demo
- Move colors to file
- Prints to logging
- Move detailed errors to log
- Icons optional
License
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bitfarmer-0.1.0.tar.gz.
File metadata
- Download URL: bitfarmer-0.1.0.tar.gz
- Upload date:
- Size: 28.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46b7c2098dc36775e5342649506a987961fc7f2fd9e33d14d045a2fac29cc881
|
|
| MD5 |
5b81f492633d4c930db9278927638fb0
|
|
| BLAKE2b-256 |
5ac7f69c71770a6de7dd9c92aeffd193d4f65ff037b730409f644e98feaeb1d7
|
File details
Details for the file bitfarmer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bitfarmer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 32.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7e8c197cb5396f3e94796992807a8682591b9f62acd1743a18da126864c92c9
|
|
| MD5 |
a9f323c17aa260ac55942cb7cc72423d
|
|
| BLAKE2b-256 |
ea07ab2fd6d967b8ddec5a5da6ddf357170188779d67612c605c683d8117d193
|