Skip to content

Bitcoin full node with network "clock" visualizer for Raspberry Pi 32x32 LED display

Notifications You must be signed in to change notification settings

synth-o-stonks/ClockBlocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Bitcoin Block Clock

Raspberry Pi Full Node with 32 x 32 RGB LED network visualizer

Dependencies:

Be sure to install the Python bindings as well as the core library: https://github.com/hzeller/rpi-rgb-led-matrix/tree/master/bindings/python

You may also need to solder a jumper on the Adafruit HAT: https://github.com/hzeller/rpi-rgb-led-matrix#improving-flicker

$ sudo pip install pyqrcode
  • PIL (now maintained as Pillow):
$ sudo apt-get install python-pil
  • Bitcoin Core (or alt-client, check out http://raspnode.com/diy.html) with the following lines added to ~/.bitcoin/bitcoin.config (see Installation below, the paths should match):
blocknotify=python /home/pi/bin/ClockBlocker/block.py %s
walletnotify=python /home/pi/bin/ClockBlocker/tx.py %s

other helpful bitcoin.config parameters for running a full node on an RPi:

minrelaytxfee=0.00005000
limitfreerelay=0
dbcache=50

other tips for running a full node on an RPi:

  • use an SSD drive (not a USB memory stick) for the blockchain
  • Bitcoin Core version 0.12 employs libsecp256k1 which improves block validation time a great deal

Installation:

Clone this repository in ~/bin and make easy-to-type command to start clock:

$ cd ~
$ git clone https://github.com/pinheadmz/ClockBlocker.git
$ sudo ln -s ~/ClockBlocker/ledbits.py /usr/local/bin/ledbits
$ sudo chmod 777 /usr/local/bin/ledbits

...then from any command line you can start the clock by entering:

$ ledbits

API passwords:

  • Bitcoin: create file bitcoinAuth.py which contains:
USER = "YOUR-BITCOIN-RPC-USERNAME"
PW = "YOUR-BITCOIN-RPC-PASSWORD"

...then create file ipInfoAuth.py which contains:

api_key = 'YOUR-API-KEY'

Hardware:

Here's a "wishlist" I made on Adafruit (accepts Bitcoin!) with most the components I used for the build:

https://www.adafruit.com/wishlists/394607

A few of these items might be found cheaper on other sites, but this is overall the shopping list. I didn't include HDMI or USB cables, or the materials I used in my own "custom" power distributor, but that Adafruit 10A power supply is enough to run the entire system.

Here's the SSD I'm using for the blockchain:

http://www.amazon.com/gp/product/B00EZ2FRU2

About

Bitcoin full node with network "clock" visualizer for Raspberry Pi 32x32 LED display

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%