Wolfram Language

Open live version

Make a Weather Dashboard

A simple, web-deployed weather dashboard. Visit a URL in the Wolfram Cloud for the current weather conditions at your location.


code

X
X
X

how it works

IconData and WeatherData work together to make it trivially easy to depict current weather conditions in iconic form. The temperature at your current location, for example, is given by:

In[1]:=
X
Out[1]=

To depict that iconically, wrap WeatherData with IconData:

In[2]:=
X
Out[2]=

Make a function to arrange weather icons in a nicely formatted, framed grid using Frame and Grid, and adjust sizes and spacing with Spacer and ImageSize:

In[3]:=
X

To make a dashboard that reflects current conditions at a given location, define a variant of WeatherDashboard whose argument is a location:

In[4]:=
X

Finally, deploy the dashboard to the Wolfram Cloud as an instant API using APIFunction. In the cloud, $GeoLocation is automatically set to the location of the visitor. Click the link in the output expression to visit the deployed dashboard.

In[5]:=
X
Out[5]=