metar($icao); } catch (\Exception $e) { Log::error('Error getting METAR: '.$e->getMessage(), $e->getTrace()); return ''; } if ($raw_metar !== '') { Cache::put($key, $raw_metar, $cache['time']); } return $raw_metar; } }