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.
@@ -0,0 +1,14 @@
1
+ name: Validate with hassfest
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: "0 0 * * *"
8
+
9
+ jobs:
10
+ validate:
11
+ runs-on: "ubuntu-latest"
12
+ steps:
13
+ - uses: "actions/checkout@v3"
14
+ - uses: home-assistant/actions/hassfest@master
@@ -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
+ ![Meteocat Banner](images/banner.png)
3
3
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4
4
  [![Python version compatibility](https://img.shields.io/pypi/pyversions/meteocat)](https://pypi.org/project/meteocat)
5
5
  [![pipeline status](https://gitlab.com/figorr/meteocat/badges/master/pipeline.svg)](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
+ ![Meteocat custom component login dialog](images/login.png)
40
+
41
+ After submitting your API Key you will either be prompted to pick a town from the list as shown below.
42
+
43
+ ![Meteocat custom component town picker dialog](images/pick_town.png)
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
+ ![Meteocat component station picker dialog](images/pick_station.png)
48
+
49
+ Then you will be asked to pick an area for the device.
50
+
51
+ ![Area](images/pick_area.png)
52
+
53
+ If the device is added successfully it should appear as shown.
54
+
55
+ ![Device](images/devices.png)
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
+ ![Dynamic Sensors](images/dynamic_sensors.png)
60
+
61
+ ![Diagnostic Sensors](images/diagnostic_sensors.png)
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
+ ![Entity more info settings dialog](images/change_units.png)
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.1.50"
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://gitlab.com/figorr/meteocat",
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.1.50"
12
+ "version": "1.0.0"
12
13
  }
@@ -1,2 +1,2 @@
1
1
  # version.py
2
- __version__ = "0.1.50"
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
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.50",
3
+ "version": "0.1.51",
4
4
  "description": "[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\r [![Python version compatibility](https://img.shields.io/pypi/pyversions/meteocat)](https://pypi.org/project/meteocat)\r [![pipeline status](https://gitlab.com/figorr/meteocat/badges/master/pipeline.svg)](https://gitlab.com/figorr/meteocat/commits/master)",
5
5
  "main": "index.js",
6
6
  "directories": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "meteocat"
3
- version = "0.1.50"
3
+ version = "1.0.0"
4
4
  description = "Script para obtener datos meteorológicos de la API de Meteocat"
5
5
  authors = ["figorr <jdcuartero@yahoo.es>"]
6
6
  license = "Apache-2.0"