Groups of google lights (kinda hacky, needs a rework), import auditing.
[python_utils.git] / cached / weather_data.py
index 94a01313375f5a6e6ecc5b485c873e9280c54db5..8d49736bae0cf264fc7447c150011f616ccec388 100644 (file)
@@ -41,7 +41,7 @@ class WeatherData:
     date: datetime.date              # The date
     high: float                      # The predicted high in F
     low: float                       # The predicted low in F
-    precipitation_inchs: float       # Number of inches of precipitation / day
+    precipitation_inches: float      # Number of inches of precipitation / day
     conditions: List[str]            # Conditions per ~3h window
     most_common_condition: str       # The most common condition
     icon: str                        # An icon to represent it
@@ -108,7 +108,7 @@ class CachedWeatherData(persistent.Persistent):
             date = dt,
             high = float(parsed_json["main"]["temp_max"]),
             low = float(parsed_json["main"]["temp_min"]),
-            precipitation_inchs = p / 25.4,
+            precipitation_inches = p / 25.4,
             conditions = [condition],
             most_common_condition = condition,
             icon = icon,
@@ -172,7 +172,7 @@ class CachedWeatherData(persistent.Persistent):
                 date = dt,
                 high = highs[dt],
                 low = lows[dt],
-                precipitation_inchs = precip[dt] / 25.4,
+                precipitation_inches = precip[dt] / 25.4,
                 conditions = conditions[dt],
                 most_common_condition = most_common_condition,
                 icon = icon