GithubHelp home page GithubHelp logo

yunsite / p2pool-node-status Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aatje92/p2pool-node-status

0.0 1.0 0.0 1015 KB

An alternative more clean p2pool node status web interface

License: MIT License

CSS 1.58% HTML 77.67% JavaScript 17.01% PHP 3.75%

p2pool-node-status's Introduction

p2pool-node-status

An alternative clean p2pool node dashboard. It uses Bootstrap, jQuery and Highcharts.

Installation

Parallel to the default web-static

To run this UI in parallel to your current p2pool web interface, do in your web-static directory:

git clone https://github.com/johndoe75/p2pool-node-status.git

You can then access the UI per http://<url-to-your-p2pool>:<port>/static/p2pool-node-status/

As web-static replacement

To replace your current web-static, do in the top directory of your p2pool installation

mv web-static _web-static-pre
git clone https://github.com/johndoe75/p2pool-node-status.git web-static

and access as usually per http://<url-to-your-p2pool>:<port>/static

On a different host

This UI can be run on a different web server as well. The web server must than provide at least PHP in order to execute the JSONP handler.

You need to configure the host and port of your p2pool server in the config.json like

var config = {
  myself : [],
  host : "http://p2pool.org:9332",
  reload_interval : 30,
  reload_chart_interval : 600,
  use_fontawesome : true
}

Beware: The UI queries the p2pool API periodically. This will put additional network traffic on your p2pool server. It can, but must not, result in a higher variance!

Configuration

The config.json is found in js directory.

Highlight your own miner address

If you want your miner address highlighted, adjust myself variable accordingly. E. g.

var config = {
  myself : [
    "1MzFr1eKzLEC1tuoZ7URMB7WWBMgHKimKe",
    "1MsuC6knLeZKHCyQ39Xcw1qcgScS1ZK5R"
  ],
  host : "",
  reload_interval : 30,
  reload_chart_interval : 600,
  use_fontawesome : true
}

Point the UI to a different p2pool server

You need to configure the host and port of your p2pool server in the host variable like

var config = {
  myself : [],
  host : "http://p2pool.org:9332",
  reload_interval : 30,
  reload_chart_interval : 600,
  use_fontawesome : true
}

Adjust the reload interval

Per default the UI updates the miner list and server stats every 30 seconds. You can adjust the reload_interval variable like

var config = {
  myself : [],
  host : "",
  reload_interval : 20,
  reload_chart_interval : 1200,
  use_fontawesome : true
}

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. In my tests, 20 to 30 seconds seem to be fair enough.

Disable Fontawesome Bitcoin icon

On Bitcoin p2pools, this UI uses the Fontawesome Bitcoin icon per default. This can be disabled per use_fontawesome configuration option. Set it to false if don't want to use the bitcoin icon.

var config = {
  myself : [],
  host : "",
  reload_interval : 30,
  reload_chart_interval : 600,
  use_fontawesome : false
}

If this variable is set to false, the UI displays the p2pool currency symbol (BTC).

This does only apply to Bitcoin pools. On other cryptocurrencies, the UI displays whatever p2pool API replies as currency symbol.

Roadmap

  • Auto update node graph.

  • Replace HighCharts by another graph lib which can still be used on nodes having a fee (nodes considered as commercial)

  • Add section for recent shares and share tree in network

  • More graphs for the p2pool node

Credits & License

Alexander Zschach [email protected]

Donate

If you like this tool, find it useful or if you just find it useful, that people out there writing free software for everybody to use or contribute, please donate some coins:

Bitcoins 1MzFr1eKzLEC1tuoZ7URMB7WWBMgHKimKe
Litecoins LSRfZJf75MtwzrbAUfQgqzdK4hHpY4oMW3
Terracoins 1MsuC6knLeZKHCyQ39Xcw1qcgScS1ZK5R
Feathercoins 6tfEE48qk8Kgs9ancC82Y2iQBSX3VGYXfL

License

The MIT License (MIT)

Copyright (c) 2013-2014 Alexander Zschach [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


:wq!

p2pool-node-status's People

Contributors

bardiharborow avatar iongchun avatar jason0x90 avatar johndoe75 avatar roy7 avatar the-smallest avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.