Browse Source

add clearnet pool, timeout in plotter

master
R4SAS 7 years ago
parent
commit
1aac0d4cbb
  1. 9
      index.html
  2. 16
      scripts/plot.py

9
index.html

@ -23,8 +23,13 @@ @@ -23,8 +23,13 @@
<li><a href="https://github.com/GOSTSec/gostcoin">wallet</a></li>
<li><a href="https://github.com/GOSTSec/cpuminer-x11-gost">CPU miner</a></li>
<li><a href="https://github.com/GOSTSec/ccminer">CUDA miner</a></li>
<li><a href="https://github.com/GOSTSec/ccminer-gostd-lite">CUDA lite miner</a></li>
<li><a href="https://github.com/GOSTSec/sgminer">OpenCL miner</a></li>
</ul>
<br>
<ul>
<li><a href="https://github.com/GOSTSec/gostcoin/wiki/Emission">Emission info</a></li>
<li><a href="https://pool.gostco.in/">Pool</a></li>
</ul>
<br>
I2P:
@ -33,7 +38,11 @@ @@ -33,7 +38,11 @@
<li><a href="http://git.psi.i2p/GOSTSec/gostcoin">wallet</a></li>
<li><a href="http://git.psi.i2p/GOSTSec/cpuminer-gostd">CPU miner</a></li>
<li><a href="http://git.psi.i2p/GOSTSec/ccminer">CUDA miner</a></li>
<li><a href="http://git.psi.i2p/GOSTSec/ccminer-gostd-lite">CUDA lite miner</a></li>
<li><a href="http://git.psi.i2p/GOSTSec/sgminer">OpenCL miner</a></li>
</ul>
<br>
<ul>
<li><a href="http://gstbtc.i2p/">Exchange</a></li>
<li><a href="http://vodkv54jaetjw7q2t2iethc4cbi4gjdrmw2ovfmr43mcybt7ekxa.b32.i2p/">Trade</a></li>
<li><a href="http://pool.gostcoin.i2p/">Pool</a></li>

16
scripts/plot.py

@ -12,7 +12,7 @@ import json @@ -12,7 +12,7 @@ import json
import urllib
RUR_CONFIG = {
'plot_title': '',
'plot_title': 'updated at {}'.format(datetime.utcnow().strftime('%Y-%m-%d %H:%M')),
'y_axis_name': 'RUR price',
'png_thumb_filename': '../img/GSTRUR_graph_thumb.png',
'png_filename': '../img/GSTRUR_graph.png',
@ -20,7 +20,7 @@ RUR_CONFIG = { @@ -20,7 +20,7 @@ RUR_CONFIG = {
}
BTC_CONFIG = {
'plot_title': '',
'plot_title': 'updated at {}'.format(datetime.utcnow().strftime('%Y-%m-%d %H:%M')),
'y_axis_name': 'BTC price',
'png_thumb_filename': '../img/GSTBTC_graph_thumb.png',
'png_filename': '../img/GSTBTC_graph.png',
@ -38,10 +38,14 @@ def get_data_from_nvspc(url): @@ -38,10 +38,14 @@ def get_data_from_nvspc(url):
'http': PROXY_URL
})
opener = urllib.request.build_opener(proxy_handler)
response = opener.open(url, None, TIMEOUT)
raw_result = response.read().decode()
data = reversed(json.loads(raw_result)['data']['l'])
return data
try:
response = opener.open(url, None, TIMEOUT)
raw_result = response.read().decode()
data = reversed(json.loads(raw_result)['data']['l'])
return data
except Exception as ex:
print(ex)
exit(1)
def adapt_data_for_plot(data):
oneline = {'x': [], 'y': [], }

Loading…
Cancel
Save