-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpydPiper_config.py
88 lines (73 loc) · 2.4 KB
/
pydPiper_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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import logging
# Messages
STARTUP_LOGMSG = 'pydPiper starting'
STARTUP_MSG_DURATION = 5 # Sets how long that system state 'starting' will be True
# Display Parameters
DISPLAY_DRIVER='winstar_weg'
#DISPLAY_DRIVER='hd44780'
DISPLAY_WIDTH = 100 # the width of the display in pixels
DISPLAY_HEIGHT = 16 # the height of the display in pixels
DISPLAY_SIZE = (DISPLAY_WIDTH, DISPLAY_HEIGHT)
DISPLAY_PIN_RS = 7
DISPLAY_PIN_E = 8
DISPLAY_PINS_DATA = [ 25, 24, 23, 27 ] # Raspdac V3
#DISPLAY_PINS_DATA = [ 25, 24, 23, 15 ] # Raspdac V2
# Page Parameters
ANIMATION_SMOOTHING = .15 # Amount of time in seconds to wait before repainting display
# System Parameters
# This is where the log file will be written
LOGFILE=u'/var/log/pydPiper.log'
#LOGFILE=u'./log/pydPiper.log'
# 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''
# 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
# Paris Metro area. Replace with your location.
OWM_LAT = 48.865
OWM_LON = 2.352
# Music Source Parameters
# Used by Volumio V1 and Moode
MPD_SERVER = u"localhost"
MPD_PORT = 6600
MPD_PASSWORD = ''
# Used by Volumio v1 and Moode
SPOP_SERVER = u"localhost"
SPOP_PORT = 6602
SPOP_PASSWORD = ''
# Used by Volumio v2
VOLUMIO_SERVER = u'localhost'
VOLUMIO_PORT = 3000
# Used by RuneAudio
RUNE_SERVER = u"localhost"
RUNE_PORT = 6379
RUNE_PASSWORD = u""
# Used by Max2Play and piCorePlayer
LMS_SERVER = u"localhost"
LMS_PORT = 9090
LMS_USER = u""
LMS_PASSWORD = u""
# Set this to MAC address of the Player you want to monitor.
# THis should be the MAC of the RaspDac system if using Max2Play with SqueezePlayer
# Note: if you have another Logitech Media Server running in your network, it is entirely
# possible that your player has decided to join it, instead of the LMS on Max2Play
# To fix this, go to the SqueezeServer interface and change move the player to the
# correct server.
LMS_PLAYER = u"00:01:02:aa:bb:cc"