From d46d967f073222506176c2eaedccd883c6ef8b0d Mon Sep 17 00:00:00 2001 From: Rudi Zhang <40914896+RudiZhang@users.noreply.github.com> Date: Thu, 28 Mar 2024 06:35:15 +0100 Subject: [PATCH] Add RWYCC (#4) * Add RWYCC * Update datis.php * Fix --- datis.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/datis.php b/datis.php index 8497f0e..ab0015d 100644 --- a/datis.php +++ b/datis.php @@ -204,8 +204,16 @@ $out_dewpt_data = $str_dewpt_data ; } -print(' T ' . $out_temp_data . ' /DP ' . $out_dewpt_data . ' QNH ' . $decoded->getPressure()->getValue() . ' HPA '); +print(' TEMP ' . $out_temp_data . ' DEW POINT ' . $out_dewpt_data . ' QNH ' . $decoded->getPressure()->getValue() . ' HPA '); + +if ((in_array("DZ", $phenomenon[0]->getTypes())) + || (in_array("RA", $phenomenon[0]->getTypes())) + || (in_array("SN", $phenomenon[0]->getTypes())) + || (in_array("SG", $phenomenon[0]->getTypes())) +) { + print('ALL RWYS RWY CONDITION CODE 5 5 5 ISSUED AT ' . substr($rawMetar, 7, 4) . 'Z ALL PARTS WET DEPTH NOT REPORTED COVERAGE 100PCT '); +} -print ('RPT RECEIPT OF ATIS ' . $_GET['info'] . ' ON ' . $decoded->getIcao()); +print ('REPORT RECEIPT OF ATIS ' . $_GET['info'] . ' ON ' . $decoded->getIcao()); ?>