Measure the weather for:
<% if params[:query] && !params[:query][:q].empty? %>
query: "<%= params[:query][:q] %>"
<% end %>
<% if @weather %>
Averages
- Humidity: <%= @weather.humidity.to_i %>
- Temperature: <%= @weather.temperature %>
- Wind: <%= @weather.wind %>
- Pressure: <%= @weather.pressure %>
- Dew Point: <%= @weather.dew_point %>
- Heat Index: <%= @weather.heat_index %>
- Wind Chill: <%= @weather.wind_chill %>
- Visibility: <%= @weather.visibility %>
Summary
- Day?: <%= @weather.day? %>
- Sunny?: <%= @weather.sunny? %>
- Windy?: <%= @weather.windy? %>
- Wet?: <%= @weather.wet? %>
<% if @barometer.query %>
Query
- Format: <%= @barometer.query.format %>
<% if @barometer.query.geo %>
- Locality: <%= @barometer.query.geo.locality %>
- Region: <%= @barometer.query.geo.region %>
- Country: <%= @barometer.query.geo.country %>
- Country Code: <%= @barometer.query.geo.country_code %>
- Latitude: <%= @barometer.query.geo.latitude %>
- Longitude: <%= @barometer.query.geo.longitude %>
<% end %>
<% end %>
<% @weather.measurements.each do |measurement| %>
<%= erb(:measurement, :locals => { :measurement => measurement }, :layout => false) %>
<% end %>
<% end %>