Author

Topic: [∞ YH] solo.ckpool.org 2% fee solo mining USA/DE 255 blocks solved! - page 414. (Read 1514889 times)

legendary
Activity: 2483
Merit: 1482
-> morgen, ist heute, schon gestern <-
 Grin Grin Grin

BLOCK

Congrats to the lucky 15X8ziBTCLEQCU2eUwWoQCYqJV7CoJSFoC one!
legendary
Activity: 1274
Merit: 1000

the zipfile was only a little help for you....but it is no problem that you don't trust me.

here ist the modified script as source (check.py) to copy & paste if you want.


Thank you, it's not that I don't trust you, it's that I don't trust anyone.  Wink
legendary
Activity: 910
Merit: 1000
looking good now, and lastupdate added back
( i hate to keep browser open all the time)


Stats for       : 1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hashrate 1m : 3.21TH/s
Hashrate 5m : 3.21TH/s
Hashrate 1d  : 2.08TH/s
Hashrate 7d  : 501GH/s
Lastupdate    : Fri Apr 10 16:15:01 2015
Net. Diff.       : 49446390688.241
Best share     : 726322442.485


newbie
Activity: 57
Merit: 0

I modified the script with a unixtime stamp converter to show the lastupdate correct and i modified the layout for me.


Modified Script Download: solo-mining-stats-new.zip



How do I know that code is clean?  I do not install/run things from random uploads.

Hmmmm...but you download the script from github, how do you know that this code is clean?  Wink Cheesy

the zipfile was only a little help for you....but it is no problem that you don't trust me.

here ist the modified script as source (check.py) to copy & paste if you want.

cheers,
zapphood

Code:
#!/usr/bin/python
import sys
import datetime
import requests
import dateutil.relativedelta
import time
import os


from colorama import init, Back, Fore

init()

clear = lambda: os.system('cls')
clear()

# Welcome, check your stats for the solo.ckpool.org pool, edit the file addr.txt with your Bitcoin address, your balance will be checked around every 10 minute.
# If you see the background green, you won the jackpot! press a key to skip'
#
# Made by yqons (Donate 1GrC12hbtMNPiYumftZ4B3Y1MVyCuZrKeM)
#
# Modified by Zapphood


#load address
with open('addr.txt', 'r') as f:
  addr = str(f.readline()).strip()
#check if is correct
urlx1 = 'https://blockexplorer.com/q/addressbalance/' + addr
response12 = requests.get(urlx1)
datax2 = float(response12.text)

#check your last block found on the pool
with open('blocks.txt', 'r') as f2:
  lastbf = str(f2.readline()).strip()

if datax2>=0:
urlx1x = 'http://solo.ckpool.org/users/' + addr
response12x = requests.get(urlx1x)
datax2x = str(response12x.text)
if not datax2x[:1]=='<':
print("Address loaded correctly, GOOD LUCK!")
else:
print("Address not found on the pool, please check your address inside addr.txt")
sys.exit()
else:
print("Address error, please check your address inside addr.txt")
sys.exit()


time.sleep(1.55)

url12 = 'https://blockexplorer.com/q/getdifficulty'
response1212 = requests.get(url12)
datax12 = '{0:.3f}'.format(float(response1212.text))
netdiff = datax12

#timer
x=0

while True:

x+=1

#jackpot check every 10 minutes(around) this is the block time avg
if not x%8:
urlx = 'https://blockchain.info/address/1PKN98VN2z5gwSGZvGKS2bj8aADZBkyhkZ?format=json'
response1 = requests.get(urlx)
datax = response1.json()
blockrec = str(datax['txs'][0][u'block_height'])
if datax['txs'][0][u'out'][0][u'addr']==addr and lastbf!=blockrec :
clear()
text = str(float(datax['txs'][0][u'out'][0][u'value'])/100000000) +" *********** JACKPOT *********** "+ str(float(datax['txs'][0][u'out'][0][u'value'])/100000000) +" (send me some LOL)"
print(Back.YELLOW + text)
print(Back.RED + text)
print(Back.GREEN + text)
print(Fore.YELLOW + text)
print(Fore.RED + text)
print(Fore.BLACK + text)
print ""
print "Block Height: " + blockrec

f = open('blocks.txt','w')
f.write(blockrec)

time.sleep(0.1)

break

url = 'http://solo.ckpool.org/users/' + addr
response = requests.get(url)
data = response.json()
m1avg = data['hashrate1m']
m5avg = data['hashrate5m']
h1avg = data['hashrate1hr']
d1avg = data['hashrate1d']
d7avg = data['hashrate7d']


bests = '{0:.3f}'.format(float(data['bestshare']))

clear()
print 'Stats for BTC Address: ' + addr
print ''
        print 'Lastupdate: ' + time.ctime(int(data['lastupdate']))
        print ''
print 'Hashrate (1m): ' + str(m1avg) + 'H/s'
print 'Hashrate (5m): ' + str(m5avg) + 'H/s'
print 'Hashrate (1h): ' + str(h1avg) + 'H/s'
print 'Hashrate (1d): ' + str(d1avg) + 'H/s'
print 'Hashrate (7d): ' + str(d7avg) + 'H/s'
print ''
print 'Net. Diff.: ' + str(netdiff)
print 'Best share: ' + str(bests)


time.sleep(75)
legendary
Activity: 1274
Merit: 1000

I modified the script with a unixtime stamp converter to show the lastupdate correct and i modified the layout for me.


Modified Script Download: solo-mining-stats-new.zip





How do I know that code is clean?  I do not install/run things from random uploads.
newbie
Activity: 57
Merit: 0

