Add weather to the dashboard for the current airport

This commit is contained in:
Nabeel Shahzad
2018-04-02 06:47:05 -05:00
parent cfd0853d79
commit bb73af3806
7 changed files with 75 additions and 58 deletions

View File

@@ -32,7 +32,6 @@ class CheckWx extends Widget
]);
$data = json_decode($data);
#dd($data);
if($data->results === 1) {
$data = $data->data[0];
@@ -42,9 +41,9 @@ class CheckWx extends Widget
}
return view('widgets.check_wx', [
'config' => $this->config,
'data' => $data,
'unit_alt' => setting('units.altitude'),
'config' => $this->config,
'data' => $data,
'unit_alt' => setting('units.altitude'),
'unit_dist' => setting('units.distance'),
'unit_temp' => setting('units.temperature'),
]);