We have now added LNbits and Blink as a new funding source for the LightningATM. 🎉
A quick guide how to set up an LNbits wallet find here
A quick guide how to set up an Blink wallet find here
Connect the ATM to the power supply and log in to your LightningATM via Wifi/SSH. You may find the IP in the network of your router. Open a command line editor and write the command ssh pi@192.168.x.x. Hopefully you still have the assigned password. We will now load the new repository on the ATM and activate it. You have to stop the LightningATM.service once, otherwise you will get a strange display and the ATM will not work properly.
$ sudo systemctl stop LightningATM.service
$ cd ~/LightningATM
$ git pull
Now your ATM is set to the new version. Next you have to configure it for the new wallet.
$ nano ~/.lightningATM/config.ini
[lnbits]
# api credentials
url = https://legend.lnbits.com/api/v1
apikey =
# One of "invoice" or "lnurlw"
method = lnurlw
# only for lnurlw - millisseconds to redeem the lnurlw
timeout = 90000
[blink]
graphql_endpoint = https://api.blink.sv/graphql
api_key = blink_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
wallet_id = 5dxxxxxxxxxxxxxxxxxxxxx
Note for LNbits: Customize your apikey = 8682516eaf0c457... from the LNbis wallet. See here
Note for Blink: Customize your api_key and wallet_id from Blink wallet. See here.
[atm]
..
activewallet = lnbits
[atm]
..
activewallet = blink
and
[lnurl]
lnurlproxy = active
[atm]
..
# Set language: "en", "de", "fr", "it", "es", "pt", "tr" currently available
language = en
# Do you have a camera? "False" or "True"
camera = False
Example, see here.
Save and exit editor: CTRL+x -> y -> Enter
$ cd LightningATM
$ ./app.py
- It takes a few seconds for the display to update..
- The ATM has started and you can use it normally or test the functions.
- Stop the ATM with
CTRL+C
To debug: Launch a second terminal window, login with ssh and access logs with
$ tail -f ~/.lightningATM/debug.log
Restart the LightningATM service by power cycle
$ sudo systemctl start LightningATM.service
- Your ATM should now restart as usual
