<?php
/**
 * weather.config.php
 * DefApp Weather Dashboard — Configuration
 *
 * System:  rickweb.test/weatherdash
 * DB:      intel145_weather
 * Version: 1.0.0
 */

define('WS_CONFIG', [

    // ----------------------------------------------------------------
    // API / DATA LAYER
    // ----------------------------------------------------------------
    'mock_mode'          => true,   // true = mock; false = Live database mode

    'api_base'         => '/Users/rbutare/websites/apps/weather_station/weather/api/weather_station',
    'endpoints' => [
        'current'  => 'current',
        'forecast' => 'forecast',
        'alerts'   => 'alerts',
        'history'  => 'history',
        'locations'=> 'locations',
    ],

    // ----------------------------------------------------------------
    // DATABASE (Aligned with .env credentials)
    // ----------------------------------------------------------------
    'db' => [
        'host'   => 'localhost',
        'name'   => 'intel145_weather',
        'user'   => 'intel145_drumhill',
        'pass'   => '', // Handled by .env / weather.db.php
        'prefix' => 'wx_',
    ],

    // ----------------------------------------------------------------
    // STATIONS (Synced with wx_locations table)
    // ----------------------------------------------------------------
    'default_station' => 'home',
    'stations' => [
        'home' => [
            'name'     => 'West End, NC',
            'location' => 'West End, NC',
            'coords'   => '35.2512°N, 79.5360°W',
        ],
    ],

    // ----------------------------------------------------------------
    // DISPLAY & ASSETS
    // ----------------------------------------------------------------
    'display_user'     => 'Rick',
    'display_location' => 'West End, NC',
    'asset_base'       => '/weatherdash/',
    'refresh_interval' => 60,
    'firmware_version' => 'v3.8.2',

    'links' => [
        'history'  => '/weatherdash/history/',
        'settings' => '/weatherdash/settings/',
    ],
]);
