-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.ini
executable file
·83 lines (70 loc) · 1.88 KB
/
env.ini
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
#----------------------------------------------------
# Atributos comunes necesarios para la configuración del sistema
#----------------------------------------------------
[global]
__project__ = PiHome.watchDog
__version__ = 0.0.1
__description__ = Código que gestiona el control de acceso al recinto
[xbee]
baudrate = 9600
# Si no está definido en el fichero 'local.ini', se ejecutará
# el procedimiento "config.search_xbee_port" para buscarlo
# route = /dev/ttyUSB0
#----------------------------------------------------
# Asignación de pines del GPIO
#----------------------------------------------------
[pin]
# LED'S
error = 6
warn = 26
monitor = 16
success = 24
#25
# Servo
servo = 18
# RFID
sda = 8
sck = 11
mosi = 10
miso = 9
reset = 25
#----------------------------------------------------
# Definición de las acciones para las que este módulo está preparado
# Todas siguen la estructura \A(CMD:<ACCION>(?<DATO>)*)+\Z
#----------------------------------------------------
[action]
# Conjunto de acciones que se esperan recibir
in = APAGAR ABRIR CERRAR ECHO READ_TAG
# Conjunto de acciones configuradas para mandar
out = INIT PING SHOUTING_DOWN READ_TAG TOC_TOC
#----------------------------------------------------
# Dev Environment
#----------------------------------------------------
[dev.log]
;format = %(asctime)s - %(name)s - %(levelname)s - %(message)s
;logging.DEBUG ; 10
level = INFO
file_log = log/log.log
warn_log_file = log/warn.log
[dev.mysql]
dbUrl = localhost
dbName = db
[dev.ftp]
site = localhost
uploaddir = http://localhost/www/public/images
[dev.cdn]
url = http://localhost/cdn/www/images
#----------------------------------------------------
# Prod Environment
#----------------------------------------------------
[prod.log]
format =
level =
[prod.mysql]
dbUrl = http://yoursite.com:80
dbName = db
[prod.ftp]
site = ftp.yoursite.com:22
uploaddir = /www/public/
[prod.cdn]
url =