Description
MeteoGalicia-API implements an interface to the MeteoGalicia Rest web services.
Documentation about MeteoGalicia web service is available at https://www.meteogalicia.gal/web/RSS/rssIndex.action?request_locale=es.
This package has been developed to be used with homeassistant-meteogalicia integration for Home-Assistant
Disclaimer
This software is provided without warranty, and should therefore not be used where it may endanger life, financial stakes, or cause discomfort and inconvenience to others. Is also licensed under the GNU Public Licence version 3
Usage
Example:
from meteogalicia_api.interface import MeteoGalicia
meteogalicia = MeteoGalicia()
meteogalicia.get_forecast_data("32054")
meteogalicia.get_observation_data("15023")
Custom session and timeout:
import requests
from meteogalicia_api.interface import MeteoGalicia
session = requests.Session()
meteogalicia = MeteoGalicia(session=session, timeout=10)
meteogalicia.get_forecast_data("32054")
Town hall or city data methods:
meteogalicia.get_forecast_data("32054")
meteogalicia.get_observation_data("15023")
Parameter id's are available at https://www.meteogalicia.gal/datosred/infoweb/meteo/docs/rss/JSON_Pred_Concello_es.pdf
Station methods:
meteogalicia.get_observation_dailydata_by_station("10144")
meteogalicia.get_observation_last10mindata_by_station("10144")
Parameter station id's are available at https://servizos.meteogalicia.gal/mgrss/observacion/listaEstacionsMeteo.action
Tides methods:
meteogalicia.get_forecast_tide("3")
id availables at: https://www.meteogalicia.gal/datosred/infoweb/meteo/docs/rss/RSS_Mareas_gl.pdf
Errors:
- Methods return
Nonewhen no data is available or the request fails.
Release files for MeteoGalicia-API 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| meteogalicia_api-0.1.2.tar.gz | 18.2 kB | Details |
Release files / meteogalicia_api-0.1.2.tar.gz
| Download URL | meteogalicia_api-0.1.2.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1569f30e6ba4b5a3a12d34bdf8783d14f73f05e9c9b4f893f53a50701b942322
|
|
BLAKE2b-256 checksum How to use checksums |
e3cc20b6193ed6b9ed8cc7a2c133e9114f4151e8758b95910000b680a2da7447
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.9
|