-
Notifications
You must be signed in to change notification settings - Fork 7
/
settings.py
38 lines (30 loc) · 1.02 KB
/
settings.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
import datetime
# Name of the interface that will be used for monitoring mode.
DEFAULT_INTERFACE = "wlan0"
# Server configuration.
SERVER = {
# localhost address is needed to make `uvicorn` server
# accessible on the local network using different devices.
"localhost": "0.0.0.0",
"host": "127.0.0.1",
"port": 3_001,
"redis_host": "127.0.0.1",
"redis_port": 6_379,
}
# Number of maximum reconnect attempts to the server before terminating sniffer.
MAX_RECONNECT = 5
# Time delay, in seconds, between sniffer reconnect attempts.
DELAY = 30
# Format of the timestamp that will be stored alongside SSID.
TIMESTAMP_FORMAT = "%Y-%m-%d %H:%M:%S.%f"
# Timestamp is used to name the channel id for storing data.
# Format is 'year + month + day', e.q. 20231202.
CHANNEL_ID = datetime.datetime.now().strftime("%Y%m%d")
# Logging configuration.
LOGGING = {
"format": "[{time}: {level}] {message}",
"rotation": "30 days",
"retention": 5,
}
# List of SSIDs that the sniffer should ignore.
SSID_FILTER = []