Pages:
Author

Topic: PHP Bitcoin Node Status Page - page 4. (Read 9970 times)

hero member
Activity: 826
Merit: 500
January 06, 2015, 08:04:03 PM
#3
nice one
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
January 06, 2015, 08:03:20 PM
#2
I was about to suggest a cache, then I read your post again Cheesy
newbie
Activity: 28
Merit: 0
January 06, 2015, 07:52:47 PM
#1
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.

My Node

https://odin.vikingserv.net

GitHub Code: https://github.com/craigwatson/bitcoind-status
Travis CI: https://travis-ci.org/craigwatson/bitcoind-status

Donations

BTC donations are also graciously accepted both direct to 174N2KwMzKYvYkCSx1kezrzfSQuJQEZY9T and also via ChangeTip  Smiley

TL;DR - Main Features
  • List of connected nodes, with optional geolocation
  • Simple file-based cache system to limit RPC calls
  • Ships with two different CSS styles - "light" (default) and "dark"
  • Generates and displays a donation QR code for donations
  • IP-based whitelist for clearing/bypassing the cache
  • Displays historical number of connections (requires the use of a stats-collecting cron job)
  • Displays graph showing peer type breakdown over time (requires the use of another stats-collecting cron job)

Full Features List
  • Peer list is filterable - you can ignore a set list of peer IPs and also Tor peers
  • Extra agent strings can be added to the peer type graph
  • Fully responsive mobile design, including connected nodes table
  • Can bypass the file-based cache system entirely
  • Displays free disk space
  • Can either display the node's IP address via the PHP $_SERVER variable, or from the Bitcoin Daemon
  • Display if the node is running on testnet
  • Display the currently running Bitcoind version
  • Optionally display the remote port when listing connected peers.
  • IP-based geolocation 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 Smiley

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.
Pages:
Jump to: