https://github.com/marcobuster/wundergroundpws-api
A small Python module for Weather Underground PWS API
https://github.com/marcobuster/wundergroundpws-api
Last synced: about 1 year ago
JSON representation
A small Python module for Weather Underground PWS API
- Host: GitHub
- URL: https://github.com/marcobuster/wundergroundpws-api
- Owner: MarcoBuster
- License: mit
- Created: 2019-05-19T17:02:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-29T10:39:38.000Z (over 5 years ago)
- Last Synced: 2025-04-21T22:18:29.492Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 15.6 KB
- Stars: 7
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Weather Underground PWS Python API [](https://travis-ci.com/MarcoBuster/WUndergroundPWS-API)
==================================
A small Python module for [Weather Underground PWS](https://www.wunderground.com/weatherstation/hardwareandsoftware.asp)
APIs.
### Installation
$ pip3 install wunderground_pws
### Example usage
```python
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