CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 06, 2015, 11:52:47 PM Last edit: January 14, 2017, 08:46:06 AM by CraigWatson |
|
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 Nodehttps://odin.vikingserv.netGitHub Code: https://github.com/craigwatson/bitcoind-statusTravis CI: https://travis-ci.org/craigwatson/bitcoind-statusDonationsBTC donations are also graciously accepted both direct to 174N2KwMzKYvYkCSx1kezrzfSQuJQEZY9T and also via ChangeTip 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 ContributionsPlease 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.
|
|
|
|
|
|
|
|
|
According to NIST and ECRYPT II, the cryptographic algorithms used in
Bitcoin are expected to be strong until at least 2030. (After that, it
will not be too difficult to transition to different algorithms.)
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
Remember remember the 5th of November
Legendary
Offline
Activity: 1862
Merit: 1011
Reverse engineer from time to time
|
|
January 07, 2015, 12:03:20 AM |
|
I was about to suggest a cache, then I read your post again
|
BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
|
|
|
hamdi
|
|
January 07, 2015, 12:04:03 AM |
|
nice one
|
|
|
|
Taras
Legendary
Offline
Activity: 1386
Merit: 1053
Please do not PM me loan requests!
|
|
January 07, 2015, 06:37:42 AM |
|
Looks nice! I'll have a look, maybe put it on my node.
|
|
|
|
mrflibblehat
Sr. Member
Offline
Activity: 350
Merit: 250
★YoBit.Net★ 350+ Coins Exchange & Dice
|
|
January 07, 2015, 11:08:42 AM |
|
Very Nice, It might be nice to show some Peer Info, Who is connected, What version of bitcoind they use etc.
I can fork your code and add this if you like, You are welcome to use it.
MrF
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 07, 2015, 01:14:40 PM |
|
Very Nice, It might be nice to show some Peer Info, Who is connected, What version of bitcoind they use etc.
I can fork your code and add this if you like, You are welcome to use it.
MrF
Just added this - bit of a hacky implementation as it's not responsive, but responsive tables are annoying as hell
|
|
|
|
mrflibblehat
Sr. Member
Offline
Activity: 350
Merit: 250
★YoBit.Net★ 350+ Coins Exchange & Dice
|
|
January 07, 2015, 01:36:02 PM |
|
Very Nice, It might be nice to show some Peer Info, Who is connected, What version of bitcoind they use etc.
I can fork your code and add this if you like, You are welcome to use it.
MrF
Just added this - bit of a hacky implementation as it's not responsive, but responsive tables are annoying as hell No thats good, Looks really neat. Good Job Would be nice to have multiple themes I will use this for my full node.
|
|
|
|
Taras
Legendary
Offline
Activity: 1386
Merit: 1053
Please do not PM me loan requests!
|
|
January 07, 2015, 03:48:34 PM |
|
Submitted a pull request with some potential improvements just now
|
|
|
|
Just Magicmann
|
|
January 08, 2015, 03:41:39 AM |
|
This is fantastic. Likely going to fork it to use for a cryptocurrency I've been supporting and running nodes for.
|
Don't deal with me until I verify with Keybase.io.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 08, 2015, 12:03:37 PM |
|
Just improved a few things, including handling errors from RPC and responsifying the peer information tables, check out the live copy here: https://loki.vikingserv.netA full README is next on the list! This is fantastic. Likely going to fork it to use for a cryptocurrency I've been supporting and running nodes for. Thanks, much appreciated - please feel free to tip/donate if you find it useful Submitted a pull request with some potential improvements just now Pull request merged
|
|
|
|
Just Magicmann
|
|
January 08, 2015, 01:56:35 PM |
|
Would you consider adding something in the config files that would give users the option of displaying the connected user's IPs?
|
Don't deal with me until I verify with Keybase.io.
|
|
|
|
Just Magicmann
|
|
January 08, 2015, 03:13:19 PM |
|
My bad, I meant to not display it, but I see I can just ensure that's set to false.
|
Don't deal with me until I verify with Keybase.io.
|
|
|
terrytibbs
|
|
January 09, 2015, 12:05:51 PM |
|
You need to sanitize the protocol subversion before displaying it to users.
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 09, 2015, 12:06:26 PM |
|
You need to sanitize the protocol subversion before displaying it to users.
Any particular reason?
|
|
|
|
|
Taras
Legendary
Offline
Activity: 1386
Merit: 1053
Please do not PM me loan requests!
|
|
January 09, 2015, 12:46:52 PM |
|
Welcome back
|
|
|
|
Gumbork
|
|
January 09, 2015, 03:23:02 PM |
|
something new, time to give it a shot.
|
|
|
|
Nikinger
|
|
January 10, 2015, 03:27:57 PM |
|
This fix was made at version 0.9 (if I read it correctly). When doing a "getpeerlist" on my own client (or visiting CraigWatson's status page), I see some clients still having <0.9. I think htmlspecialchars() shouldn't hurt. It's better than potentially endangering webmasters who integrates the status page on a <0.9 node.
|
1EwKrY5Bn3T47r4tYqSv6mMQkUyu7hZckV
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
January 11, 2015, 10:50:40 AM Last edit: February 16, 2015, 07:27:03 PM by Mitchełł |
|
Well, I just setup a Bitcoin node, just give this try this. I have always wanted to run a Bitcoin node so now I had a reason to do so. The status page can be found here: click. Bitcoind is still syncing blocks though and has been doing so for the last 12 hours.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 11, 2015, 11:08:30 AM |
|
Well, I just setup Bitcoin node, just try this, hahaha. I have always wanted to run a Bitcoin node so now I had a reason to do so. The status page can be found here: click. Bitcoind is still syncing blocks though and has been doing so for the last 12 hours. Awesome, great to know the page is being used. I've just updated the code with a better Readme and wrapped the node sub-version in htmlspecialchars
|
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
January 11, 2015, 12:09:07 PM |
|
Awesome, great to know the page is being used. I've just updated the code with a better Readme and wrapped the node sub-version in htmlspecialchars Ah alright, going to pull again than. Setting it up was really easy, but I'm a Web dev so I guess it should be easy for me
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
T-rage_11
Member
Offline
Activity: 74
Merit: 10
www.btcaudio.eu || LIVE-AUDIO-TICKER
|
|
January 11, 2015, 02:13:56 PM |
|
can you add FREE DISK SPACE ? Free disk space: <?php $bytes = disk_free_space("."); $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' ); $base = 1024; $class = min((int)log($bytes , $base) , count($si_prefix) - 1); // echo $bytes . '<br />'; echo sprintf('%1.2f' , $bytes / pow($base,$class)) . ' ' . $si_prefix[$class] . '<br />'; ?> LIVE DEMO: http://btcaudio.eu/node/
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 11, 2015, 02:36:17 PM |
|
can you add FREE DISK SPACE ? Free disk space: <?php $bytes = disk_free_space("."); $si_prefix = array( 'B', 'KB', 'MB', 'GB', 'TB', 'EB', 'ZB', 'YB' ); $base = 1024; $class = min((int)log($bytes , $base) , count($si_prefix) - 1); // echo $bytes . '<br />'; echo sprintf('%1.2f' , $bytes / pow($base,$class)) . ' ' . $si_prefix[$class] . '<br />'; ?> LIVE DEMO: http://btcaudio.eu/node/Added, with feature switch
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 11, 2015, 07:54:09 PM |
|
Also added: geolocation feature
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 15, 2015, 12:47:20 PM |
|
Thanks to a few more pull requests, we now have a few new features! - Can bypass the file-based cache system entirely -- please note that this could overload your Bitcoind with RPC calls, please use with caution!
- Display if the node is running on testnet.
- Display the currently running Bitcoind version
Cheers for the comments and contributions - all are greatly appreciated
|
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
January 15, 2015, 12:57:35 PM |
|
Cheers for the comments and contributions - all are greatly appreciated No problem
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 06, 2015, 07:40:43 PM |
|
Removed (by default) the remote port when displaying connected nodes. As with most of the page's functionality, it's easily toggled via the config.php file
|
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 10, 2015, 10:32:13 AM |
|
Is that supposed to be the size of the block chain? If so, you might want to rephrase the label? That's the amount of free disk space left on the node, so basically "the amount the blockchain can grow before I run out of space". Purely vanity and has no real purpose - but as with most things, can be controlled with a toggle switch in config. I got the script for making graphs sent to me by Shorena, I could make it available if others want it too. Not sure if Shorena already made it available. The graphs look nice, though I guess it's beyond the scope of this app for the moment - would be nice for a 2.0 release though! Would be interested to see what the code to generate the graphs is like - if you can check if Shorena is happy for the scripts to be made open source (a pre-requisite for the project) that would be awesome It is possible to check your node on the leaderboard to see how you fare. Nice, I may add this in future
|
|
|
|
BCwinning
|
|
March 10, 2015, 10:34:21 AM |
|
It's pretty nice. I'm going to see if I can get my router to point to my node and display the results.
|
The New World Order thanks you for your support of Bitcoin and encourages your continuing support so that they may track your expenditures easier.
|
|
|
shorena
Copper Member
Legendary
Offline
Activity: 1498
Merit: 1499
No I dont escrow anymore.
|
|
March 10, 2015, 10:58:46 AM |
|
Yeah sure you can share the scripts with anyone. If you notice my name or link to my profile/node thats nice, but its not required. Best fitting license would probably be WTFPL or CC0. The little I wrote is public here -> http://213.165.91.169/whatdo.txtJust a heads up though: I recently shared the complete collection of shell scripts and cronjobs with someone. Its currently not working even though they use the same Linux flavour. So you might have to look into rrdtool after all if you want something similar. Im currently[1] working on a ruby script that can feed several databases with a single request. Not sure where I will share it once its done, but Ill let you know somehow. [1] a few lines a week, might take a while
|
Im not really here, its just your imagination.
|
|
|
desertfox470
|
|
March 11, 2015, 01:35:59 AM |
|
This is a very interesting script thanks for making this. I am thinking about making a btc node because it has always been on my mind, but I never wanted to risk making one. Now I think I may make one just for the support of bitcoin.
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 16, 2015, 11:11:32 PM |
|
Some more minor revisions: I've reworked the CSS to be slightly flatter and more modern, and shipped with two different styles - "light" (default) and "dark" (viewable on my demo) - just edit config.php. I've also added a "Fork me on GitHub" ribbon (toggleable via config.php) - I'd really appreciate it if everyone could keep the ribbon enabled to try and boost exposure for the code
|
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
March 16, 2015, 11:17:36 PM Last edit: March 16, 2015, 11:33:20 PM by Mitchełł |
|
CraigWatson, will update my node right now and keep in the ribbon. EDIT: Done.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 21, 2015, 10:43:48 PM |
|
I've now added Travis CI testing, including PHP syntax checking and PEAR standards compliance - should hopefully make contributions easier
|
|
|
|
unamis76
Legendary
Offline
Activity: 1512
Merit: 1005
|
|
March 21, 2015, 11:20:37 PM |
|
Can this be used with other cryptocurrencies?
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 21, 2015, 11:38:14 PM |
|
Can this be used with other cryptocurrencies?
It can indeed, as long as they respond over RPC in the same way bitcoind does - I know for a fact that the page works with the LTC node, and should work for most altcoins.
|
|
|
|
unamis76
Legendary
Offline
Activity: 1512
Merit: 1005
|
|
March 22, 2015, 12:13:50 AM |
|
Can this be used with other cryptocurrencies?
It can indeed, as long as they respond over RPC in the same way bitcoind does - I know for a fact that the page works with the LTC node, and should work for most altcoins. Ok, thank you I'll try fiddling with this in the next few days...
|
|
|
|
zvs
Legendary
Offline
Activity: 1680
Merit: 1000
https://web.archive.org/web/*/nogleg.com
|
|
March 23, 2015, 06:33:59 AM |
|
Can this be used with other cryptocurrencies?
It can indeed, as long as they respond over RPC in the same way bitcoind does - I know for a fact that the page works with the LTC node, and should work for most altcoins. hi craig, I noticed this site, some 1/2 a year or so ago and relocated it after seeing your topic here; http://176.10.116.242/xbt_cgi/node_status.pl?sortfield=syncnode&sortdirection=1this is something (the stats from bitcoind) that you could easily incorporate into what you have already, I'd think..
|
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 23, 2015, 01:49:16 PM |
|
Apologies for the double-post, but I've also added a little Monday present - geolocation-based flags for both the node and peer IP addresses Demo: https://loki.vikingserv.net
|
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
March 23, 2015, 01:50:54 PM |
|
Apologies for the double-post, but I've also added a little Monday present - geolocation-based flags for both the node and peer IP addresses Demo: https://loki.vikingserv.netNice! I already added something like that to my node, but it isn't as sophisticated, haha. Will update my node in a bit. EDIT: Done. However, it seems that " Time Connected", " Last Send" and " Last Receive" doesn't work. EDIT2: Your config.sample.php does not contain the " geolocate_peer_ip" option.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
March 23, 2015, 02:22:39 PM |
|
Nice! I already added something like that to my node, but it isn't as sophisticated, haha. Will update my node in a bit.
EDIT: Done. However, it seems that "Time Connected", "Last Send" and "Last Receive" doesn't work. EDIT2: Your config.sample.php does not contain the "geolocate_peer_ip" option.
Re: EDIT1: You may need to refresh your cache. The data comes from the getinfo() RPC call, so I'd suggest turning on debug mode and checking the output inside the HTML comment. Re: EDIT2 - Strange, It's in the version on GitHub here: https://github.com/craigwatson/bitcoind-status/blob/master/php/config.sample.php#L31
|
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
March 23, 2015, 04:25:31 PM |
|
1. I've cleared my cache multiple times, but that didn't the problem. What is the version of your bitcoind? 2. And I guess I fucked up the pull than, my bad!
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
April 01, 2015, 07:54:30 AM |
|
Well, I just pulled again, removed everything but my config, redid my config and now it works. I guess I fucked it up somewhere along the line.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
August 14, 2015, 11:23:19 PM |
|
Just a quick bump - since my last update there's been a couple of minor improvements to the status page. It can now report the bitcoin daemon uptime (though only on Linux systems), and you can also toggle displaying the node's IP off altogether. As always, tips/comments/pull requests are appreciated
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
December 01, 2015, 08:48:48 AM |
|
Hi Craig, Thanks for putting this together. Could you explain the few steps after it's downloaded from Github, where do I put the folder (or contents)?
Typically, you'll need to put the folder in /var/www on your server - this is normally where Apache serves content from. That said, you'll need to check the Apache configuration as it can vary from system to system. You can also change Apache's configuration to serve content from a totally different directory (e.g. /srv/www) as long as the filesystem permissions allow Apache read access. Apache will also need write access to wherever you configure it to place the cache files - I've set the default to be /tmp but this is cleared after every reboot, so it may not be appropriate in all cases.
|
|
|
|
shorena
Copper Member
Legendary
Offline
Activity: 1498
Merit: 1499
No I dont escrow anymore.
|
|
December 01, 2015, 09:28:22 AM |
|
Did this break your live demo? Warning: require_once(./php/config.php): failed to open stream: No such file or directory in /srv/www/bitcoind-status/index.php on line 12
Fatal error: require_once(): Failed opening required './php/config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/www/bitcoind-status/index.php on line 12
|
Im not really here, its just your imagination.
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
December 01, 2015, 06:30:44 PM |
|
Did this break your live demo? Warning: require_once(./php/config.php): failed to open stream: No such file or directory in /srv/www/bitcoind-status/index.php on line 12
Fatal error: require_once(): Failed opening required './php/config.php' (include_path='.:/usr/share/php:/usr/share/pear') in /srv/www/bitcoind-status/index.php on line 12
Apologies - I reinstalled my servers a while back. The whole server is Puppetised and the status page config isn't (or at least wasn't) so it got missed - good spot! I've temporarily stopped bitcoind on the boxes as it was making them quite swappy. I've also added a slightly nicer error message when the config file isn't found, so it doesn't fall through to the PHP error.
|
|
|
|
^.^
Member
Offline
Activity: 81
Merit: 10
|
|
December 02, 2015, 12:04:52 AM |
|
Be nice if I could run a version on windows
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
December 02, 2015, 10:22:28 AM |
|
Be nice if I could run a version on windows You should be able to run this on Windows - as long as you have PHP with the curl extension installed, plus a compatible webserver such as Apache. The communication with bitcoind is done via RPC so there's no underlying Linux system calls done for the core functionality. The only OS-level Linux commands run are to get various system stats like disk usage, daemon uptime etc.
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 07, 2016, 05:22:24 PM |
|
OK, apologies for the double-post and bump, but in the interest of keeping the thread updated, I have made the following minor changes to the status page (thanks to Audun Larsen for the pull requests!): - Peer Geolocation: Country flag now displays the full country name on mouseover
- Peer List: You can now ignore/filter the peer list by IP (in addition to the existing feature to ignore all Tor peers)
- Peer List: Peers now have an inbound/outbound connection identifier
- Peer List: Peer connected time and last send/receive are now relative times (i.e. "x minutes", rather than absolute timestamps
- Bitnodes API: Corrected the Bitnodes API URL (removing the getaddr part which is no longer used)
- Settings: You can now hard-code the PHP timezone if you don't have it set in php.ini
|
|
|
|
Mitchell
Copper Member
Legendary
Offline
Activity: 3920
Merit: 2198
Verified awesomeness ✔
|
|
January 07, 2016, 06:13:30 PM |
|
No need to apologize, as you are allowed to bump your own thread, as long as there is 24 hours between your previous post and the new one.
|
| | | . Duelbits | | | ▄████▄▄ ▄█████████▄ ▄█████████████▄ ▄██████████████████▄ ▄████▄▄▄█████████▄▄▄███▄ ▄████▐▀▄▄▀▌██▄█▄██▐▀▄▄▀▌███ ██████▀▀▀▀████▀███▀▀▀▀█████ ▐████████████■▄▄▄■██████████▀ ▐██████████████████████████▀ ██████████████████████████▀ ▀███████████████████████▀ ▀███████████████████▀ ▀███████████████▀ | | | | | . ▄ ▄▄▀▀▀▀▄▄ ▄▀▀▄ █ █ ▀▄ █ ▄█▄ ▀▄ █ ▄▀ ▀▄ ▀█▀ ▄▀ ▀█▄▄▄▀▀ ▀ ▄▀ ▄▀ ▄▀
Live Games | | ▄▄▀▀▀▀▀▀▀▄▄ ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄ ▄▀ █ ▄ █ ▄ █ ▀▄ █ █ ▀ ▀ █ █ ▄▄▄ █ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █ █ █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█ █▄█ █ ▀▀█ ▀▀█ ▀▀█ █ █▄█
Slots | | . ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ ▄▄ █ ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄ █ █ ▄▄ █ █ █ █ █ █ ▄▀▀▄▀▀▄ █ █ █ ▀▄ ▄▀ █ █
Blackjack | | | | █▀▀▀▀▀█▄▄▄ ▀████▄▄ ██████▄ ▄▄▄▄▄▄▄▄█▀ ▀▀█ ████████▄ █ █████████▄ █ ██████████▄ ▄██ █████████▀▀▀█▄▄████ ▀▀███▀▀ ████ █ ███ █ █▀ ▄█████▄▄▄ ▄▄▀▀ ███████▀▀▀ | | | | | | | | | | [ Đ ][ Ł ] AVAILABLE NOW | |
Advertisements are not endorsed by me.
|
|
|
calkob
|
|
January 08, 2016, 04:52:25 PM |
|
Very good, wish i had the skills to do that....... well done sir Thats a great idea for a website, A site where nodes could register and receive donations from bitcoin users. or a node pool where donations are spread among nodes depending on uptime.... maybe that already exists ?
|
|
|
|
|
duel007
Newbie
Offline
Activity: 4
Merit: 0
|
|
September 17, 2016, 04:37:16 PM |
|
This thing works great once I got everything worked out with the settings!
Thanks for creating and maintaining it.
|
|
|
|
Canoeboy
Newbie
Offline
Activity: 2
Merit: 0
|
|
September 18, 2016, 03:19:08 PM |
|
Is this good for php 7.x (I'm running 7.0.11) ?
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
September 18, 2016, 03:57:27 PM |
|
Is this good for php 7.x (I'm running 7.0.11) ?
This does indeed work with PHP7, my test node is running 7.0.10
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
January 14, 2017, 08:43:50 AM |
|
Thread bump and feature update, you can now configure extra node types to graph via an array in the config file See my node for an example (I've added breadwallet and bither clients to the default Core/Classic/BitcoinJ set).
|
|
|
|
n00bminer
Member
Offline
Activity: 104
Merit: 10
|
|
June 23, 2017, 01:36:36 PM |
|
I am struggling with this. my vps gets a 500 error.
|
|
|
|
CraigWatson (OP)
Newbie
Offline
Activity: 28
Merit: 0
|
|
June 23, 2017, 02:14:47 PM |
|
I am struggling with this. my vps gets a 500 error. Is there anything in your PHP logs to check what the issue is? HTTP 500 errors are usually served when there's a configuration issue. For example, is the curl library installed for PHP?
|
|
|
|
n00bminer
Member
Offline
Activity: 104
Merit: 10
|
|
June 23, 2017, 03:01:39 PM |
|
That was it. Curl_init was blowing up. While I had curl installed, I did not have curl-php.
I have this up and running on my dogenode and litenode now. Very nice! Now I have to figure out how to get that swanky dark screen working =)
Thank you for your hard work!
|
|
|
|
|