www-thermferm/getstate.php

changeset 578
d694abd9d809
parent 529
00b45f2aaac3
child 693
3518c07737d8
equal deleted inserted replaced
577:7a29f835e20a 578:d694abd9d809
1 <?php 1 <?php
2 /***************************************************************************** 2 /*****************************************************************************
3 * Copyright (C) 2014-2017 3 * Copyright (C) 2014-2019
4 * 4 *
5 * Michiel Broek <mbroek at mbse dot eu> 5 * Michiel Broek <mbroek at mbse dot eu>
6 * 6 *
7 * This file is part of ThermFerm 7 * This file is part of ThermFerm
8 * 8 *
90 } 90 }
91 if (($f[0] == "PSU_ADDRESS") && (strcmp($f[1], "(null)"))) 91 if (($f[0] == "PSU_ADDRESS") && (strcmp($f[1], "(null)")))
92 $psu = "yes"; 92 $psu = "yes";
93 if (($f[0] == "DOOR_ADDRESS") && (strcmp($f[1], "(null)"))) 93 if (($f[0] == "DOOR_ADDRESS") && (strcmp($f[1], "(null)")))
94 $door = "yes"; 94 $door = "yes";
95 if (($f[0] == "BEER_SET") && ($mode == "BEER")) 95 if (($f[0] == "BEER_SET_LO") && ($mode == "BEER"))
96 $target_temperature_lo = $target_temperature_hi = $f[1]; 96 $target_temperature_lo = $f[1];
97 if (($f[0] == "FRIDGE_SET") && ($mode == "FRIDGE")) 97 if (($f[0] == "BEER_SET_HI") && ($mode == "BEER"))
98 $target_temperature_lo = $target_temperature_hi = $f[1]; 98 $target_temperature_hi = $f[1];
99 if (($f[0] == "FRIDGE_SET_LO") && ($mode == "FRIDGE"))
100 $target_temperature_lo = $f[1];
101 if (($f[0] == "FRIDGE_SET_HI") && ($mode == "FRIDGE"))
102 $target_temperature_hi = $f[1];
99 if (($f[0] == "PROF_TARGET_LO") && ($mode == "PROFILE")) 103 if (($f[0] == "PROF_TARGET_LO") && ($mode == "PROFILE"))
100 $target_temperature_lo = $f[1]; 104 $target_temperature_lo = $f[1];
101 if (($f[0] == "PROF_TARGET_HI") && ($mode == "PROFILE")) 105 if (($f[0] == "PROF_TARGET_HI") && ($mode == "PROFILE"))
102 $target_temperature_hi = $f[1]; 106 $target_temperature_hi = $f[1];
103 if (($f[0] == "PROF_STATE") && ($mode == "PROFILE")) 107 if (($f[0] == "PROF_STATE") && ($mode == "PROFILE"))

mercurial