-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpydKeg_config.py
65 lines (54 loc) · 1.83 KB
/
pydKeg_config.py
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
57
58
59
60
61
62
63
64
65
import logging
# Messages
STARTUP_MSG = u"pydKeg\nStarting"
STARTUP_LOGMSG = u"pydKeg Starting"
# Display Parameters
DISPLAY_DRIVER='winstar_weg'
DISPLAY_WIDTH = 100 # the width of the display
DISPLAY_HEIGHT = 16 # the height of the display
DISPLAY_SIZE = (DISPLAY_WIDTH, DISPLAY_HEIGHT)
#DISPLAY_WIDTH = 20 # the character width of the display
#DISPLAY_HEIGHT = 4 # the number of lines on the display
DISPLAY_PIN_RS = 8
DISPLAY_PIN_E = 7
DISPLAY_PINS_DATA = [ 12, 16, 20, 21 ] # Raspdac V2
# DB Server Parameters
SERVER='pydKeg-tap1.local'
PASSWORD='beertime'
PORT=3306
# Tap Number
TAP=1
# Page Parameters
SCROLL_BLANK_WIDTH = 10 # Number of spaces to insert into string that is scrolling
COOLING_PERIOD = 15 # Default amount of time in seconds before an alert message can be redisplayed
HESITATION_TIME = 2.5 # Amount of time in seconds to hesistate before scrolling
ANIMATION_SMOOTHING = .01 # Amount of time in seconds before repainting display
# System Parameters
# This is where the log file will be written
LOGFILE=u'/var/log/pydKeg.log'
#LOGFILE=u'./log/pydKeg.log'
STATUSLOGFILE=u'/var/log/pydKeg-status.log'
#STATUSLOGFILE=u'./log/pydKeg-Status.log'
STATUSLOGGING = False
# Logging level
LOGLEVEL=logging.DEBUG
#LOGLEVEL=logging.INFO
#LOGLEVEL=logging.WARNING
#LOGLEVEL=logging.CRITICAL
# Localization Parameters
# Adjust this setting to localize the time display to your region
TIMEZONE=u"US/Eastern"
TIME24HOUR=False
#TIMEZONE=u"Europe/Paris"
# Adjust this setting to localize temperature displays
TEMPERATURE=u'fahrenheit'
#TEMPERATURE=u'celsius'
# WEATHER Parameters
# You must get your own API key from http://openweathermap.org/appid
OWM_API = u'52dfe63ba1fd89b1eda781a02d456842'
# NOVA Metro area. Replace with your location.
OWM_LAT = 38.86
OWM_LON = -77.34
# NY Metro area. Replace with your location.
#OWM_LAT = 40.72
#OWM_LON = -74.07