projects
/
vaillant-thermostat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kuhinja battery change
[vaillant-thermostat]
/
serial.pl
diff --git
a/serial.pl
b/serial.pl
index
b84c3a0
..
11b693d
100755
(executable)
--- a/
serial.pl
+++ b/
serial.pl
@@
-9,7
+9,7
@@
use LWP::UserAgent;
my $read_len = 255;
# bottom serial on rpi
my $read_len = 255;
# bottom serial on rpi
-my $path = shift @ARGV || '/dev/serial/by-path/platform-
20980000.usb-usb-0:1.3
:1.0-port0';
+my $path = shift @ARGV || '/dev/serial/by-path/platform-
1c14400.usb-usb-0:1
:1.0-port0';
$|=1;
$|=1;
@@
-49,7
+49,7
@@
while (1) {
my $hex = unpack('H*',$string);
$hex =~ s/(..)/$1 /g;
my $hex = unpack('H*',$string);
$hex =~ s/(..)/$1 /g;
- my $temp = `curl --silent
localhost
:3000/temp.txt`;
+ my $temp = `curl --silent
rpi
:3000/temp.txt`;
$temp =~ s/\s+/ /gs;
$temp =~ s/^\s+//;
$temp =~ s/\s+/ /gs;
$temp =~ s/^\s+//;