1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open Source My PHP Bitcoin Node Status Page

Discussion in 'Software' started by CraigWatson, 24 Mar 2015.

  1. CraigWatson

    CraigWatson Level Chuck Norris

    Joined:
    9 Apr 2009
    Posts:
    721
    Likes Received:
    33
    After setting up my VPS as a full node, I thought it would be nice if I had some way of displaying it to the world.

    Live Demo: https://loki.vikingserv.net
    GitHub Code: https://github.com/craigwatson/bitcoind-status
    Travis CI: https://travis-ci.org/craigwatson/bitcoind-status

    Features

    • List of connected nodes
    • Fully responsive mobile design, including connected nodes table
    • Simple file-based cache system to limit RPC calls
    • Can bypass the file-based cache system entirely.
    • IP-based whitelist for clearing/bypassing the file-based cache
    • Displays free disk space
    • Can either display the node's IP address via the PHP $_SERVER variable, or from the Bitcoin Daemon
    • Generates and displays a donation QR code for donations
    • Display if the node is running on testnet.
    • Display the currently running Bitcoind version
    • Optionally display the remote port when listing connected peers.
    • Ships with two different CSS styles - "light" (default) and "dark" (viewable on my demo)
    • IP-based location flags for both node and peer IP addresses.
    • Optional "Fork me on GitHub" ribbon (toggleable via config.php, enabled by default)
    • Testing includes PHP syntax checking and PEAR standards compliance

    Please note that disabling the cache could overload your Bitcoind with RPC calls, and also cause geolocation errors (the current geolocation provider is rate-limited to 120 requests per minute). Please use with caution!

    I'd really appreciate it if everyone could keep the ribbon enabled to try and boost exposure for the code :)

    Contributions

    Please feel free to comment, suggest (or better still, contribute!) new features or improvements.

    Wanted - PHP Test Writers!

    I'd like to get more test coverage of my code to make contributions even easier - if anyone has any experience in writing PHP tests (either PHPunit or something else), please reach out.

    Donations

    BTC donations are also graciously accepted both direct (174N2KwMzKYvYkCSx1kezrzfSQuJQEZY9T) and via ChangeTip, so feel free to chuck some bits my way if you find it useful :)
     

Share This Page