www-thermferm/index.php

changeset 512
fd1354e2a045
parent 400
d36f4fefd4e2
child 517
5fd12d9f3f84
--- a/www-thermferm/index.php	Sun May 28 14:19:57 2017 +0200
+++ b/www-thermferm/index.php	Wed May 31 16:29:52 2017 +0200
@@ -1,6 +1,6 @@
 <?php
 /*****************************************************************************
- * Copyright (C) 2014
+ * Copyright (C) 2014-2017
  *   
  * Michiel Broek <mbroek at mbse dot eu>
  *
@@ -129,11 +129,11 @@
 	if ($f[0] == "TEMP_STATE")
 	    $temp_state = $f[1];
 	if (($f[0] == "TEMP_VALUE") && ($temp_state == "OK"))
-	    $temp_value = $f[1].' &deg;C';
+	    $temp_value = $f[1];
 	if ($f[0] == "HUM_STATE")
 	    $hum_state = $f[1];
 	if (($f[0] == "HUM_VALUE") && ($hum_state == "OK"))
-	    $hum_value = $f[1].' %';
+	    $hum_value = $f[1];
 	$j++;
     }
 }
@@ -167,8 +167,8 @@
 $outstr .= '     ThermFerm '.$version.PHP_EOL;
 $outstr .= '    </div>'.PHP_EOL;
 $outstr .= '    <div id="room">'.PHP_EOL;
-$outstr .= '     <div id="room_temp" class="rtemp">'.$temp_value.'</div>'.PHP_EOL;
-$outstr .= '     <div id="room_hum" class="rtemp">'.$hum_value.'</div>'.PHP_EOL;
+$outstr .= '     <div id="room_temp" class="rtemp">'.$temp_value.' &deg;C</div>'.PHP_EOL;
+$outstr .= '     <div id="room_hum" class="rtemp">'.$hum_value.' %</div>'.PHP_EOL;
 $outstr .= '    </div>'.PHP_EOL;
 $outstr .= '    <form action="maintenance.php" style="margin:30px; float:right">'.PHP_EOL;
 $outstr .= '     <input type="submit" id="maintenance" value="Maintenance panel" />'.PHP_EOL;

mercurial