A clean p2pool node dashboard. It provides:
- Audio and text notifications for new shares and blocks (on most modern browsers)
- Automatic conversion of BTC to USD
- Integration with Blockchain.info APIs
- Detailed information about each share, block and transaction
- All the graphs you know and love
This dashboard requires the use of a custom p2pool fork (https://github.com/jramos/p2pool). The fork adds additional web interfaces for retrieving block and transaction information.
Do this in the top directory of your p2pool installation:
git submodule init
git submodule update
and access via http://<url-to-your-p2pool>:<port>/static
. The default port is 9332
.
The config.json
is found in the js
directory.
If you want your miner address highlighted, adjust myself
variable accordingly. E. g.
var config = {
myself : [
"1Fi7YbpTYjHynUqbh1vwPcAqAqwQzeC1gw"
],
node_name : '',
reload_interval : 60,
reload_chart_interval : 600,
convert_bitcoin_to_usd: true,
enable_audio : true,
header_url : '',
footer_url : '',
ad_url : ''
}
By default. no node name is displayed. To customize, set node_name
equal to the value you want to display. Note that this does not affect the host setting in any way.
var config = {
myself : [],
node_name : 'bitcoin.ramosresearch.com:9332',
reload_interval : 60,
reload_chart_interval : 600,
convert_bitcoin_to_usd: true,
enable_audio : true,
header_url : '',
footer_url : '',
ad_url : ''
}
By default the UI updates the miner list and server stats every 60 seconds. You can adjust the reload_interval
variable like this...
var config = {
myself : [],
node_name : '',
reload_interval : 20,
reload_chart_interval : 1200,
convert_bitcoin_to_usd: true,
enable_audio : true,
header_url : '',
footer_url : '',
ad_url : ''
}
to set it to 20 seconds for example.
reload_chart_interval
sets the amount of seconds until the hashrate graph is reloaded. In above example, it's configured to 1200 seconds (20 minutes).
Beware that each API query puts network and CPU load on your p2pool installation. Avoid decreasing this value too much.
By default, Bitcoin values are automatically converted to US dollars. This is accomplished by using real-time data from Blockchain.info. To disable this feature, set the value of convert_bitcoin_to_usd
to false
.
var config = {
myself : [],
node_name : '',
reload_interval : 60,
reload_chart_interval : 600,
convert_bitcoin_to_usd: false,
enable_audio : false,
header_url : '',
footer_url : '',
ad_url : ''
}
By default, audio is played when new shares or blocks are discovered. This can be disabled via the enable_audio
configuration option. Set it to false if you don't want to hear audio notifications.
var config = {
myself : [],
node_name : '',
reload_interval : 60,
reload_chart_interval : 600,
convert_bitcoin_to_usd: true,
enable_audio : false,
header_url : '',
footer_url : '',
ad_url : ''
}
Add HTML to the files references by header_url
, footer_url
and ad_url
to display HTML snippets at the top, bottom and top-right of each page. Leave blank to disable.
var config = {
myself : [],
node_name : '',
reload_interval : 60,
reload_chart_interval : 600,
convert_bitcoin_to_usd: true,
enable_audio : true,
header_url : 'header.html',
footer_url : 'footer.html',
ad_url : 'ad.html'
}
If you find this dashboard useful, please consider donating some bitcoins:
- Alexander Zschach,
1MzFr1eKzLEC1tuoZ7URMB7WWBMgHKimKe
- Justin Ramos,
18HFFqZv2KJMHPNwPes839PJd5GZc4cT3U
Code released under the MIT license.