assoc current( zipcode, name )
Retrieve information about current conditions.
The zipcode to obtain current conditions for
Either 'current' for the current conditions or the day of the week (i.e. 'Monday') to search. Defaults to 'current'. Passing the day of the week is deprecated. Use daily forecast.
Returns an associative array of current or daily weather data. - city - The city for the current conditions. - state - The state for the current conditions. - station - The weather station reporting the current conditions. - time - The time that the current conditions were updated (in UTC). - time_local - The time that the current conditions were updated (in local time). - timezone_offset - The offset of the current timezone to UTC. (-5 for CDT, -6 for CST) - current_temp - The current temperature in Farenheit - current_temp_c - The current temperature in Celsius - dew_point - The dew point in Farenheit - dew_point_c - The dew point in Celsius - relative_humidity - The relative humidity - wind_speed - The wind speed (in mph) - wind_deg - The wind direction in degrees - wind_dir - The cardinal wind direction - wind_gust - The wind gust - barometer - The barometric pressure - conditions - The current conditions - icon - The numeric icon to use. Deprecated. Use text_icon instead - text_icon - The string icon to use. - ceiling - The cloud ceiling - visibility - The visibility (in miles) - heat_index - The heat index - heat_index_c - The heat index in Celsius - wind_chill - The wind chill in Farenheit - wind_chill_c - The wind chill in Celsius - feels_like - The temperature that it feels like in Farenheit - feels_like_c - The temperature that it feels like in Celsius - snow_depth - The depth of the snow outside - high_temp_6hr - The high temperature over the past 6 hours - high_temp - The high temperature over the past 24 hours - low_temp_6hr - The low temperature over the past 6 hours - low_temp - The low temperature over the past 24 hours - precip_3hr - The precipitation over the last 3 hours - precip_6hr - The precipitation over the last 6 hours - precip - The precipitation over the last 24 hours - weather - The weather for the current day - coded_weather - The code for the weather for the current day - enhanced_weather - The enhanced weather for the current day - report_text - The report text from the weather station. - daynight - Whether it is day (D) or night (N) - temp_trend - How the temperature is trending values are HIGHER or LOWER
Example usage for current:
[% current = cms.weather.current('zipcode': zip) %] [% current.city %], [% current.state %]
Conditions: [% current.conditions %]
Time: [% current.time %]
Timezone: [% current.timezone %]
Temperature: [% current.current_temp %]°
Humidity: [% current.relative_humidity %]
Feels Like: [% current.feels_like%]° Wind: [% current.wind_dir %] at [% current.wind_low %]mph
Gusting to: [% current.wind_high %] mph
Visibility: [% current.visibility %] miles