Bitcoin Forum
June 21, 2024, 02:06:37 PM *
News: Voting for pizza day contest
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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?
2  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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  Grin

See my node for an example (I've added breadwallet and bither clients to the default Core/Classic/BitcoinJ set).
3  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley
4  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: January 12, 2016, 10:47:30 AM
Very good, wish i had the skills to do that....... well done sir  Wink

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 ?

Thanks Smiley

There already is a site where users can register Bitcoin addresses alongside their nodes - bitnodes.21.co.

It's not really exposed (you have to drill into the node details to see the address) but the data is there Smiley

My nodes:

https://bitnodes.21.co/nodes/188.65.59.69-8333/
https://bitnodes.21.co/nodes/185.122.56.197-8333/
https://bitnodes.21.co/nodes/31.220.7.136-8333/
5  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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
6  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: December 02, 2015, 10:22:28 AM
Be nice if I could run a version on windows Cheesy

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.
7  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: December 01, 2015, 06:30:44 PM
Did this break your live demo?

Code:
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.
8  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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.
9  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley
10  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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
11  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley

Demo: https://loki.vikingserv.net
12  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: March 23, 2015, 10:15:51 AM
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=1

this is something (the stats from bitcoind) that you could easily incorporate into what you have already, I'd think..

All done - see my node at https://loki.vikingserv.net Smiley

Code is also updated on GitHub Smiley
13  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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.
14  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley
15  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley
16  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley

It is possible to check your node on the leaderboard to see how you fare.

Nice, I may add this in future Smiley
17  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley
18  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: 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 Smiley
19  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: January 11, 2015, 07:54:09 PM
Also added: geolocation feature Smiley
20  Bitcoin / Bitcoin Technical Support / Re: PHP Bitcoin Node Status Page on: January 11, 2015, 02:36:17 PM
can you add FREE DISK SPACE ?

Code:
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 Smiley
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!