<%= measurement.source.to_s.capitalize %>
- Source: <%= measurement.source %>
- Time: <%= measurement.time %>
- Metric: <%= measurement.metric? %>
- Success: <%= measurement.success? %>
<% if measurement.location %>
Location
- id: <%= measurement.location.id %>
- Name: <%= measurement.location.name %>
- City: <%= measurement.location.city %> %
- State Name: <%= measurement.location.state_name %>
- State Code: <%= measurement.location.state_code %>
- Country: <%= measurement.location.country %>
- Country Code: <%= measurement.location.country_code %>
- Zip Code: <%= measurement.location.zip_code %>
- Latitude: <%= measurement.location.latitude %>
- Longitude: <%= measurement.location.longitude %>
<% end %>
<% if measurement.station %>
Station
- id: <%= measurement.station.id %>
- Name: <%= measurement.station.name %>
- City: <%= measurement.station.city %> %
- State Name: <%= measurement.station.state_name %>
- State Code: <%= measurement.station.state_code %>
- Country: <%= measurement.station.country %>
- Country Code: <%= measurement.station.country_code %>
- Zip Code: <%= measurement.station.zip_code %>
- Latitude: <%= measurement.station.latitude %>
- Longitude: <%= measurement.station.longitude %>
<% end %>
<% if measurement.timezone %>
Timezone
- Long: <%= measurement.timezone.timezone %>
- Code: <%= measurement.timezone.code %>
- DST?: <%= measurement.timezone.dst? %>
<% end %>
<% if measurement.current %>
Current
- Time: <%= measurement.current.time %>
- Local Time: <%= measurement.current.local_time %>
- Humidity: <%= measurement.current.humidity %> %
- Icon: <%= measurement.current.icon %>
- Condition: <%= measurement.current.condition %>
- Temperature: <%= measurement.current.temperature %>
- Dew Point: <%= measurement.current.dew_point %>
- Heat Index: <%= measurement.current.heat_index %>
- Wind Chill: <%= measurement.current.wind_chill %>
- Wind: <%= measurement.current.wind %> @ <%= measurement.current.wind.direction %> [<%= measurement.current.wind.degrees %> degrees]
- Pressure: <%= measurement.current.pressure %>
- Visibility: <%= measurement.current.visibility %>
<% if measurement.current.sun %>
- Sun: rise - <%= measurement.current.sun.rise %>, set - <%= measurement.current.sun.set %>
<% end %>
<% end %>
<% if measurement.forecast %>
Forecast
<% measurement.forecast.each do |forecast| %>
<%= erb(:forecast, :locals => { :forecast => forecast }, :layout => false) %>
<% end %>
<% end %>