Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get the current weather for a location
ResourceFunction["CurrentWeatherData"][loc] returns the latest available weather property values for the location loc. | |
ResourceFunction["CurrentWeatherData"][loc,property] returns the latest available weather property value for the location loc. | |
ResourceFunction["CurrentWeatherData"][] returns the latest available weather property values for the location associated with $GeoLocation. |
| "CloudCoverFraction" | fraction of the sky obscured by cloud cover |
| "Conditions" | list of weather conditions (fog, tornado, thunderstorm) |
| "DewPoint" | dew point temperature |
| "Humidity" | relative humidity |
| "PrecipitationAmount" | the most recent precipitation amount and duration |
| "PrecipitationRate" | average precipitation rate |
| "PrecipitationTypes" | types of precipitation observed (hail, rain, snow) |
| "Pressure" | barometric pressure in hectopascals |
| "Temperature" | temperature |
| "TimeStamp" | the most recent weather recording time |
| "WindChill" | wind chill temperature |
| "WindDirection" | wind direction in angular degrees |
| "WindSpeed" | steady wind speed |
Obtain the latest weather conditions for the default $GeoLocation:
| In[1]:= |
| Out[1]= | ![]() |
Obtain the latest weather conditions for a weather station:
| In[2]:= |
| Out[2]= | ![]() |
Get the latest recorded temperature for a Chicago:
| In[3]:= |
| Out[3]= |
Obtain current temperature and pressure for Madrid:
| In[4]:= |
| Out[4]= |
Find current weather for entities that possess a position property:
| In[5]:= |
| Out[5]= | ![]() |
Use GeoPosition to specify the location:
| In[6]:= |
| Out[6]= | ![]() |
Request current weather for multiple locations at once:
| In[7]:= |
| Out[7]= | ![]() |
Find the current temperature and pressure for the 10 largest cities in the United States:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Control the units returned for results by using the UnitSystem option:
| In[9]:= |
| Out[9]= | ![]() |
| In[10]:= |
| Out[10]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License