# 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'