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.
Files changed (16) hide show
  1. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/PKG-INFO +1 -1
  2. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/client.py +8 -8
  3. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/const.py +1 -1
  4. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/PKG-INFO +1 -1
  5. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/setup.py +1 -1
  6. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/LICENSE +0 -0
  7. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/README.md +0 -0
  8. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/__init__.py +0 -0
  9. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/dataclasses.py +0 -0
  10. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/errors.py +0 -0
  11. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio/helper_functions.py +0 -0
  12. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/SOURCES.txt +0 -0
  13. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/dependency_links.txt +0 -0
  14. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/requires.txt +0 -0
  15. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/pyastroweatherio.egg-info/top_level.txt +0 -0
  16. {pyastroweatherio-0.43.1.dev2 → pyastroweatherio-0.43.1.dev4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyastroweatherio
3
- Version: 0.43.1.dev2
3
+ Version: 0.43.1.dev4
4
4
  Summary: Python Wrapper for 7Timer and Met.no REST API
5
5
  Home-page: https://github.com/mawinkler/pyastroweatherio
6
6
  Author: Markus Winkler
@@ -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
- DEFAULT_CONDITION_WIND_WEIGHT,
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
- wind_weight=DEFAULT_CONDITION_WIND_WEIGHT,
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._wind_weight = wind_weight
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, 2):
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._wind_weight * wind_speed_value
528
+ + self._calm_weight * wind_speed_value
529
529
  - self._cloudcover_weight
530
530
  - self._seeing_weight
531
531
  - self._transparency_weight
532
- - self._wind_weight
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._wind_weight * 8
539
+ + self._calm_weight * 8
540
540
  - self._cloudcover_weight
541
541
  - self._seeing_weight
542
542
  - self._transparency_weight
543
- - self._wind_weight
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
- DEFAULT_CONDITION_WIND_WEIGHT = 2
15
+ DEFAULT_CONDITION_CALM_WEIGHT = 2
16
16
 
17
17
  CIVIL_TWILIGHT = 0
18
18
  CIVIL_DUSK_DAWN = -6
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyastroweatherio
3
- Version: 0.43.1.dev2
3
+ Version: 0.43.1.dev4
4
4
  Summary: Python Wrapper for 7Timer and Met.no REST API
5
5
  Home-page: https://github.com/mawinkler/pyastroweatherio
6
6
  Author: Markus Winkler
@@ -3,7 +3,7 @@ from setuptools import setup
3
3
  setup(
4
4
  name="pyastroweatherio",
5
5
  packages=["pyastroweatherio"],
6
- version="0.43.1.dev2",
6
+ version="0.43.1.dev4",
7
7
  license="MIT",
8
8
  description="Python Wrapper for 7Timer and Met.no REST API",
9
9
  long_description=" ".join(