projects
/
vaillant-thermostat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
447fda6
)
add temperature to log file
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 1 Mar 2017 13:50:17 +0000
(14:50 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 1 Mar 2017 13:50:17 +0000
(14:50 +0100)
serial.pl
patch
|
blob
|
history
diff --git
a/serial.pl
b/serial.pl
index
dd409e5
..
4f60390
100755
(executable)
--- a/
serial.pl
+++ b/
serial.pl
@@
-41,8
+41,12
@@
while (1) {
$chr++;
$ascii
=cut
+
+ my $temp = `curl localhost:3000/temp.txt`;
+ $temp =~ s/\s+/ /gs;
+
#printf "%s %2d %s\n", time(), $len, $hex;
- printf "%8.4f %6.2f %2d %s
\n", $ts, $ts - $t, $len, $hex
;
+ printf "%8.4f %6.2f %2d %s
| %s\n", $ts, $ts - $t, $len, $hex, $temp
;
$t = time();
}
}