38 lines
721 B
Python
38 lines
721 B
Python
# --- BLE & app config -------------------------------------------------
|
|
|
|
MAC_PREFIX = "A4:C1:38"
|
|
SCAN_INTERVAL_MINUTES = 1
|
|
debug_output = False
|
|
bind_ip = "0.0.0.0"
|
|
api_port = 5001
|
|
redis_port = 6379
|
|
enable_redis = True
|
|
bt_usb_ids = [
|
|
"0bda:c821",
|
|
"2357:0604"
|
|
]
|
|
|
|
# test settings
|
|
reset_retries = 5
|
|
|
|
# --- This will store friendly names for MAC addresses -----------------
|
|
comment_lookup = [
|
|
{
|
|
"mac": "A4:C1:38:11:F4:2A",
|
|
"comment": "Kitchen - 0"
|
|
},
|
|
{
|
|
"mac": "A4:C1:38:D7:8D:26",
|
|
"comment": "Table - 1"
|
|
},
|
|
{
|
|
"mac": "A4:C1:38:24:15:B0",
|
|
"comment": "Hallway 2"
|
|
},
|
|
{
|
|
"mac": "A4:C1:38:96:53:30",
|
|
"comment": "Bedroom 3"
|
|
}
|
|
]
|
|
|