Arthash - Geometric artwork based on blockhash

Create geometric artwork based on the Bitcoin Blockhash

Art Hash

This script produces geometric artwork deterministically based on Bitcoin Blockhash values. It depends on a bitcoin node running locally and fully synched.

sample image depicting hash as colored triangles

Script Location

The script is installed at ~/nodeyez/scripts/arthash.py.

Configuration

To manage and configure this script, use the nodeyez-config tool

sudo nodeyez-config

To manually configure this script, edit the ~/nodeyez/config/arthash.json file

Fields are defined below

field name description
backgroundColor The background color of the image expressed as a hexadecimal color specifier. Default #000000
height The height, in pixels, to generate the image. Default 320
interval The amount of time, in seconds, the script should wait before data gathering and image creation again. Default 300
shapeOutlineColor The color of the outline for shapes expressed as a hexadecimal color specifier. Default #ffffff
textColor The color of the text expressed as a Hexadecimal color specifier. Default #ffffff
width The width, in pixels, to generate the image. Default 480

Run Directly

Ensure the virtual environment is activated

source ~/.pyenv/nodeyez/bin/activate

Change to the scripts folder

cd ~/nodeyez/scripts

And run it

python arthash.py

Press CTRL+C to stop the process

Run at Startup

To enable the script to run at startup, as the privileged user run the following

sudo systemctl enable nodeyez-arthash.service

sudo systemctl start nodeyez-arthash.service

Home