-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-example.py
25 lines (20 loc) · 1 KB
/
config-example.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
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This is an example of the btprox configuration file.
# away_after determines when a device is regarded as out of sight. When
# a device has not been seen for this amount of scans, it is removed
# from the list of devices in range. This is used to make sure a device
# really is away, and show some tolerance to temporary scanning errors.
away_after = 3
# known_devices is a dictionary with human readable device names as
# keys and Bluetooth device MAC addresses as keys. Used for making it
# easier to reference devices, without having to remember
# MAC addresses.
known_devices = {
'phone' : '01:23:45:67:89:AB',
'laptop' : 'CD:EF:01:23:45:67',
}
# plugins is the list of plugins to load. Each element in the list must be a list of 3 elements: The Python path to the plugin class, the options for the plugin and a list of devices the plugin should be notified about.
plugins = [
('plugins.notify.Notifier', {}, [known_devices['phone'], '89:AB:CD:EF:01:23']),
]