Browse Source

Add option to display QR-code for funding

dev
Raumi 6 years ago
parent
commit
05d7972e6f
  1. 11
      home.admin/BBfundWallet.sh
  2. 23
      home.admin/XXdisplayQR.sh

11
home.admin/BBfundWallet.sh

@ -68,3 +68,14 @@ fi
echo "Whats next? --> Wait for confirmations. You can use info on LCD to check if funds have arrived."
echo "If you want your lighting node to open channels automatically, activate the 'Autopilot' under 'Activate/Deactivate Services'"
echo ""
echo ""
echo "******************************"
echo "QR-Code? (Y/N)"
echo "******************************"
echo "Would you like to see a QR-code of this address? Press Y"
read -n1 key
if [ "$key" = "y" ]; then
/home/admin/XXdisplayQR.sh $network:${address}
fi

23
home.admin/XXdisplayQR.sh

@ -0,0 +1,23 @@
#!/bin/bash
# Display a QR code provided as parameter $1
qrcode=$1
# make sure qrcode-encoder in installed
clear
echo "*** Setup ***"
sudo apt-get install qrencode -y
clear
echo "Make the this terminal as big as possible - fullscreen would be best."
echo "Then PRESS ENTER here in the terminal to generare the QR code and scan it with the app."
read key
clear
echo -e "$1" | qrencode -t ANSI256
echo -e "$1"
echo "(To shrink QR code: OSX->CMD- / LINUX-> CTRL-) Press ENTER when finished."
read key
clear
Loading…
Cancel
Save