/ config.py
config.py
 1  # Configuration settings
 2  APP_CONFIG = {
 3      "AARE_STATION_ID": "2135",
 4      "REUSS_STATION_ID": "2152",
 5      "DATA_BASE_URL": "https://www.hydrodaten.admin.ch/plots",
 6      "TEMPERATURE_ENDPOINT": "/temperature_7days/{station_id}_temperature_7days_de.json",
 7      "FLOW_ENDPOINT": "/p_q_7days/{station_id}_p_q_7days_de.json",
 8      "REFRESH_INTERVAL": 10 * 60 * 1000,  # 10 minutes
 9      "DEFAULT_TITLE": "Fäbu's App",
10      "LAST_UPDATED_FORMAT": "%d.%m.%Y %H:%M:%S"
11  }
12  
13  # River configuration
14  RIVERS = {
15      "aare": {
16          "name": "Aare",
17          "station_id": "2135",
18          "display_name": "Aare"
19      },
20      "reuss": {
21          "name": "Reuss",
22          "station_id": "2152",
23          "display_name": "Reuss"
24      }
25  }
26  
27  # Metric configurations
28  METRICS = {
29      "temperature": {
30          "name": "temperature",
31          "title": "Temperatur",
32          "unit": "°C"
33      },
34      "flow": {
35          "name": "flow",
36          "title": "Abfluss und Wasserstand",
37          "unit": "m³/s"
38      }
39  }