Python library for get info from MeteoGalicia web service. MeteoGalicia is the meteorological agency for Galicia, Spain
Project description
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.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file meteogalicia_api-0.1.2.tar.gz.
File metadata
- Download URL: meteogalicia_api-0.1.2.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1569f30e6ba4b5a3a12d34bdf8783d14f73f05e9c9b4f893f53a50701b942322
|
|
| MD5 |
3b048b39d6d60bcf75e6e02c8eac4e03
|
|
| BLAKE2b-256 |
e3cc20b6193ed6b9ed8cc7a2c133e9114f4151e8758b95910000b680a2da7447
|