Skip to content

Waxxx333/g2eth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Script ETH Python g Blah fff

G2ETH


Get ETH mining stats on a given GPU

Returns current Bitcoin price, current ETH price, ETH hashrate of the given GPU, daily, weekly and monthly estimated profit, year the GPU was released, ROI(Return of Investment), Power consumption, efficiency and TDP.
Lists all cards capable of mining ETH and their ETH mining stats. g2eth also has a USD/GBP/CAD/EUR to ETH converter and vice versa.
Check the current ETH and BTC prices.

To install:
git clone --depth 1 https://github.com/Waxxx333/g2eth.git
cd g2eth
chmod +x install.sh
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ ./install.sh
Or simply run it:
git clone --depth 1 https://github.com/Waxxx333/g2eth
cd g2eth
chmod +x g2eth
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ python3 g2eth -h/--help
g2eth.py GPU ETH mining stats

options:
  -g GPU, --gpu GPU     GPU to search for
  -h, --help            Show this help menu
  -u, --usage           Advanced Usage
  -l, --list            List all cards capable of mining ETH
  -d, --all             List all cards capable of mining ETH and their stats
  -p, --price           Show BTC and ETH price
  -c CONVERT, --convert CONVERT | Currency to conver ETH/USD/GBP
  -i INTO, --into INTO | Currency to convert into ETH/USD/GBP
  -n AMOUNT, --amount AMOUNT | Amount to convert

Command formatting:

  • g2eth -g 3060ti = 3060 Ti Non-LHR
  • g2eth -g 3060tilhr = 3060 Ti LHR
  • g2eth -g 3060lhr = 3060 LHR
  • g2eth -g 3060 = 3060 Non-LHR
  • g2eth -g 2060s Super cards (1660 Super | 2060 Super)
  • Etc. . .
Example output:
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ g2eth -g 3060tilhr
[■] NVIDIA RTX 3080 LHR [■]
[■] BTC Price: $37,280.0200 .::. ETH Price: $2448 .::. Up: 2.7543
[■] ETH Hashrate(DaggerHashimoto): 71.70 Mh/s
[■] 24h: $2.15 / Weekly: $15.05 / Monthly: $64.50
[■] Released: 2021 .::. MSRP: $999
[■] ROI: 465 days .::. Efficiency 0.316 Mh/w
[■] TDP: 320 watt .::. Power: 227w
Using the -l/--list flag will show all cards capable of mining ETH and it will also give the name you need to use in the command to search the stats
-l/--list arg will give something like the following. The name after Command name: is the name you'll use to search the GPU by.
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ ./g2eth.py -l
[■] Card name: NVIDIA GTX 1080 .:|:. Command name: 1080
[■] Card name: AMD RX 6800 .:|:. Command name: 6800
[■] Card name: NVIDIA CMP 90HX .:|:. Command name: cmp90
[■] Card name: NVIDIA P106-100 .:|:. Command name: p106
Convert USD/GBP/CAD/EUR to ETH or ETH to USD/GBP/CAD/EUR pythonpython
g2eth --convert/-c [USD/GBP/CAD/EUR/ETH] --into/-i [USD/GBP/CAD/EUR/ETH] --amount/-n [AMOUNT]
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ g2eth.py --convert eth --into usd --amount 20
[■] Converting: ♦20.0 ETH into: $48508.72 USD [■]

Requirements: python-requests | but the installation script will attempt to install it.
For Windows and Termux you will have to manually install python-requests. You will need pip if you're on Windows or Termux to install requests. **I will be fixing this at some point. Right now the installer supports: openSUSE, Arch-based distros, Debian-based distros and Fedora
This script doesn't work for GTX 1050 cards as because you need >4GB VRAM to mine ETH.
  • To Do
  • Add more distros' package managers to the installer
  • Make installer work in Winblows
  • Make installer work with Termux
  • Make STDOUT prettier on Termux
  • Work on bash and zsh completion
  • Maybe a side-by-side comparison function
    • Add current ETH price function
    • Add Canadian Dollars
    • Make install.sh
    • Create requirements.txt

Author:



Recent updates
  • Added function to convert ETH to USD/GBP and vice versa
  • Added function to list ALL cards and all of their stats
  • Shows +/- ETH
  • Added price function
  • Added CAD and EUR to the converter