summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2021-01-16 13:16:10 +0000
committerfishsoupisgood <github@madingley.org>2021-01-16 13:16:10 +0000
commit3ba2768aeae5d3b953adb7bb723540fa9c7ee370 (patch)
tree63548d243a346df5574d7c6fd06cc89d53425627
parent7c6887eaaf812b63bab6c5e134f80a2ef36aeb31 (diff)
downloadheating-3ba2768aeae5d3b953adb7bb723540fa9c7ee370.tar.gz
heating-3ba2768aeae5d3b953adb7bb723540fa9c7ee370.tar.bz2
heating-3ba2768aeae5d3b953adb7bb723540fa9c7ee370.zip
minor cgi fixes
-rwxr-xr-xheating-cgi/heating.cgi4
-rwxr-xr-xprometheus/home/httpd/html/weatherstation/updateweatherstation.pl2
2 files changed, 4 insertions, 2 deletions
diff --git a/heating-cgi/heating.cgi b/heating-cgi/heating.cgi
index 88474dd..dd608b6 100755
--- a/heating-cgi/heating.cgi
+++ b/heating-cgi/heating.cgi
@@ -567,7 +567,9 @@ sub do_radiators() {
print "<td style='background-color: " . ${rd}->{temp_colour} . "' >",
$rd->{TEMPERATURE}, "</td>";
print "<td>", $rd->{var2}, "</td>";
- print "<td>", $rd->{HUMIDITY}, "</td>";
+ print "<td>";
+ print $rd->{HUMIDITY} if exists $rd->{HUMIDITY};
+ print "</td>";
print "<td>", $rd->{DELTA}, "</td>";
print "<td style='background-color: " . ${rd}->{state_colour} . "' >",
$rd->{state}, "</td>";
diff --git a/prometheus/home/httpd/html/weatherstation/updateweatherstation.pl b/prometheus/home/httpd/html/weatherstation/updateweatherstation.pl
index 87b8893..c0e9246 100755
--- a/prometheus/home/httpd/html/weatherstation/updateweatherstation.pl
+++ b/prometheus/home/httpd/html/weatherstation/updateweatherstation.pl
@@ -79,5 +79,5 @@ $sock->print( "GET /weatherstation/updateweatherstation.php?"
. $ENV{'QUERY_STRING'}
. " HTTP/1.0\r\n" );
$sock->print("\r\n");
-$sock->shutdown( $socket, 1 );
+$sock->shutdown( 1 );