Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

php array?

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

php array?

Post by n9mfk »

Hi All,
how could this be done in a php array

Code: Select all

<?php>
ini_set('display_errors', 1);  
error_reporting(E_ALL);
$heatindextext = '';
if ($heatindex >= 80 && $heatindex <= 90) {
    $heatindextext = "Caution";
} elseif ($heatindex >= 90 && $heatindex <= 105) {
    $heatindextext = "Extreme Caution";
} elseif($heatindex >= 105 && $heatindex <= 130) {
    $heatindextext = "Danger";
} elseif($heatindex >= 130) {
    $heatindextext = "Extreme Danger";
}
echo $heatindextext;
?>
beau
Post Reply