www-thermferm/getstate.php

changeset 693
3518c07737d8
parent 578
d694abd9d809
equal deleted inserted replaced
692:6d97eb820cc1 693:3518c07737d8
56 break; 56 break;
57 $f = explode(",", $arr[$j]); 57 $f = explode(",", $arr[$j]);
58 58
59 if ($f[0] == "AIR_STATE") 59 if ($f[0] == "AIR_STATE")
60 $air_state = $f[1]; 60 $air_state = $f[1];
61 if (($f[0] == "AIR_TEMPERATURE") && ($air_state == "OK")) 61 if (($f[0] == "AIR_TEMPERATURE") && ($air_state == "YES"))
62 $air_temperature = $f[1]; 62 $air_temperature = $f[1];
63 if ($f[0] == "BEER_STATE") 63 if ($f[0] == "BEER_STATE")
64 $beer_state = $f[1]; 64 $beer_state = $f[1];
65 if (($f[0] == "BEER_TEMPERATURE") && ($beer_state == "OK")) 65 if (($f[0] == "BEER_TEMPERATURE") && ($beer_state == "YES"))
66 $beer_temperature = $f[1]; 66 $beer_temperature = $f[1];
67 if ($f[0] == "CHILLER_STATE") 67 if ($f[0] == "CHILLER_STATE")
68 $chiller_state = $f[1]; 68 $chiller_state = $f[1];
69 if (($f[0] == "CHILLER_TEMPERATURE") && ($chiller_state == "OK")) 69 if (($f[0] == "CHILLER_TEMPERATURE") && ($chiller_state == "YES"))
70 $chiller_temperature = $f[1]; 70 $chiller_temperature = $f[1];
71 if ($f[0] == "MODE") 71 if ($f[0] == "MODE")
72 $mode = $f[1]; 72 $mode = $f[1];
73 if (($f[0] == "COOLER_ADDRESS") && (strcmp($f[1], "(null)"))) 73 if (($f[0] == "COOLER_ADDRESS") && (strcmp($f[1], "(null)")))
74 $cooler = "yes"; 74 $cooler = "yes";

mercurial