diff options
author | floppydiskette <git@diskfloppy.me> | 2024-08-08 15:21:30 +0100 |
---|---|---|
committer | floppydiskette <git@diskfloppy.me> | 2024-08-08 15:21:30 +0100 |
commit | 8650d88a794497543b1333f3e4ad5ea9bf753071 (patch) | |
tree | c2901bfbe124dcb9d16c4b9f2f3bed1e09f85815 /resources/views/components/weather.blade.php | |
parent | c148b6237ae561efdc727efab7f7188b1afb9cd4 (diff) |
Finish that shit
Diffstat (limited to 'resources/views/components/weather.blade.php')
-rw-r--r-- | resources/views/components/weather.blade.php | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/resources/views/components/weather.blade.php b/resources/views/components/weather.blade.php index 09d9a37..b4dfcaa 100644 --- a/resources/views/components/weather.blade.php +++ b/resources/views/components/weather.blade.php @@ -1,7 +1,11 @@ -<p><strong>Weather:</strong></p> -<p> - 69C<br> - 0mm/hr<br> - 69%<br> - 420inHg -</p> +<p><strong>Weather Conditions:</strong></p> +<hr style="margin: 4px 0"> +<p><strong>Temperature:</strong> {{ round(($conditions[0]["temp"] - 32) * (5/9), 1) }} degC</p> +<p><strong>Rain:</strong> {{ ($conditions[0]["rain_rate_last"] * 0.2) }}mm/hr ({{ $conditions[0]["rainfall_daily"] }}mm today)</p> +@if ($conditions[0]["wind_speed_last"] != 0) + <p><strong>Wind:</strong> {{ round($conditions[0]["wind_speed_last"], 1) }}mph ({{ $conditions[0]["wind_dir_last"] }} deg)</p> +@else + <p><strong>Wind:</strong> 0mph</p> +@endif +<p><strong>Humidity:</strong> {{ round($conditions[0]["hum"], 1) }}%</p> +<p><strong>Pressure:</strong> {{ round($conditions[2]["bar_sea_level"], 1) }} inHg</p> |