Fix errors in the METAR parsing for clouds; display error for pressure units

This commit is contained in:
Nabeel Shahzad
2019-07-17 08:57:45 -04:00
parent 15e6226511
commit ec81a6d157
3 changed files with 19 additions and 7 deletions

View File

@@ -30,8 +30,8 @@ https://api.checkwx.com/#metar-decoded
<tr>
<td>@lang('widgets.weather.barometer')</td>
<td>
{{ number_format($metar['barometer'], 2) }} hPa
/ {{ number_format($metar['barometer_in'], 2) }} inHg
{{ number_format($metar['barometer']['hPa'], 2) }} hPa
/ {{ number_format($metar['barometer']['inHg'], 2) }} inHg
</td>
</tr>
@if($metar['clouds'])