Want to build a PlebClock? You're in the right place!
On your node, do
sudo apt install -y figlet jq
then edit the ~/.bashrc
file and add this line:
alias plebclock="watch -t -n 10 'date \"+%I : %M\" | figlet -f small; bitcoin-cli getblockcount | figlet -f small; expr 100000000 / $(curl https://api.coindesk.com/v1/bpi/currentprice.json 2>/dev/null | jq -r .bpi.USD.rate | sed s/,// | cut -d . -f 1) | figlet -f small'"