meteocat 0.1.50 → 0.1.51
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.
- package/.github/workflows/hassfest.yaml +14 -0
- package/.github/workflows/validate.yaml +17 -0
- package/CHANGELOG.md +7 -0
- package/README.md +52 -2
- package/custom_components/meteocat/__init__.py +1 -1
- package/custom_components/meteocat/manifest.json +3 -2
- package/custom_components/meteocat/version.py +1 -1
- package/filetree.txt +13 -0
- package/images/banner.png +0 -0
- package/images/change_units.png +0 -0
- package/images/devices.png +0 -0
- package/images/diagnostic_sensors.png +0 -0
- package/images/dynamic_sensors.png +0 -0
- package/images/login.png +0 -0
- package/images/pick_area.png +0 -0
- package/images/pick_station.png +0 -0
- package/images/pick_town.png +0 -0
- package/info.md +11 -0
- package/package.json +1 -1
- package/pyproject.toml +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
name: Validate
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
schedule:
|
|
7
|
+
- cron: "0 0 * * *"
|
|
8
|
+
workflow_dispatch:
|
|
9
|
+
|
|
10
|
+
jobs:
|
|
11
|
+
validate-hacs:
|
|
12
|
+
runs-on: "ubuntu-latest"
|
|
13
|
+
steps:
|
|
14
|
+
- name: HACS validation
|
|
15
|
+
uses: "hacs/action@main"
|
|
16
|
+
with:
|
|
17
|
+
category: "integration"
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [0.1.51](https://github.com/figorr/meteocat/compare/v0.1.50...v0.1.51) (2025-01-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* 1.0.0 ([a1ec6cf](https://github.com/figorr/meteocat/commit/a1ec6cf411dcb208eeb153b00b73bf9f766d7f23))
|
|
7
|
+
|
|
1
8
|
## [0.1.50](https://github.com/figorr/meteocat/compare/v0.1.49...v0.1.50) (2025-01-04)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
# Meteocat for Home Assistant
|
|
2
|
-
|
|
2
|
+

|
|
3
3
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
4
4
|
[](https://pypi.org/project/meteocat)
|
|
5
5
|
[](https://gitlab.com/figorr/meteocat/commits/master)
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
This is a project to obtain meteorological data from the Meteocat API.
|
|
8
|
+
This is a project to obtain meteorological data from the Meteocat API inside the Home Assistant environment.
|
|
9
|
+
|
|
10
|
+
All the data is property of Meteocat ("Servei Meteorològic de Catalunya"). This project is only a tool to offer an easy and secure access to the meteorological data provided by the "Servei Meteorològic de Catalunya" API, so you can use the data for your personal use.
|
|
11
|
+
|
|
12
|
+
Commercial use of this project or the data obtained from the API is not allowed without prior permission from the author, in case of the project, or from the "Servei Meteorològic de Catalunya" in the case of the data provided by the API.
|
|
9
13
|
|
|
10
14
|
**NOTE:** Meteocat API requires to use an API_KEY, you should ask to (https://apidocs.meteocat.gencat.cat/documentacio/acces-ciutada-i-administracio/)
|
|
11
15
|
|
|
@@ -16,6 +20,52 @@ This is a personal project.
|
|
|
16
20
|
Authors:
|
|
17
21
|
- Figorr
|
|
18
22
|
|
|
23
|
+
## Installation
|
|
24
|
+
|
|
25
|
+
#### HACS
|
|
26
|
+
1. Go to `HACS`
|
|
27
|
+
1. Search for `Meteocat` and add it to HACS
|
|
28
|
+
1. Restart Home Assistant
|
|
29
|
+
1. Go to `Settings > Devices & Services`
|
|
30
|
+
1. Click `+ Add Integration`
|
|
31
|
+
1. Search for `Meteocat` and follow the configuration instructions
|
|
32
|
+
|
|
33
|
+
#### Manually
|
|
34
|
+
Copy the `custom_components/meteocat` folder into the config folder.
|
|
35
|
+
|
|
36
|
+
## Configuration
|
|
37
|
+
To add a Meteocat Device, go to `Configuration > Integrations` in the UI. Then click the `+` button and from the list of integrations select Meteocat. You will then be prompted to enter your API Key.
|
|
38
|
+
|
|
39
|
+

|
|
40
|
+
|
|
41
|
+
After submitting your API Key you will either be prompted to pick a town from the list as shown below.
|
|
42
|
+
|
|
43
|
+

|
|
44
|
+
|
|
45
|
+
Once you pick the town you will be prompted to pick a station from the list. These are the nearest stations to the picked town.
|
|
46
|
+
|
|
47
|
+

|
|
48
|
+
|
|
49
|
+
Then you will be asked to pick an area for the device.
|
|
50
|
+
|
|
51
|
+

|
|
52
|
+
|
|
53
|
+
If the device is added successfully it should appear as shown.
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
This device will then have the entities shown below. The sensors are translated to your system language (according to tranlation folder: en, es, ca). Or English by default.
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
## Changing Units
|
|
64
|
+
|
|
65
|
+
To change units select one of the entities and open the more info dialog and click the cog in the top right. This will bring up the settings for the entity. Then select `Unit of Measurement`, and a dropdown will appear where you can select the units you want.
|
|
66
|
+
|
|
67
|
+

|
|
68
|
+
|
|
19
69
|
# Contributing
|
|
20
70
|
|
|
21
71
|
1. [Check for open features/bugs](https://gitlab.com/figorr/meteocat/issues)
|
|
@@ -25,7 +25,7 @@ from .const import DOMAIN, PLATFORMS
|
|
|
25
25
|
_LOGGER = logging.getLogger(__name__)
|
|
26
26
|
|
|
27
27
|
# Versión
|
|
28
|
-
__version__ = "0.
|
|
28
|
+
__version__ = "1.0.0"
|
|
29
29
|
|
|
30
30
|
def safe_remove(path: Path, is_folder: bool = False):
|
|
31
31
|
"""Elimina de forma segura un archivo o carpeta si existe."""
|
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
"config_flow": true,
|
|
6
6
|
"dependencies": ["persistent_notification", "http"],
|
|
7
7
|
"iot_class": "cloud_polling",
|
|
8
|
-
"documentation": "https://
|
|
8
|
+
"documentation": "https://github.com/figorr/meteocat",
|
|
9
|
+
"issue_tracker": "https://github.com/figorr/meteocat/issues",
|
|
9
10
|
"loggers": ["meteocatpy"],
|
|
10
11
|
"requirements": ["meteocatpy==0.0.17", "packaging>=20.3", "wrapt>=1.14.0"],
|
|
11
|
-
"version": "0.
|
|
12
|
+
"version": "1.0.0"
|
|
12
13
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
# version.py
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "1.0.0"
|
package/filetree.txt
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
└── .github/
|
|
2
2
|
└── workflows/
|
|
3
|
+
├── hassfest.yaml
|
|
3
4
|
├── release.yml
|
|
5
|
+
├── validate.yaml
|
|
4
6
|
├── .gitignore
|
|
5
7
|
├── .gitlab-ci.yml
|
|
6
8
|
├── .pre-commit-config.yaml
|
|
@@ -32,6 +34,17 @@
|
|
|
32
34
|
├── filetree.py
|
|
33
35
|
├── filetree.txt
|
|
34
36
|
├── hacs.json
|
|
37
|
+
└── images/
|
|
38
|
+
├── banner.png
|
|
39
|
+
├── change_units.png
|
|
40
|
+
├── devices.png
|
|
41
|
+
├── diagnostic_sensors.png
|
|
42
|
+
├── dynamic_sensors.png
|
|
43
|
+
├── login.png
|
|
44
|
+
├── pick_area.png
|
|
45
|
+
├── pick_station.png
|
|
46
|
+
├── pick_town.png
|
|
47
|
+
├── info.md
|
|
35
48
|
├── package-lock.json
|
|
36
49
|
├── package.json
|
|
37
50
|
├── poetry.lock
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/images/login.png
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/info.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Meteocat
|
|
2
|
+
|
|
3
|
+
Meteocat is a custom integration for Home Assistant that provides meteorological data from the Meteocat API (Servei Meteorològic de Catalunya).
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
- Hourly and daily weather forecasts
|
|
7
|
+
- UV Index
|
|
8
|
+
- Dynamic sensors based on selected station
|
|
9
|
+
- Diagnostic sensors for town, station and data
|
|
10
|
+
|
|
11
|
+
For more information, check the [README](https://github.com/figorr/meteocat).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meteocat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
4
4
|
"description": "[](https://opensource.org/licenses/Apache-2.0)\r [](https://pypi.org/project/meteocat)\r [](https://gitlab.com/figorr/meteocat/commits/master)",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|