Report PDF emailing

This commit is contained in:
2026-06-18 21:07:34 +01:00
parent 7254719794
commit 364f4fe57e
16 changed files with 1428 additions and 16 deletions
+7
View File
@@ -21,6 +21,13 @@ class Config:
app_timezone: str = os.getenv("APP_TIMEZONE", "Europe/London")
flask_secret_key: str = os.getenv("FLASK_SECRET_KEY", "dev-only-secret")
healthcheck_url: str | None = os.getenv("HEALTHCHECK_URL")
report_output_dir: str = os.getenv("REPORT_OUTPUT_DIR", "/tmp/switchbot-reports")
report_sender_email: str = os.getenv("REPORT_SENDER_EMAIL", "")
report_sender_name: str = os.getenv("REPORT_SENDER_NAME", "SwitchBot Temps")
smtp2go_api_key: str = os.getenv("SMTP2GO_API_KEY", "")
smtp2go_api_url: str = os.getenv("SMTP2GO_API_URL", "https://api.smtp2go.com/v3/email/send")
smtp2go_timeout_seconds: int = int(os.getenv("SMTP2GO_TIMEOUT_SECONDS", "20"))
report_scheduler_poll_seconds: int = int(os.getenv("REPORT_SCHEDULER_POLL_SECONDS", "300"))
config = Config()