-
Notifications
You must be signed in to change notification settings - Fork 0
/
default_settings.py
51 lines (41 loc) · 1.48 KB
/
default_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
39
40
41
42
43
44
45
46
47
48
49
50
51
# Web server
DEBUG = False
HOST = '127.0.0.1'
PORT = 5000
SITE_TITLE = "ARTF Data Viewer Demo"
# Refresh interval in minutes
REFRESH_INTERVAL = 20
# Database location
SQLITE3_DB_PATH = '/home/ubuntu/ARTF-Data-Receiver/data/artf_sensors_demo.sqlite3'
# Sensor type mapping
#
# - First parameter is the identifier sent from sensors in the wild
# - Second parameter is the readable name of the sensor type
# - Third parameter is the types of readings returned
# - Semi-colon separates different sensor reading types
# - Each reading type needs to specify type and unit of measurement
# - For, example TYPE UNITS; TYPE UNITS -> distance meters; temperature celsius
SENSOR_TYPES = (
("d", "Water", "distance centimeters; temperature celsius"),
("g", "Gate", "distance centimeters"),
("s", "Soil", "moisture percent; temperature celsius"),
)
# Maps sensor ids to more informative name.
#
# Not all sensors need to be named. Can be adjusted later, just remember to
# restart server on config file updates
#
# For instance, +12223334444 is not as informative as Campbell Creek Water Sensor
#
# Example format:
#
SENSOR_NAMES = {
'sensor_0': 'Machu Picchu Sensor',
'sensor_1': 'Yellowstone Sensor',
'sensor_2': 'Sagarmatha National Park Sensor',
'sensor_3': 'Banff Sensor',
}
# Data receiver error logging
DATA_LOGGER_ERROR_FILE = '/home/ubuntu/ARTF-Data-Receiver/log/artf_sensors_demo.log'
DATA_LOGGER_ERROR_LEVEL = 'INFO'
DATA_LOGGER_ERROR_FORMAT = '%(levelname)s - %(message)s'