pyastroweatherio 0.43.1.dev2__tar.gz → 0.43.1.dev4__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.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/PKG-INFO +1 -1
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/client.py +8 -8
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/const.py +1 -1
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/PKG-INFO +1 -1
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/setup.py +1 -1
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/LICENSE +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/README.md +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/__init__.py +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/dataclasses.py +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/errors.py +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/helper_functions.py +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/SOURCES.txt +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/dependency_links.txt +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/requires.txt +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/top_level.txt +0 -0
- {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/setup.cfg +0 -0
|
@@ -25,7 +25,7 @@ from pyastroweatherio.const import (
|
|
|
25
25
|
DEFAULT_CONDITION_CLOUDCOVER_WEIGHT,
|
|
26
26
|
DEFAULT_CONDITION_SEEING_WEIGHT,
|
|
27
27
|
DEFAULT_CONDITION_TRANSPARENCY_WEIGHT,
|
|
28
|
-
|
|
28
|
+
DEFAULT_CONDITION_CALM_WEIGHT,
|
|
29
29
|
WIND10M_VALUE,
|
|
30
30
|
WIND10M_RANGE,
|
|
31
31
|
HOME_LATITUDE,
|
|
@@ -61,7 +61,7 @@ class AstroWeather:
|
|
|
61
61
|
cloudcover_weight=DEFAULT_CONDITION_CLOUDCOVER_WEIGHT,
|
|
62
62
|
seeing_weight=DEFAULT_CONDITION_SEEING_WEIGHT,
|
|
63
63
|
transparency_weight=DEFAULT_CONDITION_TRANSPARENCY_WEIGHT,
|
|
64
|
-
|
|
64
|
+
calm_weight=DEFAULT_CONDITION_CALM_WEIGHT,
|
|
65
65
|
uptonight_path="/conf/www",
|
|
66
66
|
test_datetime=None,
|
|
67
67
|
):
|
|
@@ -81,7 +81,7 @@ class AstroWeather:
|
|
|
81
81
|
self._cloudcover_weight = cloudcover_weight
|
|
82
82
|
self._seeing_weight = seeing_weight
|
|
83
83
|
self._transparency_weight = transparency_weight
|
|
84
|
-
self.
|
|
84
|
+
self._calm_weight = calm_weight
|
|
85
85
|
self._uptonight_path = uptonight_path
|
|
86
86
|
self._test_datetime = test_datetime
|
|
87
87
|
|
|
@@ -436,7 +436,7 @@ class AstroWeather:
|
|
|
436
436
|
start_indexes.append(idx)
|
|
437
437
|
|
|
438
438
|
forecast_data_len = len(self._forecast_data)
|
|
439
|
-
for day in range(0,
|
|
439
|
+
for day in range(0, len(start_indexes)):
|
|
440
440
|
start_forecast_hour = 0
|
|
441
441
|
start_weather = ""
|
|
442
442
|
interval_points = []
|
|
@@ -525,22 +525,22 @@ class AstroWeather:
|
|
|
525
525
|
self._cloudcover_weight * cloudcover
|
|
526
526
|
+ self._seeing_weight * seeing
|
|
527
527
|
+ self._transparency_weight * transparency
|
|
528
|
-
+ self.
|
|
528
|
+
+ self._calm_weight * wind_speed_value
|
|
529
529
|
- self._cloudcover_weight
|
|
530
530
|
- self._seeing_weight
|
|
531
531
|
- self._transparency_weight
|
|
532
|
-
- self.
|
|
532
|
+
- self._calm_weight
|
|
533
533
|
)
|
|
534
534
|
* 100
|
|
535
535
|
/ (
|
|
536
536
|
self._cloudcover_weight * 9
|
|
537
537
|
+ self._seeing_weight * 8
|
|
538
538
|
+ self._transparency_weight * 8
|
|
539
|
-
+ self.
|
|
539
|
+
+ self._calm_weight * 8
|
|
540
540
|
- self._cloudcover_weight
|
|
541
541
|
- self._seeing_weight
|
|
542
542
|
- self._transparency_weight
|
|
543
|
-
- self.
|
|
543
|
+
- self._calm_weight
|
|
544
544
|
)
|
|
545
545
|
)
|
|
546
546
|
# _LOGGER.debug(
|
|
@@ -12,7 +12,7 @@ DEFAULT_TIMEZONE = "Etc/UTC"
|
|
|
12
12
|
DEFAULT_CONDITION_CLOUDCOVER_WEIGHT = 3
|
|
13
13
|
DEFAULT_CONDITION_SEEING_WEIGHT = 2
|
|
14
14
|
DEFAULT_CONDITION_TRANSPARENCY_WEIGHT = 1
|
|
15
|
-
|
|
15
|
+
DEFAULT_CONDITION_CALM_WEIGHT = 2
|
|
16
16
|
|
|
17
17
|
CIVIL_TWILIGHT = 0
|
|
18
18
|
CIVIL_DUSK_DAWN = -6
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/dataclasses.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/helper_functions.py
RENAMED
|
File without changes
|
{pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/requires.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|