filter out humidify < 10 from rtl433
[vaillant-thermostat] / serial.pl
index cfceb37..06197a0 100755 (executable)
--- a/serial.pl
+++ b/serial.pl
@@ -32,7 +32,7 @@ sub _mqtt_pub {
        my ( $t, $m ) = @_;
        my $cmd = "mosquitto_pub -h rpi2 -t '$t' -m '$m'";
        #warn "# _mqtt_pub [$t] = [$m]\n";
-       warn "## $cmd";
+       #warn "## $cmd";
        system $cmd;
 }
 
@@ -45,7 +45,7 @@ while (1) {
                my $hex = unpack('H*',$string);
                $hex =~ s/(..)/$1 /g;
 
-               my $temp = `curl localhost:3000/temp.txt`;
+               my $temp = `curl -q localhost:3000/temp.txt`;
                $temp =~ s/\s+/ /gs;
                $temp =~ s/^\s+//;