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
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
Example:
from meteogalicia_api.interface import MeteoGalicia
meteogalicia = MeteoGalicia()
meteogalicia.get_forecast_data("32054")
meteogalicia.get_observation_data("15023")
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://www.meteogalicia.gal/datosred/infoweb/meteo/docs/rss/JSON_Pred_Concello_es.pdf 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