Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rp43us authored Oct 7, 2021
1 parent a4ea0db commit cc6df16
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,28 @@ pip3 install .
Download Meteorological data

```python
from openmeteopy import OWmanager,Daily,Hourly,Options

from openmeteo_py import Hourly as h
from openmeteo_py import Daily as d
from openmeteo_py import Options as op
from openmeteo_py import OWmanager as ow
# Latitude, Longitude for Rabat,Morocco
latitude = 33.9842
longitude = -6.8675

hourly = Hourly()
daily = Daily()
options = Options(latitude,longitude)
hourly = h.Hourly()
daily = d.Daily()
options = op.Options(latitude,longitude)

mgr = OWmanager(options,
mgr = ow.OWmanager(options,
hourly.all(),
daily.all())


# Download data
meteo = mgr.get_data()

print(meteo)

```


Expand Down

0 comments on commit cc6df16

Please sign in to comment.