Skip to content

Commit

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

* Update datis.php

* Fix

* Fix
  • Loading branch information
RudiZhang authored Mar 31, 2024
1 parent d46d967 commit c4b142a
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions datis.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,16 @@

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 ');
if (isset($phenomenon[0]) && !empty($phenomenon[0])) {
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 ('REPORT RECEIPT OF ATIS ' . $_GET['info'] . ' ON ' . $decoded->getIcao());
print('REPORT RECEIPT OF ATIS ' . $_GET['info'] . ' ON ' . $decoded->getIcao());

?>

0 comments on commit c4b142a

Please sign in to comment.