-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
56 lines (39 loc) · 2.31 KB
/
.env.example
File metadata and controls
56 lines (39 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
##### SERVER #####
# Requires LNbits server and invoice api key. Websockets must be enabled on the server.
LNBITS_SERVER="your.lnbits.server"
LNBITS_INVOICE_KEY="f1fyourinvoicekeyheref1f"
##### TRAY #####
# This machine is built for six trays. Additional trays can be added or removed by editing var.py only.
# All pins below refer to BCM encoding
# Example:
# TRAYn='["label", amount, "unit", pin_in, pin_out]'
# TRAY1='["Coke", 1, "CAD", 17, 5]'
# TRAY2='["21UP", 100, "sat", 27, 6]'
TRAY0='["Coke", 1, "CAD", 22, 5]'
TRAY1='["21UP", 1000, "sat", 27, 6]'
TRAY2='["Bubly", 0.0002, "XAU", 12, 13]'
TRAY3='["Ginger Ale", 1, "USD", 0, 16]'
TRAY4='["Beer", 2100, "sat", 1, 19]'
TRAY5='["Cooler", 5, "EUR", 23, 20]'
# Pins used by display (BCM): 3.3V, 10, 11, 8, 25, 17, 24
# Pin used by barometer (BCM): 5V, 4
# See /docs/pins.ods for a full pin inventory list
##### INVOICES ##### (optional)
MEMO_STRING="One {label} for {amount} {unit} from the 21UP machine. Thank you!"
#INVOICE_EXPIRY=60 # The time the user has to pay the invoice. Affects both the bolt11 invoice and the listening cycle. Default: 60
##### SYSTEM CONFIGURATION ##### (optional)
# DEBUG, INFO, WARNING, ERROR, CRITICAL
#DEBUG_LEVEL=INFO # Default: INFO
#PRODUCTION=TRUE # When set to False, the outgoing pins will be inverted. Useful for debugging. Default: True
#BUTTON_DELAY=50 # Time in milli-seconds in between button presses. If set too low, a button press may register as multiple presses. Default: 50
#RELAY_DURATION=500 # Time in milli-seconds that the machine will trigger the relay. If set too high, multiple sodas may be dispensed. Default: 500
##### DISPLAY #####
#SHOWDISPLAY=TRUE # When set to False, the display is deactivated. Useful for debugging. Default: True
#DISPLAY_DELAY=1 # Time in seconds that the display needs to refres. Used to extend the lifetime of the Lightning invoice. Default: 1
#SUCCESS_SCREEN_EXPIRY=1 # The time that the success or failure screen is shown. Affects the listening cycle. Default: 1
#FONTA=Font.ttc # The file name of the font to be used. Must be placed in the /pic directory
#FONTSIZEA=24 # The size of the font to be used
#FONTB=Rushfordclean.otf
#FONTSIZEB=32 # The size of the alternative font to be used
##### BAROMETER #####
BAROMETER=TRUE # When set to False, the barometer is disabled. Useful for debugging. Default: True