https://github.com/marcus-luck/wreader
https://github.com/marcus-luck/wreader
darksky darksky-api weather weather-information
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/marcus-luck/wreader
- Owner: marcus-luck
- License: mit
- Created: 2017-11-22T08:27:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-06-01T01:51:56.000Z (about 6 years ago)
- Last Synced: 2024-12-26T09:30:56.863Z (over 1 year ago)
- Topics: darksky, darksky-api, weather, weather-information
- Language: Python
- Size: 27.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wreader
This project intend to give a simple package to receive hourly data for a given coordinate, returning a list of dictionaries with 24h weather data from DarkSky API.
### Information
The package returns a list of dictionaries with the following keys:
*.'time'
*.'summary'
*.'icon'
*.'precipIntensity'
*.'precipProbability'
*.'temperature'
*.'apparentTemperature'
*.'dewPoint'
*.'humidity'
*.'pressure'
*.'windSpeed'
*.'windGust'
*.'windBearing'
*.'cloudCover'
*.'uvIndex'
*.'visibility'
*.'ozone'
As of v 0.4 the wunderground API is replaced with DarkSky. Wunderground is deprecating their API and it is as of december 2018 no longer available.
### Using
Import the package
```
from wreader import WReader
```
Use api key from wunderground.
```
wr = WReader('api key')
```
input dictinary of {locations: coordinates}. Output list of dictionaries.
```
locations = {"Waikiki": "21.255220,-157.806872", "Sunset Beach": "21.255220,-157.806872"}
output = wr.get_all_locations_data(locations)
```
### Changelog
v0.5
* API changes,
* the get_location_data returns a list of dictionaries.
* change test framework from nose to pytest
v0.4
replaced wunderground API with Darksky
### License
This project is licensed under the MIT License