Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Scope #55

Merged
merged 6 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Http/Controllers/metarController.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function temp_qnh($metar)
"temp" => $ex[0],
"dewpoint" => $ex[1],
],
"qnh" => $QNH[0],
"qnh" => $QNH[0] ?? "0",
];
return $r;
}
Expand Down
10 changes: 3 additions & 7 deletions app/Http/Controllers/temsiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,13 @@ public function link_wintemp_eu()
}

public function get_temsi(){
/** recuperer les fichiers sur le serveur */
$response = Http::get($this->link_temsi_fr());
Storage::put("public/temsi/temsi.pdf", $response->body());
return response()->download("storage/temsi/temsi.pdf");
/** mettre les entetes du PDF pour le lire */
return redirect($this->link_temsi_fr());
}

public function get_wintemp(){
/** mettre les entetes du PDF pour le lire */
$response = Http::get($this->link_wintemp_fr());
Storage::put("public/wintemp/wintemp.pdf", $response->body());
return response()->download("public/wintemp/wintemp.pdf");
return redirect($this->link_wintemp_fr());
}

public function all_chart()
Expand Down
Loading