Skip to content

Instantly share code, notes, and snippets.

@arshbot
Created February 12, 2019 07:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arshbot/64159427044c76160f036d25a4ccb0bf to your computer and use it in GitHub Desktop.
Save arshbot/64159427044c76160f036d25a4ccb0bf to your computer and use it in GitHub Desktop.
from time import sleep
import requests, os
import sys
url = "https://us-east-api.grinmint.com/v1/user/mining+miner1@thesis.co/dashboard"
print("")
while(True):
sleep(1)
response = requests.request("GET", url)
response = response.json()
for _ in range(200):
print("\033[A \033[A")
print("""
**,
*@&* *&&,
(@& *@#
.. &@/ /@.
.&&./&@&. *&% (@,
.@* %@* ,&& /@,
.&, .&& #&. *@,
@% (&* && %&
/& .&% @% ,@&
.@. && (&/ @# .%. *@.
# *&& .&& && .,#@( ,#%
&% ,,,*@# *&,.,,*/(/*. &&. .,,,,,## ,@*
,@ ,,,,*@@@* %@@%/. ./@@@&* .,,,,(@@#(@. ,&@
,% ,(@, %@,.&@%. .... /& ,,,#@& /@* ./@/
*&. ,,,%@* &@%.................. ,,*&% ,@. ,@&
%@ ,,,*@, .@%....................... ,,&@& ,@, ,#@
.% ,,*@/ ,&(..................&&,..... *&,,*@& (@, ,/@.
/&, ,,,,@& %,...................,@@,...... ,,%& (@ ,,@,
&& ,,,,@% %,..*#*......#%,.......&@,....... ,,@& #% .,@/
& .,,,%& ....,@@%......#@(.,,...,@@,........ ,,,@% @/ .,@(
&* ,,,#& /@@/,@@@(......*@%,&@%../@@......... ,,,@* *&* .,@/
,&..,,,@/ &@@(@@&@*......,@&/@@@,.@@#.......... .,,*&. %@ .,&/
*& ,,,%& @@@@@(&@,.......&@%@#@%*@@........... ,,,@% @* .,@,
(%.,,*&, *@*@@@,&@,.......(@@@,@@@&.....*...... ,,,@& (& ,*@.
%#,,,&& %&.@@&.#@*.......*@@%.*&%.....#@@,... ,,,@& @/ ,(&
%#,,*&/ @%.(@(.,&@........%@/........%@@&.... ,,,(&% && ,&&
%#,,&& (#.........................*@@@@(... ,,,%@/ ,@/ (&*
/&,,&/ /,........................(*#@&... ,,,*&@ @& ,&&
&,/& .&&........................@@@... ,,,,@@ (@ *@*
&&(# &@......................%@@%... .,,,,@@, @*,&%
&@@* %@*..................(@@@,.. ,,,,*@&. #&%@.
.. .@@(,............*@@@#,.. .,,,,/@@* .
/@@@@&&%&&@@@@@#,.. ,,,,,#@@%%@%
*@/ .*(((/,.. .,,,,,/&@@%/*,,/@#
.@@@&&%##&%%%&&@@@@#***,,,,, .*,#@%*
*&.,,@% ,&&,
/&,,,&% (&,
(& ,*@& .#/ &(
.&% ,,@# ,,@ @#
&/ ,,@# *//*, .,/# @.
*&. ,,@& (@@%, .#&% ,,(& &
&& ,,@@ *@( ,,,&/ *&
&&.,(@# @% ,,,&% &(
@&.*@, .@% ,,,*@ *&
#&,@& /& .,,,&( /&*
%@@ &( ,,,&( ./%&@@&@&%/
*&@@&*/@* #& ,,%# .#@%. .%&/
%&( .(@% *@ .,,./@# ./&*
%&. .,,*@@ *& .,#& ,@#
&& .,,,,&@# *& .@# .,@%
@( ,,,,,,@@ /& ,@ .,@(
%( ,,,,,,/@/ ## ,*@* ,,@*
,@ .,,,,,,(@. &, ,,%% .,&&
#% ,,,,,,,,@* .& ,,,&. ,*@/
@% ,,,,,,,,@& /% ,,,*% ,,&%
@% .,,,,,,,#&* %% .,,,/# ,,#&
&& ,,,,,,,,&@ @/ ,,,,/% ,,*@
/@ ,,,,,,,,&@. #% ,,,,,&. .,,*&
%% .,,,,,,,,@@. *% ,,,,,@, .,,(&
#@* .,,,,,,,,&@. &( .,,,,,@, ,,,@/
%% ,,,,,,,,/@&. .@* .,,,,,/& ,,,#&
/@( .,,,,,,,*&@%, ./@#. ,,,,,,(* ,,,&
,&&. .,,,,,,,,@&**, ,,,,,,. .,,,,,,,,, ,,/@
,/%%&%&%@&&&%/*. %@( .,,,,,,,%@#. .,,,,,, ,#@@@@&&@&@@/, ,,%#
.%@%, \.....,/##%&%%/*.. %@, .,,,,,,,/&@#. ,,,,,(@%. ,,%,
@, .,*@&&* .,**. .,,,,,,,,,/&@@@@%#((/(##(*@& %@@#
& ,,, .,,,,,,,,,,,,&( .@% .@,
*/,,,&* ......*,/*///((##%&&%&&&&@@&@&@@&@&%&&&@&&@@@@&&* @& .(&. ,,&. (&
,**,&&@&%&&&%#/*.. @# .,@# .,,@. #@.
(@&%#&@/ .,(&&.*(&@@.
./#%&%#%%, *.
""")
print("Current Cuckatoo31 hashrate " + str(response["statistics"]["current_primary_hashrate"]))
print("Average Cuckatoo31 hashrate " + str(response["statistics"]["average_primary_hashrate"]))
print("Current Cuckaroo29 hashrate " + str(response["statistics"]["current_secondary_hashrate"]))
print("Average Cuckaroo29 hashrate " + str(response["statistics"]["average_secondary_hashrate"]))
print("Unpaid Balance " + str(response["statistics"]["unpaid_balance"] * 10 ** -9))
print("Immature Balance " + str(response["statistics"]["immature_balance"] * 10 ** -9))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment