Python bindings to multiple weather station vendor APIs
Project description
Multi Weather API
Consistent Python bindings for select commercial weather station APIs, such as Zentra Cloud REST API v3, created for MSU EnviroWeather Project.
Background
This is inspired by python bindings for v1 of the Zentra API from the Montana Climate office : MSU Agricultural Weather Office
The EnviroWeather system from the MSU Agricultural Weather Office will interface with weather stations (select list of vendors) deployed and owned privately. Since each vendor has a differrent REST/Web API to access station's weather data, this package aims to provide a consistent interface to all of those stations in order to make it easy for incoporating them into a data pipeline.
Installation
The Multi-Weather API is currently available on PyPI. Install using pip
:
pip install multiweatherapi
Usage
>>> from multiweatherapi import multiweatherapi
>>> param = {'sn': 'STATION_ID',
... 'apikey': 'API_KEY',
... 'apisec': 'API_SECRET'}
>>> resp = multiweatherapi.get_reading('davis', **param)
>>> resp.resp_raw # raw JSON response of the reading
>>> resp.resp_parsed # parsed JSON response into list of dict for EnviroWeather project
Refer to the respective link below for parameter and authentication requirements of weather station vendor APIs
Supported Python Versions
Python 3.6 and higher are supported.
Requirements
Outputs
To be determined
License
Released under the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for multiweatherapi-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 043c2fd3668897ab3c37c1cc116edcd035d9dd6cb9da3da6c6c25dad1d44d9cd |
|
MD5 | c8c9c6f1098e07d020fbf2a6beff1a66 |
|
BLAKE2b-256 | ee65ee19caafedba86338c3c1f013f7e5f9a4f7feeaa2b90cc4639760256da10 |