-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env_example
More file actions
44 lines (36 loc) · 1.27 KB
/
.env_example
File metadata and controls
44 lines (36 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# --- Server Configuration ---
PORT=5000
HOST=0.0.0.0
# --- Location Configuration ---
# Default: Singapore (Tanjong Pagar area)
LATITUDE=1.27710
LONGITUDE=103.84610
CITY_NAME=Singapore
TIMEZONE=Asia/Singapore
# --- Screen Configuration ---
# Kindle Oasis 2 Landscape Resolution
SCREEN_WIDTH=1680
SCREEN_HEIGHT=1264
# --- Locale & Localization ---
# LANGUAGE options: CN (Chinese), EN (English)
LANGUAGE=CN
# Holiday Country Code (for `holidays` python library) e.g., SG, CN, US
HOLIDAY_COUNTRY=SG
# --- Cache Durations (seconds) ---
CACHE_TTL_WEATHER=600
CACHE_TTL_FINANCE=900
CACHE_TTL_NEWS=300
CACHE_TTL_RENDER=60
# --- Finance Configuration ---
# Format: Python list of dicts string representation
FINANCE_TICKERS='[{"symbol": "SGDCNY=X", "name": "SGD/CNY"}, {"symbol": "CNY=X", "name": "USD/CNY"}, {"symbol": "BTC-USD", "name": "BTC/USD"}]'
# --- Work/Commute Logic ---
# Logic: If current time is before START, show weather at START. If before END, show weather at END.
WORK_START_HOUR=10
WORK_END_HOUR=18
# --- News Configuration ---
# Leave empty to use Hacker News (default)
# Or set to a custom JSON endpoint URL to fetch news from there
# Expected JSON format: [{"title": "...", "meta": "..."}, ...]
# Example: NEWS_EXTERNAL_URL=https://your-api.com/top5.json
NEWS_EXTERNAL_URL=