{{-- If you want to edit this, you can reference the CheckWX API docs: https://api.checkwx.com/#metar-decoded --}} @if(!$metar)

METAR/TAF data could not be retrieved

@else
Conditions {{ $category }},  @if($unit_temp === 'c') {{ $metar->getAirTemperature()->getValue() }} @else {{ round(($metar->getAirTemperature()->getValue() * 9/5) + 32, 2) }} @endif °{{strtoupper($unit_temp)}} @if($metar->getVisibility()->getVisibility()) , visibility @if($unit_dist === 'km') {{ $metar->getVisibility()->getVisibility()->getConvertedValue('m') / 1000 }} @else {{ $metar->getVisibility()->getVisibility()->getValue() }} @endif {{$unit_dist}} @endif
Barometer {{ $metar->getPressure()->getValue() }} Hg / {{ round($metar->getPressure()->getValue() * 33.86) }} MB
Clouds @foreach($metar->getClouds() as $cloud)

{{$cloud->getAmount()}} @ @if($unit_alt === 'ft') {{$cloud->getBaseHeight()->getValue()}} @else {{$cloud->getBaseHeight()->getConvertedValue('m')}} @endif {{ $unit_alt }}

@endforeach
Wind {{$metar->getSurfaceWind()->getMeanSpeed()->getConvertedValue('kt')}} kts @ {{$metar->getSurfaceWind()->getMeanDirection()->getValue()}}° @if($metar->getSurfaceWind()->getSpeedVariations()) gusts to {{$metar->getSurfaceWind()->getSpeedVariations()->getConvertedValue('kt')}} @endif
METAR
{{ $metar->getRawMetar() }}
Updated {{$metar->getTime()}}
@endif