@extends('frontend.layouts.observe') @section('title') {{ $values['station'] }} - CUrW Real Time Weather Data @endsection @section('meta') @endsection @section('after-styles') @endsection @section('content')

{{ $values['station'] }} - Weather Station Real Time Data

@if($values['result']->isNotEmpty()) {{ round((float) $values['temperature']['value'], 1) }} @else 0.0 @endif

@if($values['humidity']['value'] !== null) @endif @if($values['windspeed']['value']) @endif @if($values['winddirection']['value'] !== null) @endif @if($values['windgust']['value'] !== null) @endif @if($values['solarradiation']['value'] !== null) @endif
Humidity: @if($values['result']->isNotEmpty()) {{ round((int) $values['humidity']['value']) }} @else 0 @endif %
Wind Speed: @if($values['result']->isNotEmpty()) {{ round((float) $values['windspeed']['value'], 1) }} @else 0 @endif m/s
Wind from: @if($values['result']->isNotEmpty()) @if(round((float) $values['winddirection']['value'], 2) >= 337.50 || (float) $values['winddirection']['value'] <= 22.50) North @elseif(round((float) $values['winddirection']['value'], 2) >= 22.50 && (float) $values['winddirection']['value'] <= 67.50) North East @elseif(round((float) $values['winddirection']['value'], 2) >= 67.50 && (float) $values['winddirection']['value'] <= 112.50) East @elseif(round((float) $values['winddirection']['value'], 2) >= 112.50 && (float) $values['winddirection']['value'] <= 157.50) South East @elseif(round((float) $values['winddirection']['value'], 2) >= 157.50 && (float) $values['winddirection']['value'] <= 202.50) South @elseif(round((float) $values['winddirection']['value'], 2) >= 202.50 && (float) $values['winddirection']['value'] <= 247.50) South West @elseif(round((float) $values['winddirection']['value'], 2) >= 247.50 && (float) $values['winddirection']['value'] <= 292.50) West @elseif(round((float) $values['winddirection']['value'], 2) >= 292.50 && (float) $values['winddirection']['value'] <= 337.50) North West @endif @else - @endif
Wind Gust: @if($values['result']->isNotEmpty()) {{ round((float) $values['windgust']['value'], 1) }} @else 0 @endif m/s
Solar Radiation: @if($values['result']->isNotEmpty()) {{ round((float) $values['solarradiation']['value'], 2) }} @else 0 @endif W/m2
Last updated {{ $values['updated'] }}
Weather Station Location



@if($values['result']->isNotEmpty())
@else

Weather Station hasn't respond since {{ $values['updated'] }}

@endif
@endsection @section('before-scripts') @endsection @section('after-scripts') @if($values['result']->isNotEmpty()) @endif {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @if($values['result']->isNotEmpty()) @endif @endsection