Spaces:
Running on Zero
Running on Zero
Fix WEATHER_FIELDS tuple structure
Browse files
app.py
CHANGED
|
@@ -26,14 +26,14 @@ BY_ID = {h["house_id"]: h for h in HOUSES}
|
|
| 26 |
INFO = SERVICE.model_info()
|
| 27 |
|
| 28 |
WEATHER_FIELDS = [
|
| 29 |
-
("temperature", "Temperature (°C)"),
|
| 30 |
-
("humidity", "Humidity (%)"),
|
| 31 |
-
("dew", "Dew point (°C)"),
|
| 32 |
-
("precipitation", "Precipitation (mm)"),
|
| 33 |
-
("wind_speed", "Wind speed (km/h)"),
|
| 34 |
-
("wind_direction", "Wind direction (°)"),
|
| 35 |
-
("pressure", "Pressure (hPa)"),
|
| 36 |
-
("solar_radiation", "Solar radiation (W/m²)"),
|
| 37 |
]
|
| 38 |
|
| 39 |
PROFILE_ROWS = [
|
|
|
|
| 26 |
INFO = SERVICE.model_info()
|
| 27 |
|
| 28 |
WEATHER_FIELDS = [
|
| 29 |
+
("temperature", "Temperature (°C)", -10.0, 55.0, 0.5),
|
| 30 |
+
("humidity", "Humidity (%)", 0.0, 100.0, 1.0),
|
| 31 |
+
("dew", "Dew point (°C)", -20.0, 40.0, 0.5),
|
| 32 |
+
("precipitation", "Precipitation (mm)", 0.0, 50.0, 0.1),
|
| 33 |
+
("wind_speed", "Wind speed (km/h)", 0.0, 120.0, 0.5),
|
| 34 |
+
("wind_direction", "Wind direction (°)", 0.0, 360.0, 1.0),
|
| 35 |
+
("pressure", "Pressure (hPa)", 900.0, 1050.0, 0.5),
|
| 36 |
+
("solar_radiation", "Solar radiation (W/m²)", 0.0, 1200.0, 5.0),
|
| 37 |
]
|
| 38 |
|
| 39 |
PROFILE_ROWS = [
|