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
|
|
|
|
|
|
|
|
--}}
|
2021-02-20 01:45:39 +08:00
|
|
|
<table class="table table-striped">
|
|
|
|
@if($config['raw_only'] != true && $metar)
|
2020-02-09 02:29:34 +08:00
|
|
|
<tr>
|
|
|
|
<td>@lang('widgets.weather.conditions')</td>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>{{ $metar['category'] }}</td>
|
2020-02-09 02:29:34 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>@lang('widgets.weather.wind')</td>
|
2020-02-09 02:29:34 +08:00
|
|
|
<td>
|
2021-01-07 22:09:05 +08:00
|
|
|
@if($metar['wind_speed'] < '1') Calm @else {{ $metar['wind_speed'] }} kts @lang('common.from') {{ $metar['wind_direction_label'] }} ({{ $metar['wind_direction']}}°) @endif
|
|
|
|
@if($metar['wind_gust_speed']) @lang('widgets.weather.guststo') {{ $metar['wind_gust_speed'] }} @endif
|
2020-02-09 02:29:34 +08:00
|
|
|
</td>
|
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@if($metar['visibility'])
|
2021-02-20 01:45:39 +08:00
|
|
|
<tr>
|
|
|
|
<td>Visibility</td>
|
|
|
|
<td>{{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}</td>
|
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@endif
|
|
|
|
@if($metar['runways_visual_range'])
|
2021-02-20 01:45:39 +08:00
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>Runway Visual Range</td>
|
|
|
|
<td>
|
|
|
|
@foreach($metar['runways_visual_range'] as $rvr)
|
|
|
|
<b>RWY{{ $rvr['runway'] }}</b>; {{ $rvr['report'] }}<br>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
2021-02-20 01:45:39 +08:00
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@endif
|
|
|
|
@if($metar['present_weather_report'] <> 'Dry')
|
2021-02-20 01:45:39 +08:00
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>Phenomena</td>
|
|
|
|
<td>{{ $metar['present_weather_report'] }}</td>
|
2021-02-20 01:45:39 +08:00
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@endif
|
|
|
|
@if($metar['clouds'] || $metar['cavok'])
|
2021-02-20 01:45:39 +08:00
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>@lang('widgets.weather.clouds')</td>
|
|
|
|
<td>
|
|
|
|
@if($unit_alt === 'ft') {{ $metar['clouds_report_ft'] }} @else {{ $metar['clouds_report'] }} @endif
|
|
|
|
@if($metar['cavok'] == 1) Ceiling and Visibility OK @endif
|
|
|
|
</td>
|
2021-02-20 01:45:39 +08:00
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@endif
|
2020-02-09 02:29:34 +08:00
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>Temperature</td>
|
|
|
|
<td>
|
|
|
|
@if($metar['temperature'][$unit_temp]) {{ $metar['temperature'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}}
|
|
|
|
@if($metar['dew_point']), @lang('widgets.weather.dewpoint') @if($metar['dew_point'][$unit_temp]) {{ $metar['dew_point'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} @endif
|
|
|
|
@if($metar['humidity']), @lang('widgets.weather.humidity') {{ $metar['humidity'] }}% @endif
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>@lang('widgets.weather.barometer')</td>
|
|
|
|
<td>{{ number_format($metar['barometer']['hPa']) }} hPa / {{ number_format($metar['barometer']['inHg'], 2) }} inHg</td>
|
2020-02-09 02:29:34 +08:00
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@if($metar['recent_weather_report'])
|
2021-02-20 01:45:39 +08:00
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>Recent Phenomena</td>
|
|
|
|
<td>{{ $metar['recent_weather_report'] }}</td>
|
2021-02-20 01:45:39 +08:00
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@endif
|
|
|
|
@if($metar['runways_report'])
|
2021-02-20 01:45:39 +08:00
|
|
|
<tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>Runway Condition</td>
|
|
|
|
<td>
|
|
|
|
@foreach($metar['runways_report'] as $runway)
|
|
|
|
<b>RWY{{ $runway['runway'] }}</b>; {{ $runway['report'] }}<br>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
2021-02-20 01:45:39 +08:00
|
|
|
</tr>
|
2021-01-07 22:09:05 +08:00
|
|
|
@endif
|
2020-02-09 02:29:34 +08:00
|
|
|
@if($metar['remarks'])
|
|
|
|
<tr>
|
|
|
|
<td>@lang('widgets.weather.remarks')</td>
|
2021-01-07 22:09:05 +08:00
|
|
|
<td>{{ $metar['remarks'] }}</td>
|
2020-02-09 02:29:34 +08:00
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
<tr>
|
|
|
|
<td>@lang('widgets.weather.updated')</td>
|
|
|
|
<td>{{$metar['observed_time']}} ({{$metar['observed_age']}})</td>
|
|
|
|
</tr>
|
2021-02-20 01:45:39 +08:00
|
|
|
@endif
|
2021-01-07 22:09:05 +08:00
|
|
|
<tr>
|
|
|
|
<td>@lang('common.metar')</td>
|
2021-02-20 01:45:39 +08:00
|
|
|
<td>@if($metar) {{ $metar['raw'] }} @else @lang('widgets.weather.nometar') @endif</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>TAF</td>
|
|
|
|
<td>@if($taf) {{ $taf['raw'] }} @else @lang('widgets.weather.nometar') @endif</td>
|
2021-01-07 22:09:05 +08:00
|
|
|
</tr>
|
2021-02-20 01:45:39 +08:00
|
|
|
</table>
|