Skip to main content

Small Python module for Weather Underground PWS APIs

Project description

Weather Underground PWS Python API

A small Python module for Weather Underground PWS APIs.

Installation

$ pip3 install wunderground_pws

Example usage

from datetime import date
from pprint import pprint

from wunderground_pws import WUndergroundAPI, units

wu = WUndergroundAPI(
    api_key='my api key',
    default_station_id='KMAHANOV10',
    units=units.ENGLISH_UNITS,
)
print('Current status of my weather station:')
pprint(wu.current()['observations'][0])
print('Summary of last 7 days:')
pprint(wu.summary())
print('Detailed hourly history for the last 7 days:')
pprint(wu.hourly())
print('History for 4/20/2019:')
pprint(wu.history(date(day=20, month=4, year=2019)))

Building docs

$ pip3 install -r requirements-docs.txt
$ cd docs/
$ make html

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for wunderground-pws, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size wunderground_pws-0.1-py3.7.egg (7.4 kB) File type Egg Python version 3.7 Upload date Hashes View hashes
Filename, size wunderground_pws-0.1.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page