"""
Configuration for the combined Server app.
All projects use a common MySQL database (shop_stats).
"""
import os

_BASE = os.path.dirname(os.path.abspath(__file__))

# Common MySQL (Temps and MoistureMeeter both use shop_stats)
MYSQL_HOST = "localhost"
MYSQL_PORT = 3306
MYSQL_DATABASE = "shop_stats"
MYSQL_USER = "bill"
MYSQL_PASSWORD = "5074367"

# FillDrain: schedule and log file paths
FILLDRAIN_SCHEDULE_FILE = os.path.join(_BASE, "filldrain", "schedule.txt")
FILLDRAIN_LOG_FILE = os.path.join(_BASE, "filldrain", "filldrain.log")

# OTA Update Provider: firmware storage (uses shared MYSQL_* above)
OTA_FIRMWARE_DIR = os.path.join(_BASE, "ota_firmware")

# SolarMon: local weather (Columbia, MS) from Open-Meteo API
WEATHER_LAT = 31.25
WEATHER_LON = -89.83
WEATHER_CACHE_MINUTES = 30
