-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathpi_pact_config.yml
50 lines (47 loc) · 1.43 KB
/
pi_pact_config.yml
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
# Configuration file for piPACT reference collection software
# Settings for iBeacon advertisment
advertiser:
control_file: 'advertiser_control' # Control file which stops beacon advertisement before timeout
timeout: 20 # Advertisement timeout (s)
uuid: '' # UUID, major, and minor values to advertise
major: 1
minor: 1
tx_power: 1 # Tx power at which to advertise
interval: 200 # Interval at which advertise (ms)
# Settings for beacon scanner
scanner:
control_file: 'scanner_control' # Control file which stops beacon scanner before timeout
scan_prefix: 'pi_pact_scan' # Prefix to attach to scan output files
timeout: 20 # Scanning timeout (s)
revisit: 1 # Interval at which to scan (s)
filters: # Filters
ADDRESS:
RSSI:
# Logger configuration
logger:
name: &name 'pi_pact.log'
config:
version: 1
formatters:
full:
format: '%(asctime)s %(module)-10s %(levelname)-8s %(message)s'
brief:
format: '%(asctime)s %(levelname)-8s %(message)s'
handlers:
console:
class: 'logging.StreamHandler'
level: 'INFO'
formatter: 'brief'
file:
class: 'logging.handlers.TimedRotatingFileHandler'
level: 'DEBUG'
formatter: 'full'
filename: *name
when: 'H'
interval: 1
loggers:
*name:
level: 'DEBUG' # Effective logging level
handlers:
- 'console'
- 'file'