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
The ``load_forecast()`` method has a few optional parameters. Providing your API key, a latitude and longitude are the only required parameters.
40
52
41
53
Use the ``forecast.DataBlockType()`` eg. ``currently()``, ``daily()``, ``hourly()``, ``minutely()`` or ``flags()`` methods to load the data you are after.
@@ -64,8 +76,8 @@ This makes an API request and returns a **Forecast** object (see below).
64
76
65
77
Parameters:
66
78
-**key** - Your API key from https://pirateweather.net/en/latest/.
67
-
-**latitude** - The latitude of the location for the forecast
68
-
-**longitude** - The longitude of the location for the forecast
79
+
-**latitude** - The latitude or city name of the location for the forecast
80
+
-**longitude** - The longitude or country code of the location for the forecast
69
81
-**time** - (optional) A datetime object for the forecast either in the past or future - see How Timezones Work below for the details on how timezones are handled in this library.
70
82
-**units** - (optional) A string of the preferred units of measurement, "auto" is the default. "us","ca","uk","si" are also available. See the API Docs (https://pirateweather.net/en/latest/API/#units) for exactly what each unit means.
71
83
-**lang** - (optional) A string of the desired language. See https://pirateweather.net/en/latest/API/#language for supported languages.
@@ -174,7 +186,7 @@ Contains data about the flags used to generate the forecast.
174
186
-**version**
175
187
- The version of Pirate Weather used to generate the forecast.
176
188
-**nearestStation**
177
-
- Not implemented, and will always return 0.
189
+
- The distance to the closest MOSMIX station to your location. If no station is nearby the return value will be -999.
0 commit comments