X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=serial.pl;h=06197a0e1ee4945f73d302d2e8ce394eb7b089a8;hb=5e8218dc133a5fd6687e98b7a09e22f65bbc314b;hp=cfceb37bb160586d0d0314d0b13b0ee52a8d47e3;hpb=db5e8c623278aa03ac9f57f2da58a9e218f1be13;p=vaillant-thermostat diff --git a/serial.pl b/serial.pl index cfceb37..06197a0 100755 --- 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+//;