From 3ba2768aeae5d3b953adb7bb723540fa9c7ee370 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Sat, 16 Jan 2021 13:16:10 +0000 Subject: minor cgi fixes --- heating-cgi/heating.cgi | 4 +++- 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 "", $rd->{TEMPERATURE}, ""; print "", $rd->{var2}, ""; - print "", $rd->{HUMIDITY}, ""; + print ""; + print $rd->{HUMIDITY} if exists $rd->{HUMIDITY}; + print ""; print "", $rd->{DELTA}, ""; print "", $rd->{state}, ""; 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 ); -- cgit v1.2.3