Skip to main content

PyMeteoclimatic

A Python wrapper around the Meteoclimatic service.

Coverage Status Build & Test Publish to Pypi

PyMeteoclimatic is a client Python wrapper library for Meteoclimatic. Meteoclimatic is a large network of non-professional automatic real-time weather stations and an important directory of weather resources. The geographical scope of Meteoclimatic comprises the Iberian Peninsula, the two Spanish archipelagos (the Balearic Islands and the Canary Islands), southern France and Africa near the Strait of Gibraltar.

PyMeteoclimatic relies on the Meteoclimatic RSS feed. More specifically, PyMeteoclimatic leverages the coded, normalized data blocks included as HTML comments in the feeds between the [[<BEGIN:identificador:DATA>]] and [[<END:identificador:DATA>]] tags to obtain station weather information.

What data can I get?

With PyMeteoclimatic you can obtain weather information directly from Meteoclimatic stations identified by their code. You can find out the station code from the station profile page in the Meteoclimatic site.

When obtaining the weather information from a station, you will get a meteoclimatic.Observation object, which represents the weather which is currently being observed from a certain station and contains the following fields.

Field Type Description
reception_time datetime.datetime Timestamp telling when the weather obervation has been received from the station
station meteoclimatic.Station The Station relative to this observation
weather meteoclimatic.Weather The Weather relative to this observation

A meteoclimatic.Station object contains the following data.

Field Type Description
name str Name of the station
code str Meteoclimatic code of the station (e.g. "ESCAT4300000043206B")
url str URL of the Meteoclimatic station page

A meteoclimatic.Weather object contains the following data. Note that not all stations have the same physical sensors and capabilities (e.g. pluviometer, barometer, ...), therefore, some of these values may be None for some stations. Check the Meteoclimatic station page for more information on your preferred station capabilities.

Field Type Description
reference_time datetime.datetime Timestamp of weather measurement
condition meteoclimatic.Condition or str Single-word weather condition (e.g. "sun", "suncloud", "rain", ...). If it's a recognized condition, it will be mapped to a value of the meteoclimatic.Condition enumerate, otherwise it will be stored as a string
temp_current float Current temperature in Celsius
temp_max float Maximum temperature in Celsius for the past 24 hours
temp_min float Minimum temperature in Celsius for the past 24 hours
humidity_current float Current humidity in percentage points
humidity_max float Maximum humidity in percentage points for the past 24 hours
humidity_min float Minimum humidity in percentage points for the past 24 hours
pressure_current float Current atmospheric pressure in hPa units
pressure_max float Maximum atmospheric pressure in hPa units for the past 24 hours
pressure_min float Minimum atmospheric pressure in hPa units for the past 24 hours
wind_current float Current wind speed in km/h units
wind_max float Maximum wind speed in km/h units for the past 24 hours
wind_bearing float Wind bearing in degree units
rain float Precipitation in mm units for the past 24 hours

Installation

Install with pip for your ease.

$ pip install pymeteoclimatic

Example

from meteoclimatic import MeteoclimaticClient

client = MeteoclimaticClient()
observation = client.weather_at_station("ESCAT4300000043206B")

print("Timestamp")
print("~~~~~~~~~")
print(observation.reception_time)
print()
print("Station")
print("~~~~~~~")
print(observation.station)
print()
print("Weather")
print("~~~~~~~")
print(observation.weather)

Output:

Timestamp
~~~~~~~~~
2020-06-09 13:45:55+00:00

Station
~~~~~~~
<class 'meteoclimatic.station.Station'>({'name': 'Reus - Nord (Tarragona)', 'code': 'ESCAT4300000043206B', 'url': 'http://www.meteoclimatic.net/perfil/ESCAT4300000043206B'})

Weather
~~~~~~~
<class 'meteoclimatic.weather.Weather'>({'reference_time': datetime.datetime(2020, 6, 9, 13, 45, 55, tzinfo=datetime.timezone.utc), 'condition': <Condition.sun: 'sun'>, 'temp_current': 24.0, 'temp_max': 24.2, 'temp_min': 13.7, 'humidity_current': 45.0, 'humidity_max': 80.0, 'humidity_min': 44.0, 'pressure_current': 1013.5, 'pressure_max': 1015.3, 'pressure_min': 1013.5, 'wind_current': 13.0, 'wind_max': 31.0, 'wind_bearing': 232.0, 'rain': 0.2})

Contributing

Please feel free to submit issues or fork the repository and send pull requests to update the library and fix bugs, implement support for new sentence types, refactor code, etc.

License

MIT License

Metadata

Release files for pymeteoclimatic 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pymeteoclimatic 0.1.1
File Size Uploaded
pymeteoclimatic-0.1.1.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymeteoclimatic 0.1.1
File Interpreter ABI Platform
pymeteoclimatic-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 22.5 kB

Release files / pymeteoclimatic-0.1.1.tar.gz

Download URL pymeteoclimatic-0.1.1.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e51ed88348587d7e9a8b4bf3137bcf1a7a65cf09c3d1ad9f96f635adeddcb964
BLAKE2b-256 checksum
How to use checksums
21b9b3f54f2bb487c2526f7b31b9460b3810b9d11bb31d45d70a5555087a933f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 1, 2026.

Transparency log

Release files / pymeteoclimatic-0.1.1-py3-none-any.whl

Download URL pymeteoclimatic-0.1.1-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2594be83fd9667f17bdbc700e40111f32af1a5a595fd6b46d4afbde898b41af
BLAKE2b-256 checksum
How to use checksums
888d2cd796e56160c00d1917c18c1da4a4744df63473f4355725f1203b292758
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 1, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page