Basic settings are made in config.ini.
- Login on Raspberry Pi via CLI:
ssh pi@192.168.x.x
$ cd ~/LightningATM/
$ ./app.py
- When you first start you will get an "No display configuration matched. Exiting...".
- The config.ini has now been created in the background.
- Now edit the config.ini as described next step to set the display and other configurations.
Note: If the display is already set correctly, the process will not "Exiting..". You have to stop it with CTRL+C.
$ nano ~/.lightningATM/config.ini
- Don't be surprised, the spelling is really
~/.lightningATM/config.iniwith a dot and lowercase letters.
display = waveshare2in13v2
Note: Please compare your display type carefully! Yours may require different settings and an incorrect setting will not work.
payoutdelay = 12
- Its needed for the the pocket version, because it has no push button for confimrmation. The invoice will be generated automatically after 12 seconds.
- Note: If you have a button version, you must keep the 0.
- If you would like to set a BTCPayServer wallet, get further information here: BTCPayServer
- Note: A good guide to getting started with the LNTXBOT can be found here: coincharge.io
activewallet = lntxbot
[lntxbot]
# base64 encoded lntxbot api credentials
url = https://lntxbot.com
creds = abc..xyz==
- Note: The LNTXBOT delivers
urlandcredswith the command/lightningATMfrom you Telegram bot - The structure from the bot answer is build up like:
<creds>@<url>
- Each coin generates a specific number of pulses. Here 2 to 7 pulses.
[coins]
# Pulsecount, fiat value, name
coin_types = 2,0.05,5 eur cent
3,0.10,10 eur cent
4,0.20,20 eur cent
5,0.50,50 eur cent
6,1.00,1 eur
7,2.00,2 eur
- When you finshed with changings in the config.ini, save and exit the editor:
CTRL+x -> y -> ENTER Note:In the config.ini you can also change the currency and fees.
- Start the ATM again
$ cd ~/LightningATM/
$ ./app.py
- The display should now show
LightningATM - If everything is entered correctly, the ATM should now be ready for use
- Just test it with few coins
- To stop the ATM just press
CTRL+C - After a short time,
Manually Interruptedis displayed and you can see on the display that theATM is turned off
display LightningATM
display ATM turned off!
Note:If it doesn't work properly, you can run the debug logger with the commandtail -f ~/.lightningATM/debug.login a separate terminal window. We will show more information later in the chaptertmux.Note:How to give the ATM an autostart function, you will learn later in chapterautostartNote:If you have already set the autostart and also start the app.py manually as described here, the display will not work properly. Then first stop the service as described inautostart.




