Skip to content

Waxxx333/g2eth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 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.. Over 150 currencies have been added to the conversion function.

Check the current ETH and BTC prices.

Available statistics:
  • Get mining stats on GPUs
    • Get ETH hash rate on a supplied GPU
    • Get current ETH price
    • Get current BTC price
    • Daily, weekly and monthly estimated earnings
    • MSRP, Release year, projected ROI, TDP, Efficiency, Power consumption
  • List all GPUs capable of mining ETH
  • Convert over 150 currencies
  • Get current ETH and BTC price and status
    • You can now also specify other coins to get a current price on

Some of the currencies supported:

  • AUR - Auroracoin
  • BCC - BitConnect (inactive)
  • BCH - Bitcoin Cash
  • BTC or XBT - Bitcoin
  • DASH - Dash
  • DOGE or XDG - Dogecoin
  • EOS - EOS.IO
  • ETC - Ethereum Classic
  • ETH - Ether (also known as Ethereum)
  • GRC - Gridcoin
  • LTC - Litecoin
  • KOI or COYE - Coinye (inactive)
  • And so many more

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
  -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 -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 over 150 currencies from a local currency to crypto or vice versa pythonpython
g2eth --convert/-c [USD/GBP/CAD/EUR/ETH] --into/-i [USD/GBP/CAD/EUR/ETH] --amount/-n [AMOUNT]
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ g2eth -c usd -i grc -n 10 
[■] Conversion is courtesy of: cryps.info
[■] 10.0 USD to GRC (US Dollar to Gridcoin)  [■]
[■] 10.0 U$D == 1,132.95960772 GRC [■]

Now you can get current prices on more coins than ETH and BTC. Usage is as follows:

Just check Bitcoin and Ethereum
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ g2eth -p
[■] ₿TC Price: $37,875.6767
[■] ΞTH Price: $2611 .::. Down: -3.83634
Get price of a custom coin:
┌──[яoot@ᴡɪɴᴅᴏᴡꜱ95]-<g2eth>
└─⋗ g2eth -p Dogecoin
[■] DOGE Price: $0.1228
[■] ₿TC Price: $37,875.6767
[■] ΞTH Price: $2611 .::. Down: -3.83634

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.
G2ETH now has tab completion if you install it via install.sh. You must be using zsh or bash and you also need to have bash-completion for bash or zsh-completions for zsh. Run the install script, close your shell, reopen a shell and type g2eth -- (two hyphens) and press tab.

Screenshots

Changes
  • 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
  • Updated script according to the source's source code change(Source: let me know if there's a problem with this project)
  • Fixed conversion decimal problem
  • Got rid of redundant "list all and stat" function
  • Added zsh and bash tab completion
  • Added over 150 currencies to the conversion function

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
  • Maybe a side-by-side comparison function
    • Make the price check function have more currencies
    • Add current ETH price function
    • Add Canadian Dollars
    • Make install.sh
    • Create requirements.txt
    • Work on bash and zsh completion
    • Add more currencies to the conversion function
All information is scraped, no APIs are being used.

GPU stats are from hashrate.no

Price conversions are from cryps.info

Price checks are from: coinmarketcap, hashrate.io, and walletinvestor