add metar lib and adding some modifications

This commit is contained in:
Nabeel Shahzad
2018-04-04 20:59:52 -05:00
parent 129c551fa0
commit a31b704203
4 changed files with 1626 additions and 168 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ namespace App\Widgets;
use App\Interfaces\Widget;
use App\Support\Http;
use App\Support\Metar;
use App\Support\MetarWrapper;
use App\Support\Units\Distance;
use App\Support\Units\Temperature;
use Illuminate\Support\Facades\Cache;
@@ -50,7 +50,7 @@ class Weather extends Widget
$raw_metar = $metar_class->get_metar($this->config['icao']);
if ($raw_metar && $raw_metar !== '') {
$metar = new Metar($raw_metar);
$metar = new MetarWrapper($raw_metar);
$wind = $metar->getWinds();
}