"""
Central configuration for Sentinel.
"""

from pathlib import Path


PROJECT_ROOT = Path(__file__).resolve().parent.parent

APPLICATION_NAME = "Sentinel"
VERSION = "0.0.1"

DEVICE_ID = "sentinel-pi-001"
EQUIPMENT_ID = "freezer-test-001"

ACQUISITION_INTERVAL_SECONDS = 5

DATA_DIRECTORY = PROJECT_ROOT / "data"
LOG_DIRECTORY = PROJECT_ROOT / "logs"

DATABASE_PATH = DATA_DIRECTORY / "sentinel.db"
LOG_FILE_PATH = LOG_DIRECTORY / "sentinel.log"

OFFLINE_MODE = True


# Separate database for Sentinel Brain diagnostics.
BRAIN_HISTORY_DATABASE_PATH = (
    DATABASE_PATH.parent / "sentinel_brain_history.db"
)
