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