I don't know how the result compares with official fire indices, as in this part of the world (Aus.) we're now out of the fire danger period.
I hope this is useful to someone.
Code: Select all
<?php
$cbi = (((110 - 1.373 * $hum) - 0.54 * (10.20 - $temp)) * (124 * pow(10,(-0.0142 * $hum))))/60;
if ($cbi > "97.5") {
$cbitxt = "EXTREME";
} elseif ($cbi >="90") {
$cbitxt = "VERY HIGH";
} elseif ($cbi >= "75") {
$cbitxt = "HIGH";
} elseif ($cbi >= "50") {
$cbitxt = "MODERATE";
} else
if ($cbi < "50") {
$cbitxt="LOW";
}
echo "Fire Risk for Today: " . $cbitxt
?>