Update to work with API again

This commit is contained in:
floppydiskette 2023-07-03 15:29:54 +01:00
parent 06ebb6cb81
commit 24e7f56e25
No known key found for this signature in database

View file

@ -11,7 +11,7 @@ function degreesToCompassDirection($degrees) {
$data = json_decode(file_get_contents($api_root.'/weather')); $data = json_decode(file_get_contents($api_root.'/weather'));
$updated = gmdate('H:i Y-m-d', $data->updated); $updated = gmdate('H:i Y-m-d', $data->updated);
$data = $data->data; $data = $data->current;
@endphp @endphp
<h1>Local Weather <small>(Last Update: {{ $updated }})</small></h1> <h1>Local Weather <small>(Last Update: {{ $updated }})</small></h1>