@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['temperature']['value'] !== null) {{ round((float) $values['temperature']['value'], 1) }} @else NA @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() && $values['result'] !== null) {{ round((int) $values['humidity']['value']) }} @else 0 @endif %
Wind Speed: @if($values['result']->isNotEmpty() && $values['result'] !== null) {{ round((float) $values['windspeed']['value'], 1) }} @else 0 @endif m/s
Wind from: @if($values['result']->isNotEmpty() && $values['result'] !== null) @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() && $values['result'] !== null) {{ round((float) $values['windgust']['value'], 1) }} @else 0 @endif m/s
Solar Radiation: @if($values['result']->isNotEmpty() && $values['result'] !== null) {{ round((float) $values['solarradiation']['value'], 2) }} @else 0 @endif W/m2
Last updated {{ $values['updated'] }}
Weather Station Location




Select date range to get the past data

{{ Form::open(array('route' => 'frontend.dynamic.get.int.form.data', 'class' => 'form-inline')) }}
{{ Form::text('start_date',$values['start_date'],['class' => 'form-control start_date', 'id' => 'start_date', 'required' => 'required']) }}
{{ Form::text('end_date',$values['end_date'],['class' => 'form-control end_date', 'id' => 'end_date', 'required' => 'required']) }}
{{ Form::hidden('current_start_date', $values['start_date']) }} {{ Form::hidden('current_end_date', $values['end_date']) }} {{ Form::hidden('station', $values['station']) }}
{{ Form::button('submit', ['class' => 'btn btn-info', 'type' => 'submit']) }}
{{ Form::close() }}
@if($values['result']->isNotEmpty() && $values['result'] !== null)
@else

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

@endif
@endsection @section('before-scripts') @endsection @section('after-scripts') {{-- Date picker --}} @if($values['result']->isNotEmpty() && $values['result'] !== null) @endif {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} {{----}} @if($values['result']->isNotEmpty() && $values['result'] !== null) @endif @endsection