Bitcoin Forum
December 12, 2024, 10:35:38 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2] 3 4 »  All
  Print  
Author Topic: PHP Bitcoin Node Status Page  (Read 10032 times)
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
January 11, 2015, 11:08:30 AM
 #21

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 Smiley
Mitchell
Staff
Legendary
*
Offline Offline

Activity: 4144
Merit: 2337


Verified awesomeness ✔


View Profile WWW
January 11, 2015, 12:09:07 PM
 #22

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 Smiley
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 Tongue

.
Duelbits
            ▄████▄▄
          ▄█████████▄
        ▄█████████████▄
     ▄██████████████████▄
   ▄████▄▄▄█████████▄▄▄███▄
 ▄████▐▀▄▄▀▌████▐▀▄▄▀▌██

 ██████▀▀▀▀███████▀▀▀▀█████

▐████████████■▄▄▄■██████████▀
▐██████████████████████████▀
██████████████████████████▀
▀███████████████████████▀
  ▀███████████████████▀
    ▀███████████████▀
.
         ▄ ▄▄▀▀▀▀▄▄
         ▄▀▀▄      █
         █   ▀▄     █
       ▄█▄     ▀▄   █
      ▄▀ ▀▄      ▀█▀
    ▄▀     ▀█▄▄▄▀▀ ▀
  ▄▀  ▄▀  ▄▀

Live Games

   ▄▄▀▀▀▀▀▀▀▄▄
 ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄
▄▀ █ ▄  █  ▄ █ ▀▄
█ █   ▀   ▀   █ █  ▄▄▄
█ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █   █
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█  █▄█
█ ▀▀█  ▀▀█  ▀▀█ █  █▄█

Slots
.
        ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄
        █         ▄▄  █
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄       █
█  ▄▄         █       █
█             █       █
█   ▄▀▀▄▀▀▄   █       █
█   ▀▄   ▄▀   █       █

Blackjack
|█▀▀▀▀▀█▄▄▄
       ▀████▄▄
         ██████▄
▄▄▄▄▄▄▄▄█▀    ▀▀█
████████▄        █
█████████▄        █
██████████▄     ▄██
█████████▀▀▀█▄▄████
▀▀███▀▀       ████
   █          ███
   █          █▀
▄█████▄▄▄ ▄▄▀▀
███████▀▀▀
.
                 NEW!                  
SPORTS BETTING 
|||
[ Đ ][ Ł ]
AVAILABLE NOW

Advertisements are not endorsed by me.
T-rage_11
Member
**
Offline Offline

Activity: 74
Merit: 10


www.btcaudio.eu || LIVE-AUDIO-TICKER


View Profile WWW
January 11, 2015, 02:13:56 PM
 #23

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/

Bitcoin Donation: 1337WiNsz5zEnjCUtpvfGaztJqLe5Wxge2
www.btcaudio.eu - LIVE-AUDIO-TICKER
www.t-rage11.bplaced.net - watch & chat
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
January 11, 2015, 02:36:17 PM
 #24

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
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
January 11, 2015, 07:54:09 PM
 #25

Also added: geolocation feature Smiley
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
January 15, 2015, 12:47:20 PM
 #26

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
Mitchell
Staff
Legendary
*
Offline Offline

Activity: 4144
Merit: 2337


Verified awesomeness ✔


View Profile WWW
January 15, 2015, 12:57:35 PM
 #27

Cheers for the comments and contributions - all are greatly appreciated Smiley
No problem Wink

.
Duelbits
            ▄████▄▄
          ▄█████████▄
        ▄█████████████▄
     ▄██████████████████▄
   ▄████▄▄▄█████████▄▄▄███▄
 ▄████▐▀▄▄▀▌████▐▀▄▄▀▌██

 ██████▀▀▀▀███████▀▀▀▀█████

▐████████████■▄▄▄■██████████▀
▐██████████████████████████▀
██████████████████████████▀
▀███████████████████████▀
  ▀███████████████████▀
    ▀███████████████▀
.
         ▄ ▄▄▀▀▀▀▄▄
         ▄▀▀▄      █
         █   ▀▄     █
       ▄█▄     ▀▄   █
      ▄▀ ▀▄      ▀█▀
    ▄▀     ▀█▄▄▄▀▀ ▀
  ▄▀  ▄▀  ▄▀

Live Games

   ▄▄▀▀▀▀▀▀▀▄▄
 ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄
▄▀ █ ▄  █  ▄ █ ▀▄
█ █   ▀   ▀   █ █  ▄▄▄
█ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █   █
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█  █▄█
█ ▀▀█  ▀▀█  ▀▀█ █  █▄█

Slots
.
        ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄
        █         ▄▄  █
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄       █
█  ▄▄         █       █
█             █       █
█   ▄▀▀▄▀▀▄   █       █
█   ▀▄   ▄▀   █       █

Blackjack
|█▀▀▀▀▀█▄▄▄
       ▀████▄▄
         ██████▄
▄▄▄▄▄▄▄▄█▀    ▀▀█
████████▄        █
█████████▄        █
██████████▄     ▄██
█████████▀▀▀█▄▄████
▀▀███▀▀       ████
   █          ███
   █          █▀
