juham-visualcrossing 0.0.3__tar.gz → 0.1.1__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {juham_visualcrossing-0.0.3/juham_visualcrossing.egg-info → juham_visualcrossing-0.1.1}/PKG-INFO +4 -4
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing/visualcrossing.py +7 -8
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1/juham_visualcrossing.egg-info}/PKG-INFO +4 -4
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing.egg-info/requires.txt +1 -1
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/pyproject.toml +4 -4
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/MANIFEST.in +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/docs/source/CHANGELOG.rst +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/docs/source/CONTRIBUTING.rst +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/docs/source/LICENSE.rst +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/docs/source/README.rst +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing/__init__.py +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing/py.typed +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing.egg-info/SOURCES.txt +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing.egg-info/dependency_links.txt +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing.egg-info/entry_points.txt +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing.egg-info/top_level.txt +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/setup.cfg +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/tests/__init__.py +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/tests/__pycache__/__init__.cpython-312.pyc +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/tests/__pycache__/test_visualcrossing.cpython-312.pyc +0 -0
- {juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/tests/test_visualcrossing.py +0 -0
{juham_visualcrossing-0.0.3/juham_visualcrossing.egg-info → juham_visualcrossing-0.1.1}/PKG-INFO
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: juham_visualcrossing
|
3
|
-
Version: 0.
|
4
|
-
Summary: A Weather forecast plugin extending `
|
3
|
+
Version: 0.1.1
|
4
|
+
Summary: A Weather forecast plugin extending `Juham` applications
|
5
5
|
Author-email: J Meskanen <juham.api@gmail.com>
|
6
6
|
Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
|
7
7
|
License: MIT License
|
@@ -33,14 +33,14 @@ Project-URL: Funding, https://meskanen.com
|
|
33
33
|
Project-URL: Say Thanks!, http://meskanen.com
|
34
34
|
Project-URL: Source, https://meskanen.com
|
35
35
|
Keywords: object-oriented,plugin,framework
|
36
|
-
Classifier: Development Status ::
|
36
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
37
37
|
Classifier: Intended Audience :: Developers
|
38
38
|
Classifier: Topic :: Software Development
|
39
39
|
Classifier: License :: OSI Approved :: MIT License
|
40
40
|
Classifier: Programming Language :: Python :: 3.8
|
41
41
|
Requires-Python: >=3.8
|
42
42
|
Description-Content-Type: text/markdown
|
43
|
-
Requires-Dist: juham>=0.0.
|
43
|
+
Requires-Dist: juham>=0.0.17
|
44
44
|
Requires-Dist: pytz>=2024.1
|
45
45
|
Requires-Dist: importlib-metadata
|
46
46
|
Provides-Extra: dev
|
{juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing/visualcrossing.py
RENAMED
@@ -1,10 +1,9 @@
|
|
1
1
|
from datetime import datetime, timedelta, timezone
|
2
2
|
import json
|
3
|
-
from typing import Any,
|
4
|
-
from typing_extensions import override
|
5
|
-
|
6
|
-
from juham.
|
7
|
-
from juham.web import RCloud, RCloudThread
|
3
|
+
from typing import Any, Optional, cast
|
4
|
+
from typing_extensions import override
|
5
|
+
from masterpiece.mqtt import MqttMsg, Mqtt
|
6
|
+
from juham.core import RCloud, RCloudThread
|
8
7
|
|
9
8
|
|
10
9
|
class VisualCrossingThread(RCloudThread):
|
@@ -18,7 +17,7 @@ class VisualCrossingThread(RCloudThread):
|
|
18
17
|
_location: str = ""
|
19
18
|
_interval: float = 12 * 3600
|
20
19
|
|
21
|
-
def __init__(self, client: Optional[
|
20
|
+
def __init__(self, client: Optional[Mqtt] = None):
|
22
21
|
"""Construct with the given mqtt client. Acquires data from the visual
|
23
22
|
crossing web service and publishes the forecast data to
|
24
23
|
forecast_topic.
|
@@ -27,7 +26,7 @@ class VisualCrossingThread(RCloudThread):
|
|
27
26
|
client (object, optional): MQTT client. Defaults to None.
|
28
27
|
"""
|
29
28
|
super().__init__(client)
|
30
|
-
self.mqtt_client: Optional[
|
29
|
+
self.mqtt_client: Optional[Mqtt] = client
|
31
30
|
|
32
31
|
@override
|
33
32
|
def update_interval(self) -> float:
|
@@ -162,7 +161,7 @@ class VisualCrossing(RCloud):
|
|
162
161
|
# create, initialize and start the asynchronous thread for acquiring forecast
|
163
162
|
|
164
163
|
self.worker = cast(
|
165
|
-
VisualCrossingThread,
|
164
|
+
VisualCrossingThread, self.instantiate(VisualCrossing.workerThreadId)
|
166
165
|
)
|
167
166
|
self.worker.init(
|
168
167
|
self.forecast_topic,
|
{juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1/juham_visualcrossing.egg-info}/PKG-INFO
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: juham_visualcrossing
|
3
|
-
Version: 0.
|
4
|
-
Summary: A Weather forecast plugin extending `
|
3
|
+
Version: 0.1.1
|
4
|
+
Summary: A Weather forecast plugin extending `Juham` applications
|
5
5
|
Author-email: J Meskanen <juham.api@gmail.com>
|
6
6
|
Maintainer-email: "J. Meskanen" <juham.api@gmail.com>
|
7
7
|
License: MIT License
|
@@ -33,14 +33,14 @@ Project-URL: Funding, https://meskanen.com
|
|
33
33
|
Project-URL: Say Thanks!, http://meskanen.com
|
34
34
|
Project-URL: Source, https://meskanen.com
|
35
35
|
Keywords: object-oriented,plugin,framework
|
36
|
-
Classifier: Development Status ::
|
36
|
+
Classifier: Development Status :: 2 - Pre-Alpha
|
37
37
|
Classifier: Intended Audience :: Developers
|
38
38
|
Classifier: Topic :: Software Development
|
39
39
|
Classifier: License :: OSI Approved :: MIT License
|
40
40
|
Classifier: Programming Language :: Python :: 3.8
|
41
41
|
Requires-Python: >=3.8
|
42
42
|
Description-Content-Type: text/markdown
|
43
|
-
Requires-Dist: juham>=0.0.
|
43
|
+
Requires-Dist: juham>=0.0.17
|
44
44
|
Requires-Dist: pytz>=2024.1
|
45
45
|
Requires-Dist: importlib-metadata
|
46
46
|
Provides-Extra: dev
|
@@ -6,8 +6,8 @@ build-backend = "setuptools.build_meta"
|
|
6
6
|
|
7
7
|
[project]
|
8
8
|
name = "juham_visualcrossing"
|
9
|
-
version = "0.
|
10
|
-
description = "A Weather forecast plugin extending `
|
9
|
+
version = "0.1.1"
|
10
|
+
description = "A Weather forecast plugin extending `Juham` applications"
|
11
11
|
readme = {file = "docs/source/README.rst", content-type = "text/markdown"}
|
12
12
|
requires-python = ">=3.8"
|
13
13
|
license = {file = "docs/source/LICENSE.rst", content-type = "text/markdown"}
|
@@ -20,7 +20,7 @@ maintainers = [
|
|
20
20
|
]
|
21
21
|
|
22
22
|
classifiers = [
|
23
|
-
"Development Status ::
|
23
|
+
"Development Status :: 2 - Pre-Alpha",
|
24
24
|
"Intended Audience :: Developers",
|
25
25
|
"Topic :: Software Development",
|
26
26
|
"License :: OSI Approved :: MIT License",
|
@@ -28,7 +28,7 @@ classifiers = [
|
|
28
28
|
]
|
29
29
|
|
30
30
|
dependencies = [
|
31
|
-
"juham >= 0.0.
|
31
|
+
"juham >= 0.0.17",
|
32
32
|
"pytz >= 2024.1",
|
33
33
|
"importlib-metadata"
|
34
34
|
]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/juham_visualcrossing.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{juham_visualcrossing-0.0.3 → juham_visualcrossing-0.1.1}/tests/__pycache__/__init__.cpython-312.pyc
RENAMED
File without changes
|
File without changes
|
File without changes
|