Thank you both again.  I managed to get everything installed and working more or less; my last update time displays as a negative number though.  Actually, it always displays about -5 29, everything updates as it should, but the time just sits at the negative value.  Any idea what I could have messed up?
http://i60.tinypic.com/24lu0b9.jpg


I modified the script with a unixtime stamp converter to show the lastupdate correct and i modified the layout for me.


Modified Script Download: solo-mining-stats-new.zip


https://i.imgur.com/KYQBaq0.png
legendary
Activity: 1274
Merit: 1000
I just use the "reloadevery" add-on in firefox.

Installed the add on, nice feature to have, thanks for pointing it out.
legendary
Activity: 1274
Merit: 1000
you need python, and rest you play with cmd
https://www.python.org/downloads/windows/

you need python version 2.x for windows if your os is windows

https://www.python.org/downloads/release/python-279/

install python (don't forget to select the option for the path)

download and extract the zipfile from github

https://github.com/yqons/solo-mining-stats/archive/master.zip

run cmd

cd C:\Python27\Scripts

run...

easy_install-2.7.exe datetime
easy_install-2.7.exe requests
easy_install-2.7.exe python-dateutil
easy_install-2.7.exe colorama

put your BTC address in the addr.txt file

double click check.py

that's all  Wink

Thank you both again.  I managed to get everything installed and working more or less; my last update time displays as a negative number though.  Actually, it always displays about -5 29, everything updates as it should, but the time just sits at the negative value.  Any idea what I could have messed up?
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
my miner keeps disconnecting from this pool..

looking at the stats it seems 100T or so just dropped out.


Problem is between your miners and the pool, and usually it's a routing/network issue. There is nothing wrong at the pool end. If you have linux I suggest you try using mtr to diagnose where you may be losing packets. 10% loss at the last step is normal.

Code:
mtr --report -w solo.ckpool.org



the hash is back and my miner reconnected, it must have been comcast then.. it was down for about 5 minutes.


I lost connection too. The miner connecting is not on Comcast.
The same advice applies. There appears to be nothing unusual at the pool end.

Try also:
http://www.internetweathermap.com/

and a few other services. The pool is fine.
legendary
Activity: 1694
Merit: 1002
Go Big or Go Home.....
my miner keeps disconnecting from this pool..

looking at the stats it seems 100T or so just dropped out.


Problem is between your miners and the pool, and usually it's a routing/network issue. There is nothing wrong at the pool end. If you have linux I suggest you try using mtr to diagnose where you may be losing packets. 10% loss at the last step is normal.

Code:
mtr --report -w solo.ckpool.org



the hash is back and my miner reconnected, it must have been comcast then.. it was down for about 5 minutes.


I lost connection too. The miner connecting is not on Comcast.
legendary
Activity: 1736
Merit: 1006
my miner keeps disconnecting from this pool..

looking at the stats it seems 100T or so just dropped out.


Problem is between your miners and the pool, and usually it's a routing/network issue. There is nothing wrong at the pool end. If you have linux I suggest you try using mtr to diagnose where you may be losing packets. 10% loss at the last step is normal.

Code:
mtr --report -w solo.ckpool.org



the hash is back and my miner reconnected, it must have been comcast then.. it was down for about 5 minutes.
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
my miner keeps disconnecting from this pool..

looking at the stats it seems 100T or so just dropped out.


Problem is between your miners and the pool, and usually it's a routing/network issue. There is nothing wrong at the pool end. If you have linux I suggest you try using mtr to diagnose where you may be losing packets. 10% loss at the last step is normal.

Code:
mtr --report -w solo.ckpool.org

legendary
Activity: 1736
Merit: 1006
my miner keeps disconnecting from this pool..

looking at the stats it seems 100T or so just dropped out.

legendary
Activity: 1274
Merit: 1000
I just use the "reloadevery" add-on in firefox.

I wasn't familiar with that add-on, I'll take a look, but still means I would need to leave FF up all day instead of a command prompt.
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
legendary
Activity: 910
Merit: 1000
i like it like this:
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
I just use the "reloadevery" add-on in firefox.
legendary
Activity: 1274
Merit: 1000
I really don't understand the point of this script at all.  How difficult is it to click a link and see the stats on the web?  Instead, you're going to install a whole bunch of python libraries and run a command line script.  What's the value add in doing this?

It will update itself, I don't have to keep refreshing.

I don't need to keep a web browser open all day.

I like to learn how to do stuff.
legendary
Activity: 910
Merit: 1000
also windows...

$ wget -qO - http://solo.ckpool.org/users/1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | tr -d '" {}' | tr "," "\n"
hashrate1m:55.7T
hashrate5m:54.7T
hashrate1hr:44.2T
hashrate1d:5T
hashrate7d:786G
lastupdate:1428615238
workers:117
bestshare:726322442.48476458

just needs that auto refresh..
having fun while waiting that big hit..
legendary
Activity: 4634
Merit: 1851
Linux since 1997 RedHat 4
On linux this one line will get the stats and put them on separate lines Smiley
Code:
wget -qO - http://solo.ckpool.org/users/1address | tr -d '" {}' | tr "," "\n"

e.g.
Code:
wget -qO - http://solo.ckpool.org/users/1BigHit9xDAjVS3bJn7XNxQc3iRDiSABeZ | tr -d '" {}' | tr "," "\n"

Code:
hashrate1m:0
hashrate5m:0
hashrate1hr:0
hashrate1d:0
hashrate7d:0
lastupdate:1428611878
workers:0
bestshare:0.0

Of course you could write a script of a few lines to format the numbers.
Jump to: