Skip to content

Commit 98be51d

Browse files
committed
oh my..
1 parent bdc860c commit 98be51d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ print(w) # <Weather - reference time=2013-12-18 09:20, status=C
5858

5959
# Weather details
6060
w.wind() # {'speed': 4.6, 'deg': 330}
61-
w.humidity() # 87
61+
w.humidity # 87
6262
w.temperature('celsius') # {'temp_max': 10.5, 'temp': 9.7, 'temp_min': 9.0}
6363

6464
# Search current weather observations in the surroundings of
@@ -77,7 +77,7 @@ owm = OWM('your-paid-api-key', config_dict)
7777

7878
# Will it be clear tomorrow at this time in Milan (Italy) ?
7979
mgr = owm.weather_manager()
80-
forecast = mgr.daily_forecast("Milan,IT")
80+
forecast = mgr.forecast_at_place('Milan,IT', 'daily')
8181
forecast.will_be_clear_at(timestamps.tomorrow()) # The sun always shines on Italy, right? ;)
8282
```
8383

tests/test_readme.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# Weather details
1616
w.wind() # {'speed': 4.6, 'deg': 330}
17-
w.humidity() # 87
17+
w.humidity # 87
1818
w.temperature('celsius') # {'temp_max': 10.5, 'temp': 9.7, 'temp_min': 9.0}
1919

2020
# Search current weather observations in the surroundings of
@@ -29,5 +29,5 @@
2929

3030
# Will it be clear tomorrow at this time in Milan (Italy) ?
3131
mgr = owm.weather_manager()
32-
forecast = mgr.daily_forecast("Milan,IT")
32+
forecast = mgr.forecast_at_place('Milan,IT', 'daily')
3333
forecast.will_be_clear_at(timestamps.tomorrow()) # The sun always shines on Italy, right? ;)

0 commit comments

Comments
 (0)