pyastroweatherio 0.62.0.dev22__tar.gz → 0.62.0.dev24__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/PKG-INFO +1 -1
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/client.py +31 -32
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio.egg-info/PKG-INFO +1 -1
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/setup.py +1 -1
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/LICENSE +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/README.md +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/__init__.py +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/const.py +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/dataclasses.py +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/errors.py +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/helper_functions.py +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio.egg-info/SOURCES.txt +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio.egg-info/dependency_links.txt +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio.egg-info/requires.txt +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio.egg-info/top_level.txt +0 -0
- {pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/setup.cfg +0 -0
|
@@ -361,24 +361,24 @@ class AstroWeather:
|
|
|
361
361
|
timestamp = time.replace(tzinfo=None).strftime("%Y-%m-%d %H:00:00+00:00")
|
|
362
362
|
row = self._weather_df.loc[self._weather_df["time"] == timestamp].iloc[0]
|
|
363
363
|
|
|
364
|
-
cloudcover = row["cloud_area_fraction"]
|
|
365
|
-
cloud_area_fraction = row["cloud_area_fraction"]
|
|
366
|
-
cloudcover_high = row["cloud_area_fraction_high"]
|
|
367
|
-
cloudcover_medium = row["cloud_area_fraction_medium"]
|
|
368
|
-
cloudcover_low = row["cloud_area_fraction_low"]
|
|
369
|
-
fog = row["fog_area_fraction"]
|
|
370
|
-
rh2m = row["relative_humidity"]
|
|
371
|
-
wind_speed = row["wind_speed"]
|
|
372
|
-
wind_from_direction = row["wind_from_direction"]
|
|
373
|
-
temp2m = row["air_temperature"]
|
|
374
|
-
dewpoint2m = row["dew_point_temperature"]
|
|
375
|
-
weather = row["next_1h_symbol_code"]
|
|
376
|
-
weather6 = row["next_6h_symbol_code"]
|
|
377
|
-
precipitation_amount = row["next_1h_precipitation_amount"]
|
|
378
|
-
precipitation_amount6 = row["next_6h_precipitation_amount"]
|
|
379
|
-
seeing = row["seeing"]
|
|
380
|
-
transparency = row["transparency"]
|
|
381
|
-
lifted_index = row["lifted_index"]
|
|
364
|
+
cloudcover = float(row["cloud_area_fraction"])
|
|
365
|
+
cloud_area_fraction = float(row["cloud_area_fraction"])
|
|
366
|
+
cloudcover_high = float(row["cloud_area_fraction_high"])
|
|
367
|
+
cloudcover_medium = float(row["cloud_area_fraction_medium"])
|
|
368
|
+
cloudcover_low = float(row["cloud_area_fraction_low"])
|
|
369
|
+
fog = float(row["fog_area_fraction"])
|
|
370
|
+
rh2m = float(row["relative_humidity"])
|
|
371
|
+
wind_speed = float(row["wind_speed"])
|
|
372
|
+
wind_from_direction = float(row["wind_from_direction"])
|
|
373
|
+
temp2m = float(row["air_temperature"])
|
|
374
|
+
dewpoint2m = float(row["dew_point_temperature"])
|
|
375
|
+
weather = str(row["next_1h_symbol_code"])
|
|
376
|
+
weather6 = str(row["next_6h_symbol_code"])
|
|
377
|
+
precipitation_amount = float(row["next_1h_precipitation_amount"])
|
|
378
|
+
precipitation_amount6 = float(row["next_6h_precipitation_amount"])
|
|
379
|
+
seeing = float(row["seeing"])
|
|
380
|
+
transparency = float(row["transparency"])
|
|
381
|
+
lifted_index = float(row["lifted_index"])
|
|
382
382
|
|
|
383
383
|
if self._experimental_features:
|
|
384
384
|
# Calculate Fog Density
|
|
@@ -388,11 +388,11 @@ class AstroWeather:
|
|
|
388
388
|
|
|
389
389
|
condition = ConditionDataModel(
|
|
390
390
|
{
|
|
391
|
-
"cloudcover":
|
|
392
|
-
"cloud_area_fraction":
|
|
393
|
-
"cloud_area_fraction_high":
|
|
394
|
-
"cloud_area_fraction_low":
|
|
395
|
-
"cloud_area_fraction_medium":
|
|
391
|
+
"cloudcover": cloudcover,
|
|
392
|
+
"cloud_area_fraction": cloud_area_fraction,
|
|
393
|
+
"cloud_area_fraction_high": cloudcover_high,
|
|
394
|
+
"cloud_area_fraction_low": cloudcover_low,
|
|
395
|
+
"cloud_area_fraction_medium": cloudcover_medium,
|
|
396
396
|
"fog_area_fraction": max(fog, fog2m),
|
|
397
397
|
"fog2m": fog2m,
|
|
398
398
|
"seeing": seeing,
|
|
@@ -409,15 +409,15 @@ class AstroWeather:
|
|
|
409
409
|
wind_speed=wind_speed,
|
|
410
410
|
precipitation_amount=precipitation_amount,
|
|
411
411
|
),
|
|
412
|
-
"rh2m":
|
|
413
|
-
"wind_speed":
|
|
414
|
-
"wind_from_direction":
|
|
415
|
-
"temp2m":
|
|
416
|
-
"dewpoint2m":
|
|
412
|
+
"rh2m": rh2m,
|
|
413
|
+
"wind_speed": wind_speed,
|
|
414
|
+
"wind_from_direction": wind_from_direction,
|
|
415
|
+
"temp2m": temp2m,
|
|
416
|
+
"dewpoint2m": dewpoint2m,
|
|
417
417
|
"weather": weather,
|
|
418
418
|
"weather6": weather6,
|
|
419
|
-
"precipitation_amount":
|
|
420
|
-
"precipitation_amount6":
|
|
419
|
+
"precipitation_amount": precipitation_amount,
|
|
420
|
+
"precipitation_amount6": precipitation_amount6,
|
|
421
421
|
}
|
|
422
422
|
)
|
|
423
423
|
|
|
@@ -615,7 +615,6 @@ class AstroWeather:
|
|
|
615
615
|
_LOGGER.error(f"Failed to parse location data model data: {time_data}")
|
|
616
616
|
_LOGGER.error(ve)
|
|
617
617
|
|
|
618
|
-
print(forecast_time)
|
|
619
618
|
item = ForecastDataModel(
|
|
620
619
|
{
|
|
621
620
|
# Time data
|
|
@@ -1228,7 +1227,7 @@ class AstroWeather:
|
|
|
1228
1227
|
"wind_speed_10m",
|
|
1229
1228
|
"wind_direction_10m",
|
|
1230
1229
|
],
|
|
1231
|
-
"timezone": self._location_data.timezone_info,
|
|
1230
|
+
"timezone": "UTC", # self._location_data.timezone_info,
|
|
1232
1231
|
# "temperature_unit": "C",
|
|
1233
1232
|
"precipitation_unit": "mm",
|
|
1234
1233
|
"wind_speed_unit": "ms",
|
|
File without changes
|
|
File without changes
|
{pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/dataclasses.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyastroweatherio-0.62.0.dev22 → pyastroweatherio-0.62.0.dev24}/pyastroweatherio/helper_functions.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|