You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* backport from master branch
* typo
* Add disclaimer about newer API keys getting Authorization errors back when calling OWM legacy endpoints
* Add timezone to all datetime objects and fix ISO format of time zone offset.
* switched place
* minor fixes
* more tests for timestamps offset awareness. update docs
* unused import
* Documentation fixes (#323)
* Fix documentation for accepted values for Weather.wind unit parameter
* Add missing single quotation marks in documentation for Weather methods
* Update reference link for OWM weather codes and icons
* Add One Call functionaly: (1) exclude parts and (2) set desired units
* Adding contributors from latest PRs
* fixes#324
* Add an FAQ documentation section to help people fixing common issues on PyOWM (which recently occur as repeated GitHub issues)
* added documentation to the code recipies; included unit test result
* adding results of tox unit tests and integration tests
* Update tox_integration_20200807.txt
* Update and fix errors
* Adding Ankur to contributors
* Delete tox_20200807.txt
* Delete tox_integration_20200807.txt
* more FAQs
* Added size argument weatherapi25.weather.weather_icon_url (#337)
* Added size argument to weatherapi25.weather.weather_icon_url()
* Fixed unit tests for new OWM icons
* Fixed previous pushed unit test
* Add Wesley-Vos
* Exposed list of OWM supported languages
* Removed dependency version pinning, this should fix#334
* forgot
* This should address #332
* Documented workaround to install from the development branch, as stated in #341 (comment) and #318
* update docs (fixed typos)
* documentation improvements
* version dump
* fixed test
Co-authored-by: Miroslav Šedivý <[email protected]>
Co-authored-by: Harmon <[email protected]>
Co-authored-by: jwmelvin <[email protected]>
Co-authored-by: Wesley Vos <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+29-22Lines changed: 29 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ PyOWM runs on Python 3.7+
22
22
23
23
**Former Dark Sky API users**: you can can use PyOWM to get [OpenWeatherMap's OneCall API](https://openweathermap.org/api/one-call-api) data as an easy replacement to Dark Sky
24
24
25
-
### What kind of data do I get with PyOWM ?
25
+
### What kind of data can I get with PyOWM ?
26
26
With PyOWM you can integrate into your code any of the following OpenWeatherMap web APIs:
27
27
28
28
-**Weather API v2.5** + **OneCall API**, providing current weather data, weather forecasts, weather history
@@ -47,38 +47,39 @@ With a free OWM API Key:
47
47
48
48
```python
49
49
from pyowm importOWM
50
+
from pyowm.utils import config
51
+
from pyowm.utils import timestamps
50
52
51
-
owm = OWM('your-API-key') # You MUST provide a valid API key
53
+
# ---------- FREE API KEY examples ---------------------
52
54
53
-
# Search for current weather in London (Great Britain)
55
+
owm = OWM('your free OWM API key')
54
56
mgr = owm.weather_manager()
57
+
58
+
59
+
# Search for current weather in London (Great Britain) and get details
0 commit comments