<%= if @weather_packet do %>

Weather for {@callsign}

{PacketUtils.get_timestamp(@weather_packet)}
Temperature: {PacketUtils.get_weather_field(@weather_packet, :temperature)}°F
Humidity: {PacketUtils.get_weather_field(@weather_packet, :humidity)}%
Wind: {PacketUtils.get_weather_field(@weather_packet, :wind_direction)}° @ {PacketUtils.get_weather_field( @weather_packet, :wind_speed )} mph
Gusts: {PacketUtils.get_weather_field(@weather_packet, :wind_gust)} mph
Pressure: {PacketUtils.get_weather_field(@weather_packet, :pressure)} hPa
Rain (1h): {PacketUtils.get_weather_field(@weather_packet, :rain_1h)} in
Rain (24h): {PacketUtils.get_weather_field(@weather_packet, :rain_24h)} in
Rain (since midnight): {PacketUtils.get_weather_field(@weather_packet, :rain_since_midnight)} in
Raw comment: {@weather_packet.comment || @weather_packet["comment"]}
<% else %>

Weather for {@callsign}

No recent weather data available for this callsign.
<% end %>