Skip to main content

Meteoserver

A Python module do obtain and read Dutch weather data from Meteoserver.nl. The code is being developped by Marc van der Sluys of the department of Sustainable energy of the HAN University of Applied Sciences in Arnhem, the Netherlands.

Installation

This package can be installed using pip install meteoserver. This should automatically install the dependency packages pandas, json and requests, if they haven't been installed already. If you are installing by hand, ensure that these packages are installed as well.

You will need to obtain a (free) account and API key at Meteoserver.nl to download data from the Meteoserver API.

Example use

"""Example Python script using the Meteoserver module."""

import meteoserver as ms

myKey = 'a123456789'    # My Meteoserver API key - put your OWN key here!
myLocation = 'De Bilt'  # My location

# Read a Meteoserver JSON file from disc:
# current, forecast = ms.read_json_file_zon('ZonActueel.json')

# Get Meteoserver Sun data from the server for the given location (and key):
current, forecast = ms.read_json_url_zon(myKey, myLocation)

# Print the current-weather and forecast dataframes:
print("\nCurrent Sun/weather observation from a nearby station:")
print(current)
print("\nSun/weather forecast for the selected location/region:")
print(forecast)

# Print the forecasts in a nice format:
print("\nSelected Sun/weather forecast variables in full:")
print("%10s  %16s  %4s  %3s   %3s  %3s  %3s  %3s" % ('UNIX time', 'Date/time CET', 'Rad', 'Sun', 'Cld', 'LCl', 'MCl', 'HCl'))
for row in forecast.iterrows():  # Makes (index, Series) pairs out of row
    # idx = row[0]  # Index
    ser = row[1]  # Data series

    # if(float(ser.elev) > 0 and int(ser.sd)==0):
    print("%10i  %16s  %4i  %3i   %3i  %3i  %3i  %3i" %(int(ser.time), ser.cet, int(ser.gr), int(ser.sd), int(ser.tc), int(ser.lc), int(ser.mc), int(ser.hc)))

Meteoserver pages

  • Pypi: Meteoserver Python package
  • GitHub: Meteoserver source code

Author and licence

References

  • Data, API key and API documentation can be obtained from Meteoserver.nl

Metadata

Release files for meteoserver 0.0.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 meteoserver 0.0.1
File Size Uploaded Provenance Actions
meteoserver-0.0.1.tar.gz 4.2 kB Without provenance Details for meteoserver-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 21.3 kB

Release files / meteoserver-0.0.1.tar.gz

Download URL meteoserver-0.0.1.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1c1d8c0d0633741461d4a59a1d5a2c901c3ad34a13ab1fb068103e03b7c1207b
BLAKE2b-256 checksum
How to use checksums
c3c4dd1dc4428bd2c37f4ff552f7d64446159325dd67e4a5980a69b50caee63e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.10

Release files / meteoserver-0.0.1-py3-none-any.whl

Download URL meteoserver-0.0.1-py3-none-any.whl
Size 17.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1cce849415e53bff15aa9e8217403b2ea7414a02176c7c77329c00ec9ebe186e
BLAKE2b-256 checksum
How to use checksums
b6e039b2e4171e31581d0e09064218b8468924ef58b20e510632128fb92167f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.10

Security for meteoserver 0.0.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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