2018-04-03 11:35:25 +08:00
|
|
|
{{--
|
|
|
|
|
|
|
|
If you want to edit this, you can reference the CheckWX API docs:
|
|
|
|
https://api.checkwx.com/#metar-decoded
|
|
|
|
|
|
|
|
--}}
|
|
|
|
@if(!$metar)
|
|
|
|
<p>METAR/TAF data could not be retrieved</p>
|
|
|
|
@else
|
2018-04-04 08:21:42 +08:00
|
|
|
<table class="table table-striped">
|
2018-04-03 11:35:25 +08:00
|
|
|
<tr>
|
|
|
|
<td>Conditions</td>
|
|
|
|
<td>
|
2018-04-07 22:05:06 +08:00
|
|
|
{{ $metar['category'] }}
|
2018-04-08 09:52:12 +08:00
|
|
|
{{ $metar['temperature'][$unit_temp] }}
|
2018-04-07 22:05:06 +08:00
|
|
|
°{{strtoupper($unit_temp)}}
|
|
|
|
@if($metar['visibility'])
|
2018-04-08 09:52:12 +08:00
|
|
|
, visibility {{ $metar['visibility'][$unit_dist] }}
|
2018-04-07 22:05:06 +08:00
|
|
|
@endif
|
|
|
|
{{$unit_dist}}
|
|
|
|
|
|
|
|
@if($metar['humidity'])
|
|
|
|
,
|
|
|
|
{{ $metar['humidity'] }}% humidity
|
|
|
|
@endif
|
2018-04-08 09:52:12 +08:00
|
|
|
|
|
|
|
@if($metar['dew_point'])
|
|
|
|
, dew point
|
|
|
|
{{ $metar['dew_point'][$unit_temp] }}
|
|
|
|
°{{strtoupper($unit_temp)}}
|
|
|
|
@endif
|
2018-04-03 11:35:25 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Barometer</td>
|
|
|
|
<td>
|
2018-04-07 22:05:06 +08:00
|
|
|
{{ $metar['barometer'] }} Hg
|
|
|
|
/ {{ $metar['barometer_in'] * 1000 }} MB
|
2018-04-03 11:35:25 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2018-04-07 22:05:06 +08:00
|
|
|
@if($metar['clouds'])
|
|
|
|
<tr>
|
|
|
|
<td>Clouds</td>
|
|
|
|
<td>
|
|
|
|
@if($unit_alt === 'ft')
|
|
|
|
{{$metar['clouds_report_ft']}}
|
|
|
|
@else
|
|
|
|
{{ $metar['clouds_report'] }}
|
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2018-04-03 11:35:25 +08:00
|
|
|
<tr>
|
|
|
|
<td>Wind</td>
|
|
|
|
<td>
|
2018-04-07 22:05:06 +08:00
|
|
|
{{$metar['wind_speed']}} kts from {{$metar['wind_direction_label']}}
|
|
|
|
({{$metar['wind_direction']}}°)
|
|
|
|
@if($metar['wind_gust_speed'])
|
|
|
|
gusts to {{ $metar['wind_gust_speed'] }}
|
2018-04-03 11:35:25 +08:00
|
|
|
@endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>METAR</td>
|
|
|
|
<td>
|
|
|
|
<div style="line-height:1.5em;min-height: 3em;">
|
2018-04-07 22:05:06 +08:00
|
|
|
{{ $metar['raw'] }}
|
2018-04-03 11:35:25 +08:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2018-04-07 22:05:06 +08:00
|
|
|
@if($metar['remarks'])
|
|
|
|
<tr>
|
|
|
|
<td>Remarks</td>
|
|
|
|
<td>
|
|
|
|
{{ $metar['remarks'] }}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
2018-04-03 11:35:25 +08:00
|
|
|
<tr>
|
|
|
|
<td>Updated</td>
|
2018-04-07 22:05:06 +08:00
|
|
|
<td>{{$metar['observed_time']}} ({{$metar['observed_age']}})</td>
|
2018-04-03 11:35:25 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
@endif
|