Files
ems/.env.example
Dusan Vojacek 9f4126946d second version
2026-04-03 14:23:16 +02:00

39 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================================
# EMS Platform environment proměnné
# Zkopírovat jako .env a doplnit hodnoty
# NIKDY necommitovat .env do gitu!
# ============================================================
# ---- PostgreSQL ----
DB_USER=ems_user
DB_PASSWORD=change_me_strong_password
# ---- PostgREST ----
POSTGREST_JWT_SECRET=change_me_jwt_secret_min_32_chars
# PostgREST anonymní role (viz db/migration/V009__postgrest_roles.sql + R__z_postgrest_ems_anon_grants.sql).
POSTGREST_ANON_ROLE=ems_anon
# ---- OTE CZ import ----
# Veřejný chart endpoint; kód doplňuje ?report_date=YYYY-MM-DD&time_resolution=PT15M
OTE_API_URL=https://www.ote-cr.cz/cs/kratkodobe-trhy/elektrina/denni-trh/@@chart-data
EUR_CZK_RATE=25.0 # přepočet EUR/MWh → CZK/kWh (EUR/MWh * rate / 1000)
# ---- Weather / Forecast ----
OPEN_METEO_API_URL=https://api.open-meteo.com/v1/forecast
# ---- Loxone ----
LOXONE_USER=admin
LOXONE_PASSWORD=change_me
# ---- Alerty ----
DISCORD_WEBHOOK_URL= # Discord webhook URL pro alerty, prázdné = vypnuto
# ---- Telemetrie ----
TELEMETRY_POLL_INTERVAL_SEC=60
# ---- Plánování ----
PLANNING_HORIZON_HOURS=36
PLANNING_HP_MAX_COST_CZK_KWH=3.0 # max Kč/kWh tepla pro spuštění TČ
PLANNING_CHEAP_PRICE_THRESHOLD=0.85
PLANNING_EXPENSIVE_PRICE_THRESHOLD=1.15