▄█████▄▄▄ ▄▄▀▀
███████▀▀▀
.
                 NEW!                  
SPORTS BETTING 
|||
[ Đ ][ Ł ]
AVAILABLE NOW

Advertisements are not endorsed by me.
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
March 06, 2015, 07:40:43 PM
 #28

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
Cryptowatch.com
Full Member
***
Offline Offline

Activity: 196
Merit: 103


View Profile WWW
March 10, 2015, 10:16:14 AM
 #29

Good work.

I noticed this "Free Disk Space: 19.39 GB" on https://loki.vikingserv.net/.

Is that supposed to be the size of the block chain? If so, you might want to  rephrase the label?

Also, shorena made some scripts, check these:
http://node.cryptowatch.com/
http://213.165.91.169/

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.

For those interested, there's also apparently a "high score list".

Check out these links:
https://getaddr.bitnodes.io/
https://getaddr.bitnodes.io/nodes/leaderboard/

It is possible to check your node on the leaderboard to see how you fare.
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
March 10, 2015, 10:32:13 AM
 #30

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
BCwinning
Hero Member
*****
Offline Offline

Activity: 770
Merit: 500


View Profile
March 10, 2015, 10:34:21 AM
 #31

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 Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
March 10, 2015, 10:58:46 AM
 #32

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.txt

Just 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 Sad

Im not really here, its just your imagination.
desertfox470
Sr. Member
****
Offline Offline

Activity: 542
Merit: 251



View Profile
March 11, 2015, 01:35:59 AM
 #33

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 Offline

Activity: 28
Merit: 0


View Profile WWW
March 16, 2015, 11:11:32 PM
 #34

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
Mitchell
Staff
Legendary
*
Offline Offline

Activity: 4144
Merit: 2337


Verified awesomeness ✔


View Profile WWW
March 16, 2015, 11:17:36 PM
Last edit: March 16, 2015, 11:33:20 PM by Mitchełł
 #35

CraigWatson, will update my node right now and keep in the ribbon. Wink

EDIT: Done.

.
Duelbits
            ▄████▄▄
          ▄█████████▄
        ▄█████████████▄
     ▄██████████████████▄
   ▄████▄▄▄█████████▄▄▄███▄
 ▄████▐▀▄▄▀▌████▐▀▄▄▀▌██

 ██████▀▀▀▀███████▀▀▀▀█████

▐████████████■▄▄▄■██████████▀
▐██████████████████████████▀
██████████████████████████▀
▀███████████████████████▀
  ▀███████████████████▀
    ▀███████████████▀
.
         ▄ ▄▄▀▀▀▀▄▄
         ▄▀▀▄      █
         █   ▀▄     █
       ▄█▄     ▀▄   █
      ▄▀ ▀▄      ▀█▀
    ▄▀     ▀█▄▄▄▀▀ ▀
  ▄▀  ▄▀  ▄▀

Live Games

   ▄▄▀▀▀▀▀▀▀▄▄
 ▄▀ ▄▄▀▀▀▀▀▄▄ ▀▄
▄▀ █ ▄  █  ▄ █ ▀▄
█ █   ▀   ▀   █ █  ▄▄▄
█ ▀▀▀▀▀▀▀▀▀▀▀▀▀ █ █   █
█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█  █▄█
█ ▀▀█  ▀▀█  ▀▀█ █  █▄█

Slots
.
        ▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄
        █         ▄▄  █
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▄       █
█  ▄▄         █       █
█             █       █
█   ▄▀▀▄▀▀▄   █       █
█   ▀▄   ▄▀   █       █

Blackjack
|█▀▀▀▀▀█▄▄▄
       ▀████▄▄
         ██████▄
▄▄▄▄▄▄▄▄█▀    ▀▀█
████████▄        █
█████████▄        █
██████████▄     ▄██
█████████▀▀▀█▄▄████
▀▀███▀▀       ████
   █          ███
   █          █▀
▄█████▄▄▄ ▄▄▀▀
███████▀▀▀
.
                 NEW!                  
SPORTS BETTING 
|||
[ Đ ][ Ł ]
AVAILABLE NOW

Advertisements are not endorsed by me.
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
March 21, 2015, 10:43:48 PM
 #36

I've now added Travis CI testing, including PHP syntax checking and PEAR standards compliance - should hopefully make contributions easier Smiley
unamis76
Legendary
*
Offline Offline

Activity: 1512
Merit: 1012


View Profile
March 21, 2015, 11:20:37 PM
 #37

Can this be used with other cryptocurrencies?
CraigWatson (OP)
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile WWW
March 21, 2015, 11:38:14 PM
 #38

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 Offline

Activity: 1512
Merit: 1012


View Profile
March 22, 2015, 12:13:50 AM
 #39

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 Smiley I'll try fiddling with this in the next few days...
zvs
Legendary
*
Offline Offline

Activity: 1680
Merit: 1000


https://web.archive.org/web/*/nogleg.com


View Profile WWW
March 23, 2015, 06:33:59 AM
 #40

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=1

this is something (the stats from bitcoind) that you could easily incorporate into what you have already, I'd think..
Pages: « 1 [2] 3 4 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!