diff options
-rwxr-xr-x | heating-cgi/heating.cgi | 4 | ||||
-rwxr-xr-x | prometheus/home/httpd/html/weatherstation/updateweatherstation.pl | 2 |
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 ); |