Skip to content

Commit

Permalink
Add RWYCC (#4)
Browse files Browse the repository at this point in the history
* Add RWYCC

* Update datis.php

* Fix
  • Loading branch information
RudiZhang authored Mar 28, 2024
1 parent f714da9 commit d46d967
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions datis.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());

?>

0 comments on commit d46d967

Please sign in to comment.