Skip to main content

Meteoserver

A Python module to 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 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 meteo

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

# Weather forecast #################################################################################

# Print some help:
meteo.print_help_uurverwachting()


# Read weather-forecast data from file:
# data = meteo.read_json_file_uurverwachting('UurVerwachting1.json')  # Option 1: HARMONIE/HiRLAM (48 (42?) hours)
# data = meteo.read_json_file_uurverwachting('UurVerwachting2.json')  # Option 2: GFS (4/10 days)

# Get weather-forecast data from server:
# data = meteo.read_json_url_uurverwachting(myKey, myLocation, model='HARMONIE')  # Option 1: HARMONIE/HiRLAM
data = meteo.read_json_url_uurverwachting(myKey, myLocation)  # Option 2 (default): GFS

# pd.set_option('display.max_rows', None)  # Print all rows of a Pandas dataframe
print(data)


# Sun forecast #####################################################################################

# Print some help:
meteo.print_help_zonactueel()

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

# Get Meteoserver Sun data from the server for the given location (and key):
current, forecast = meteo.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)

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

Release files for meteoserver 0.0.4

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.4
File Size Uploaded
meteoserver-0.0.4.tar.gz 6.3 kB Details

Built distribution (wheel)

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

Total release size: 27.4 kB

Release files / meteoserver-0.0.4.tar.gz

Download URL meteoserver-0.0.4.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ce27ecb3942768d1c99b33908b9401da3754b29d31e27186ea45de6fefdcfef
BLAKE2b-256 checksum
How to use checksums
75320df36ece6b624464d3120a4939b8e2e49f4c017bd6ebfc65b00570ee7fa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.6.10

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

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

Release history Release notifications | RSS feed

0.0.19

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

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